Sha256: 1188975fd4b507d5c6a72b384882260c8270a748b3240b42b45efc7c7af017bf

Contents?: true

Size: 1.11 KB

Versions: 16

Compression:

Stored size: 1.11 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.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

16 entries across 16 versions & 1 rubygems

Version Path
thredded-0.13.8 app/views/thredded/messageboards/_form.html.erb
thredded-0.13.7 app/views/thredded/messageboards/_form.html.erb
thredded-0.13.6 app/views/thredded/messageboards/_form.html.erb
thredded-0.13.5 app/views/thredded/messageboards/_form.html.erb
thredded-0.13.4 app/views/thredded/messageboards/_form.html.erb
thredded-0.13.3 app/views/thredded/messageboards/_form.html.erb
thredded-0.13.2 app/views/thredded/messageboards/_form.html.erb
thredded-0.13.1 app/views/thredded/messageboards/_form.html.erb
thredded-0.13.0 app/views/thredded/messageboards/_form.html.erb
thredded-0.12.4 app/views/thredded/messageboards/_form.html.erb
thredded-0.12.3 app/views/thredded/messageboards/_form.html.erb
thredded-0.12.2 app/views/thredded/messageboards/_form.html.erb
thredded-0.12.1 app/views/thredded/messageboards/_form.html.erb
thredded-0.12.0 app/views/thredded/messageboards/_form.html.erb
thredded-0.11.1 app/views/thredded/messageboards/_form.html.erb
thredded-0.11.0 app/views/thredded/messageboards/_form.html.erb