Sha256: 794644c90c6ebac8810ed316fe33ca16799ae87b44ee2355a02a23eb318301f0

Contents?: true

Size: 1.34 KB

Versions: 20

Compression:

Stored size: 1.34 KB

Contents

<%= form_for topic,
             url: topic.submit_path,
             html: {
                 class: "thredded--form thredded--new-topic-form #{local_assigns[:css_class]}",
                 'data-thredded-topic-form' => true,
                 'data-autocomplete-url' => autocomplete_users_path,
                 'data-autocomplete-min-length' => Thredded.autocomplete_min_length,
             } do |form| %>
  <ul class="thredded--form-list on-top">
    <li class="title">
      <%= form.label :title, t('thredded.topics.form.title_label') %>
      <%= form.text_field :title, placeholder: placeholder, required: true %>
    </li>

    <% if form.object.category_options.any? %>
      <li class="category">
        <%= form.select :category_ids,
                        form.object.category_options,
                        {},
                        { multiple: true, 'data-placeholder' => t('thredded.topics.form.categories_placeholder') } %>
      </li>
    <% end %>

    <%= render 'thredded/posts_common/form/content',
               form: form,
               content_label: t('thredded.topics.form.content_label'),
               preview_url: topic.preview_path %>
    <%= render 'thredded/topics/topic_form_admin_options', form: form %>

    <li><%= form.submit t('thredded.topics.form.create_btn'), class: 'thredded--form--submit' %></li>
  </ul>
<% end %>

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
threddedDANIEL-0.14.5 app/views/thredded/topics/_form.html.erb
thredded-0.14.4 app/views/thredded/topics/_form.html.erb
thredded-0.14.3 app/views/thredded/topics/_form.html.erb
thredded-0.14.2 app/views/thredded/topics/_form.html.erb
thredded-0.14.1 app/views/thredded/topics/_form.html.erb
thredded-0.14.0 app/views/thredded/topics/_form.html.erb
thredded-0.13.8 app/views/thredded/topics/_form.html.erb
thredded-0.13.7 app/views/thredded/topics/_form.html.erb
thredded-0.13.6 app/views/thredded/topics/_form.html.erb
thredded-0.13.5 app/views/thredded/topics/_form.html.erb
thredded-0.13.4 app/views/thredded/topics/_form.html.erb
thredded-0.13.3 app/views/thredded/topics/_form.html.erb
thredded-0.13.2 app/views/thredded/topics/_form.html.erb
thredded-0.13.1 app/views/thredded/topics/_form.html.erb
thredded-0.13.0 app/views/thredded/topics/_form.html.erb
thredded-0.12.4 app/views/thredded/topics/_form.html.erb
thredded-0.12.3 app/views/thredded/topics/_form.html.erb
thredded-0.12.2 app/views/thredded/topics/_form.html.erb
thredded-0.12.1 app/views/thredded/topics/_form.html.erb
thredded-0.12.0 app/views/thredded/topics/_form.html.erb