mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-26 20:41:01 +00:00
1e64b50109
- Bans - Articles - Forums - Users Further styling improvements to form elements
21 lines
601 B
Text
21 lines
601 B
Text
<h1>Editing Topic</h1>
|
|
|
|
<%= form_for(@topic, html: { class: 'square' }) do |f| %>
|
|
<%= render 'shared/errors', messages: @topic.errors.full_messages %>
|
|
|
|
<div class="fields horizontal">
|
|
<%= f.label :title %>
|
|
<%= f.text_field :title %>
|
|
</div>
|
|
<div class="fields horizontal">
|
|
<%= f.label :forum_id %>
|
|
<%= f.select :forum_id, Forum.all.collect{|forum| [forum, forum.id]} %>
|
|
</div>
|
|
<div class="fields horizontal">
|
|
<%= f.label :state %>
|
|
<%= f.select :state, f.object.states.invert %>
|
|
</div>
|
|
<div class="controls">
|
|
<%= f.submit 'Update Topic' %>
|
|
</div>
|
|
<% end %>
|