Sha256: 98ca67c89ac2b91de5081e3694af4bbe1d7a228ab7793cb46048a7c40a92e155

Contents?: true

Size: 992 Bytes

Versions: 23

Compression:

Stored size: 992 Bytes

Contents

<%# locals: post, content_label, button_text, button_submitting_text. %>
<%= form_for post,
             url: post.submit_path,
             as: :post,
             html: {
                 class: 'thredded--form thredded--post-form',
                 'data-thredded-post-form' => true,
                 'data-autocomplete-url' => autocomplete_users_path,
                 'data-autocomplete-min-length' => Thredded.autocomplete_min_length,
             } do |form| %>
  <ul class="thredded--form-list">
    <%= render 'thredded/posts_common/form/content',
               form: form, content_label: content_label, preview_url: post.preview_path %>
    <li>
      <% button_submitting_text ||=
             post.persisted? ? t('thredded.form.update_btn_submitting') : t('thredded.form.create_btn_submitting') %>
      <button type="submit" class="thredded--form--submit" data-disable-with="<%= button_submitting_text %>">
        <%= button_text %>
      </button>
    </li>
  </ul>
<% end %>

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
thredded-0.15.3 app/views/thredded/posts_common/_form.html.erb
thredded-0.15.2 app/views/thredded/posts_common/_form.html.erb
thredded-0.15.1 app/views/thredded/posts_common/_form.html.erb
threddedDANIEL-0.14.5 app/views/thredded/posts_common/_form.html.erb
thredded-0.14.4 app/views/thredded/posts_common/_form.html.erb
thredded-0.14.3 app/views/thredded/posts_common/_form.html.erb
thredded-0.14.2 app/views/thredded/posts_common/_form.html.erb
thredded-0.14.1 app/views/thredded/posts_common/_form.html.erb
thredded-0.14.0 app/views/thredded/posts_common/_form.html.erb
thredded-0.13.8 app/views/thredded/posts_common/_form.html.erb
thredded-0.13.7 app/views/thredded/posts_common/_form.html.erb
thredded-0.13.6 app/views/thredded/posts_common/_form.html.erb
thredded-0.13.5 app/views/thredded/posts_common/_form.html.erb
thredded-0.13.4 app/views/thredded/posts_common/_form.html.erb
thredded-0.13.3 app/views/thredded/posts_common/_form.html.erb
thredded-0.13.2 app/views/thredded/posts_common/_form.html.erb
thredded-0.13.1 app/views/thredded/posts_common/_form.html.erb
thredded-0.13.0 app/views/thredded/posts_common/_form.html.erb
thredded-0.12.4 app/views/thredded/posts_common/_form.html.erb
thredded-0.12.3 app/views/thredded/posts_common/_form.html.erb