Sha256: 930b3032a5d6ca0a57bf88ebd8303d3c093e6502a374684f56e60438833323f4

Contents?: true

Size: 1.15 KB

Versions: 3

Compression:

Stored size: 1.15 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/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

3 entries across 3 versions & 1 rubygems

Version Path
thredded-0.3.2 app/views/thredded/private_topics/_form.html.erb
thredded-0.3.1 app/views/thredded/private_topics/_form.html.erb
thredded-0.3.0 app/views/thredded/private_topics/_form.html.erb