Sha256: af81719d34a988e48eb89e32e3523d9c3f33eb47f3bdacb1e6d26c16daf6ae8c

Contents?: true

Size: 1.16 KB

Versions: 8

Compression:

Stored size: 1.16 KB

Contents

<%= form_for private_topic,
             url:  private_topics_path(@private_topic),
             html: { class: "thredded--form #{local_assigns[:css_class]}", 'data-thredded-topic-form' => true } 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 %>
    </li>

    <%= render 'thredded/posts_common/form/content_field',
               form:          form,
               content_label: t('thredded.private_topics.form.content_label') %>

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
thredded-0.7.0 app/views/thredded/private_topics/_form.html.erb
thredded-0.6.3 app/views/thredded/private_topics/_form.html.erb
thredded-0.6.2 app/views/thredded/private_topics/_form.html.erb
thredded-0.6.1 app/views/thredded/private_topics/_form.html.erb
thredded-0.6.0 app/views/thredded/private_topics/_form.html.erb
thredded-0.5.1 app/views/thredded/private_topics/_form.html.erb
thredded-0.5.0 app/views/thredded/private_topics/_form.html.erb
thredded-0.4.0 app/views/thredded/private_topics/_form.html.erb