Sha256: bd5f10e8495aaa47812a502a2105b19999b037e5183d83a2bd99b2ca244b29d9

Contents?: true

Size: 991 Bytes

Versions: 3

Compression:

Stored size: 991 Bytes

Contents

<%# locals: messageboard, topic, post, content_label, button_text, button_submitting_text. %>
<%= form_for (post.private_topic_post? ? [topic, post] : [messageboard, topic, post]), 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_field', form: form, content_label: content_label %>
    <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

3 entries across 3 versions & 1 rubygems

Version Path
thredded-0.9.3 app/views/thredded/posts_common/_form.html.erb
thredded-0.9.2 app/views/thredded/posts_common/_form.html.erb
thredded-0.9.1 app/views/thredded/posts_common/_form.html.erb