Sha256: 1627087ea3d80a2eff747129374c60f047429a5b6b28a48cbc4d7ec58c9c6b27

Contents?: true

Size: 1.13 KB

Versions: 16

Compression:

Stored size: 1.13 KB

Contents

<%= simple_form_for [@forum, @forum_topic], wrapper: simple_form_theme_wrapper do |f| %>

  <%= f.error_notification :message => "Please review the problems below" %>
  <%= f.input :title, :label => I18n.t('fms.views_topics.topic') %>

  <% if @forum_topic.new_record? %>
    <%= f.input :body, :as => :text, :label => I18n.t('fms.views_topics.body'), :input_html => {:rows => 10} %>
  <% elsif is_admin? %>
    <%= f.input :forum_id, collection: ForumSite.site.all_forums, label_method: :name, value_method: :id %>
  <% end %>

  <% if can? :moderate, @forum %>
    <div class="clearfix">
      <%= f.input :sticky, :label => "<i class='fa fa-thumb-tack'></i> #{I18n.t('fms.sticky')}".html_safe %>
    </div>
    <div class="clearfix">
      <%= f.input :locked, :label => "<i class='fa fa-lock'></i> #{I18n.t('fms.views_topics.lock_topic')}".html_safe %>
    </div>
  <% end %>

  <%= f.submit I18n.t('fms.post_topic'), class: 'btn btn-primary' %>
  <%#= submit_or_cancel :save => I18n.t('fms.post_topic'), :cancel => I18n.t('fms.views_topics.cancel'),
            :cancel_url => (@forum_topic.new_record? ? [@forum] : [@forum, @forum_topic]) %>
<% end %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dm_forum-4.2.3.10 app/views/dm_forum/forum_topics/_form.html.erb
dm_forum-4.2.3.9 app/views/dm_forum/forum_topics/_form.html.erb
dm_forum-4.2.3.8 app/views/dm_forum/forum_topics/_form.html.erb
dm_forum-4.2.3.7 app/views/dm_forum/forum_topics/_form.html.erb
dm_forum-4.2.3.6 app/views/dm_forum/forum_topics/_form.html.erb
dm_forum-4.2.3.5 app/views/dm_forum/forum_topics/_form.html.erb
dm_forum-4.2.3.4 app/views/dm_forum/forum_topics/_form.html.erb
dm_forum-4.2.3.3 app/views/dm_forum/forum_topics/_form.html.erb
dm_forum-4.2.3.2 app/views/dm_forum/forum_topics/_form.html.erb
dm_forum-4.2.3.1 app/views/dm_forum/forum_topics/_form.html.erb
dm_forum-4.2.3 app/views/dm_forum/forum_topics/_form.html.erb
dm_forum-4.2.2.3 app/views/dm_forum/forum_topics/_form.html.erb
dm_forum-4.2.2.2 app/views/dm_forum/forum_topics/_form.html.erb
dm_forum-4.2.2.1 app/views/dm_forum/forum_topics/_form.html.erb
dm_forum-4.2.2 app/views/dm_forum/forum_topics/_form.html.erb
dm_forum-4.2.1.5 app/views/dm_forum/forum_topics/_form.html.erb