Sha256: 1b79f41273d2f13cc9292835f40d6f7b19e1ef5350708f613e773336dba6e182

Contents?: true

Size: 1.97 KB

Versions: 22

Compression:

Stored size: 1.97 KB

Contents

<% content_for :thredded_page_title, t('thredded.nav.edit_topic') %>
<% content_for :thredded_page_id, 'thredded--edit-topic' %>
<% content_for :thredded_breadcrumbs do %>
  <ul class="thredded--navigation-breadcrumbs">
    <li><%= link_to t('thredded.nav.all_messageboards'), messageboards_path %></li>
    <li><%= link_to messageboard.name, @edit_topic.messageboard_path %></li>
    <li><%= link_to @edit_topic.title, @edit_topic.path %></li>
    <li><%= link_to t('thredded.nav.edit_topic'), @edit_topic.edit_path %></li>
  </ul>
<% end %>

<%= thredded_page do %>
  <section class="thredded--main-section">
    <%= form_for @edit_topic,
                 url: @edit_topic.path,
                 html: { class: 'thredded--form thredded--is-expanded', 'data-thredded-topic-form' => true } do |form| %>
      <ul class="thredded--form-list on-top">

        <li class="title">
          <%= form.label :title, t('thredded.topics.form.title_label') %>
          <%= form.text_field :title,
                              placeholder: t('thredded.topics.form.title_placeholder'),
                              autofocus: true,
                              required: true %>
        </li>

        <% if form.object.category_options.any? %>
          <li class="category">
            <%= form.select :category_ids, form.object.category_options, {},
                            multiple: true,
                            'data-placeholder' => t('thredded.topics.form.categories_placeholder') %>
          </li>
        <% end %>

        <li>
          <%= form.label :messageboard_id, t('thredded.topics.form.messageboard_label') %>
          <%= form.select :messageboard_id, form.object.messageboard_options %>
        </li>

        <%= render 'thredded/topics/topic_form_admin_options', form: form %>

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

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
threddedDANIEL-0.14.5 app/views/thredded/topics/edit.html.erb
thredded-0.14.4 app/views/thredded/topics/edit.html.erb
thredded-0.14.3 app/views/thredded/topics/edit.html.erb
thredded-0.14.2 app/views/thredded/topics/edit.html.erb
thredded-0.14.1 app/views/thredded/topics/edit.html.erb
thredded-0.14.0 app/views/thredded/topics/edit.html.erb
thredded-0.13.8 app/views/thredded/topics/edit.html.erb
thredded-0.13.7 app/views/thredded/topics/edit.html.erb
thredded-0.13.6 app/views/thredded/topics/edit.html.erb
thredded-0.13.5 app/views/thredded/topics/edit.html.erb
thredded-0.13.4 app/views/thredded/topics/edit.html.erb
thredded-0.13.3 app/views/thredded/topics/edit.html.erb
thredded-0.13.2 app/views/thredded/topics/edit.html.erb
thredded-0.13.1 app/views/thredded/topics/edit.html.erb
thredded-0.13.0 app/views/thredded/topics/edit.html.erb
thredded-0.12.4 app/views/thredded/topics/edit.html.erb
thredded-0.12.3 app/views/thredded/topics/edit.html.erb
thredded-0.12.2 app/views/thredded/topics/edit.html.erb
thredded-0.12.1 app/views/thredded/topics/edit.html.erb
thredded-0.12.0 app/views/thredded/topics/edit.html.erb