mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 21:10:54 +00:00
1e64b50109
- Bans - Articles - Forums - Users Further styling improvements to form elements
18 lines
486 B
Text
18 lines
486 B
Text
<%= form_for(@post, html: { class: 'square' }) do |f| %>
|
|
<%= render 'shared/errors', messages: @post.errors.full_messages %>
|
|
|
|
<%= f.hidden_field :topic_id %>
|
|
<div class="square horizontal">
|
|
<%= f.label :topic %>
|
|
<div class="inputs">
|
|
<%= namelink @post.topic %>
|
|
</div>
|
|
</div>
|
|
<div class="square horizontal">
|
|
<%= f.label :text %>
|
|
<%= f.text_area :text, rows: 20 %>
|
|
</div>
|
|
<div class="controls">
|
|
<%= f.submit 'Save Post' %>
|
|
</div>
|
|
<% end %>
|