Sha256: 3fef6daf0b90e0388f4deb08d61902ce17e9a038bb71e0d9f090bc30ca3f74f6

Contents?: true

Size: 1.02 KB

Versions: 21

Compression:

Stored size: 1.02 KB

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,
                 'data-thredded-submit-hotkey' => true,
             } 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

21 entries across 21 versions & 1 rubygems

Version Path
thredded-1.1.0 app/views/thredded/posts_common/_form.html.erb
thredded-1.0.1 app/views/thredded/posts_common/_form.html.erb
thredded-1.0.0 app/views/thredded/posts_common/_form.html.erb
thredded-0.16.16 app/views/thredded/posts_common/_form.html.erb
thredded-0.16.15 app/views/thredded/posts_common/_form.html.erb
thredded-0.16.14 app/views/thredded/posts_common/_form.html.erb
thredded-0.16.13 app/views/thredded/posts_common/_form.html.erb
thredded-0.16.12 app/views/thredded/posts_common/_form.html.erb
thredded-0.16.11 app/views/thredded/posts_common/_form.html.erb
thredded-0.16.10 app/views/thredded/posts_common/_form.html.erb
thredded-0.16.9 app/views/thredded/posts_common/_form.html.erb
thredded-0.16.8 app/views/thredded/posts_common/_form.html.erb
thredded-0.16.7 app/views/thredded/posts_common/_form.html.erb
thredded-0.16.6 app/views/thredded/posts_common/_form.html.erb
thredded-0.16.5 app/views/thredded/posts_common/_form.html.erb
thredded-0.16.4 app/views/thredded/posts_common/_form.html.erb
thredded-0.16.3 app/views/thredded/posts_common/_form.html.erb
thredded-0.16.1 app/views/thredded/posts_common/_form.html.erb
thredded-0.16.0 app/views/thredded/posts_common/_form.html.erb
thredded-0.15.5 app/views/thredded/posts_common/_form.html.erb