Sha256: cbfa07f88b6c7ff23dda86bf74a6a5982801027849efa72690681640036cdd39

Contents?: true

Size: 1.27 KB

Versions: 10

Compression:

Stored size: 1.27 KB

Contents

<%= form_for messageboard, html: { class: 'thredded--form' } do |f| %>
    <ul class="thredded--form-list">
      <li>
        <%= f.label t('thredded.messageboard.form.title_label') %>
        <%= f.text_field :name, required: true %>
      </li>
      <li>
        <%= f.label t('thredded.messageboard.form.description_label') %>
        <%= f.text_field :description %>
      </li>
      <li>
        <%= f.label t('thredded.messageboard.form.messageboard_group_id_label') %>
        <%= f.collection_select :messageboard_group_id, Thredded::MessageboardGroup.all, :id, :name,
                                include_blank: t('thredded.messageboard.form.no_group') %>
      </li>
      <li>
        <%= f.label :locked do %>
            <%= f.check_box :locked %> <%= t 'thredded.messageboard.form.locked_label' %>
        <% end %>
      </li>

      <li>
        <%= f.submit @messageboard.persisted? ? t('thredded.messageboard.update') : t('thredded.messageboard.create'),
                     class: 'thredded--form--submit',
                     'data-disable-with' => @messageboard.persisted? ?
                         t('thredded.messageboard.form.update_btn_submitting') :
                         t('thredded.messageboard.form.create_btn_submitting') %>
      </li>
    </ul>
<% end %>

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
thredded-0.15.4 app/views/thredded/messageboards/_form.html.erb
thredded-0.15.3 app/views/thredded/messageboards/_form.html.erb
thredded-0.15.2 app/views/thredded/messageboards/_form.html.erb
thredded-0.15.1 app/views/thredded/messageboards/_form.html.erb
threddedDANIEL-0.14.5 app/views/thredded/messageboards/_form.html.erb
thredded-0.14.4 app/views/thredded/messageboards/_form.html.erb
thredded-0.14.3 app/views/thredded/messageboards/_form.html.erb
thredded-0.14.2 app/views/thredded/messageboards/_form.html.erb
thredded-0.14.1 app/views/thredded/messageboards/_form.html.erb
thredded-0.14.0 app/views/thredded/messageboards/_form.html.erb