Sha256: 2ed802fba5a9a44c1b25bb8e3b5a8a32bea21cfd9a0c3b559b11e5eaf0f12160

Contents?: true

Size: 1.01 KB

Versions: 5

Compression:

Stored size: 1.01 KB

Contents

<%# locals: messageboard, topic, post, preview_url, 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',
               form: form, content_label: content_label, preview_url: preview_url %>
    <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

5 entries across 5 versions & 1 rubygems

Version Path
thredded-0.11.1 app/views/thredded/posts_common/_form.html.erb
thredded-0.11.0 app/views/thredded/posts_common/_form.html.erb
thredded-0.10.1 app/views/thredded/posts_common/_form.html.erb
thredded-0.10.0 app/views/thredded/posts_common/_form.html.erb
thredded-0.9.4 app/views/thredded/posts_common/_form.html.erb