Sha256: db5fa7ddf3c851e677288855ec13f8abf2a831d041e38a30522aea8525d21274

Contents?: true

Size: 1.65 KB

Versions: 5

Compression:

Stored size: 1.65 KB

Contents

<%= form_for private_topic,
             url: private_topic.submit_path,
             html: {
                 class: "thredded--form thredded--new-private-topic-form #{local_assigns[:css_class]}",
                 'data-thredded-topic-form' => true,
                 # TODO: only autocomplete users in this private topic
                 '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.private_topics.form.title_label') %>
      <%= form.text_field :title, placeholder: placeholder, required: true %>
    </li>
    <li>
      <%= form.label :user_ids, t('thredded.private_topics.form.users_label') %>
      <%= form.text_field :user_ids,
                          placeholder: t('thredded.private_topics.form.users_placeholder'),
                          'data-thredded-users-select' => true,
                          'data-autocomplete-url' => autocomplete_users_path,
                          'data-autocomplete-min-length' => Thredded.autocomplete_min_length %>
    </li>

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

    <li>
      <button type="submit" class="thredded--form--submit"
              data-disable-with="<%= t 'thredded.private_topics.form.create_btn_submitting' %>">
        <%= t('thredded.private_topics.form.create_btn') %>
      </button>
    </li>
  </ul>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
thredded-0.12.4 app/views/thredded/private_topics/_form.html.erb
thredded-0.12.3 app/views/thredded/private_topics/_form.html.erb
thredded-0.12.2 app/views/thredded/private_topics/_form.html.erb
thredded-0.12.1 app/views/thredded/private_topics/_form.html.erb
thredded-0.12.0 app/views/thredded/private_topics/_form.html.erb