34 lines
1.2 KiB
Plaintext
Executable File
34 lines
1.2 KiB
Plaintext
Executable File
<div class="module">
|
|
<div class="module_header"><%= action_name.humanize %> Forum</div>
|
|
<div class="module_subheader smaller">
|
|
<em>To create a category, leave the category field unselected.</em>
|
|
</div>
|
|
<div class="module_body">
|
|
<%= form_for @forum do |f| %>
|
|
<% if @forum.errors.any? %>
|
|
<% flash.now[:error] = @forum.errors.full_messages.join(', and ') %>
|
|
<% end %>
|
|
<%= f.label :category_id %>
|
|
<%= f.collection_select :category_id, Category.all, :id, :title %>
|
|
<%= f.label :title %>
|
|
<%= f.text_field :title, :style => "width:98%" %>
|
|
<%= f.label :description %><br />
|
|
<%= f.text_area :description, :style => "width:98%", :rows => 5 %>
|
|
<%= f.label :position %>
|
|
<%= f.text_field :position %>
|
|
<br/>
|
|
<%= f.label :state %>
|
|
<%= f.check_box :state %>
|
|
</div>
|
|
<div class="module_footer">
|
|
<div class="fieldset">
|
|
<span class="input">
|
|
<%= f.submit "Submit", :class =>"btn btn-primary"%>
|
|
<%= button_tag "Cancel", :confirm => 'Are you sure? Any changes will be lost.', :class => 'btn', :type => 'submit', :name => 'commit', :value => 'cancel' %>
|
|
<div class="clear"></div>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div>
|