Sha256: 255487fc989e1d426e923fdf0892faa1dabb0d7be7dddd0e90d8b2c4647a456a

Contents?: true

Size: 1.72 KB

Versions: 16

Compression:

Stored size: 1.72 KB

Contents

<% content_for :thredded_page_title, t('thredded.nav.edit_private_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, messageboard_topics_path(@topic.messageboard, @topic) %></li>
    <li><%= link_to @topic.title, topic_path(@topic) %></li>
    <li><%= link_to t('thredded.nav.edit_topic'), edit_messageboard_topic_path(@topic.messageboard, @topic) %></li>
  </ul>
<% end %>

<%= thredded_page do %>
  <%= form_for [@topic.messageboard, @topic],
               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.categories.any? %>
        <li class="category">
          <%= form.select :category_ids, form.object.category_options, {},
                          multiple:          true,
                          'data-placeholder' => t('thredded.topics.form.categories_placeholder') %>
        </li>
      <% end %>

      <%= 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>
<% end %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
thredded-0.9.3 app/views/thredded/topics/edit.html.erb
thredded-0.9.2 app/views/thredded/topics/edit.html.erb
thredded-0.9.1 app/views/thredded/topics/edit.html.erb
thredded-0.8.4 app/views/thredded/topics/edit.html.erb
thredded-0.8.2 app/views/thredded/topics/edit.html.erb
thredded-0.7.0 app/views/thredded/topics/edit.html.erb
thredded-0.6.3 app/views/thredded/topics/edit.html.erb
thredded-0.6.2 app/views/thredded/topics/edit.html.erb
thredded-0.6.1 app/views/thredded/topics/edit.html.erb
thredded-0.6.0 app/views/thredded/topics/edit.html.erb
thredded-0.5.1 app/views/thredded/topics/edit.html.erb
thredded-0.5.0 app/views/thredded/topics/edit.html.erb
thredded-0.4.0 app/views/thredded/topics/edit.html.erb
thredded-0.3.2 app/views/thredded/topics/edit.html.erb
thredded-0.3.1 app/views/thredded/topics/edit.html.erb
thredded-0.3.0 app/views/thredded/topics/edit.html.erb