2014-05-11 12:00:09 +00:00
|
|
|
<%= form_for @post, html: { class: 'square' } do |f| %>
|
2014-04-20 01:29:52 +00:00
|
|
|
<%= render 'shared/errors', messages: @post.errors.full_messages %>
|
|
|
|
|
2014-03-23 00:22:25 +00:00
|
|
|
<%= f.hidden_field :topic_id %>
|
2014-04-20 01:29:52 +00:00
|
|
|
<div class="square horizontal">
|
|
|
|
<%= f.label :topic %>
|
|
|
|
<div class="inputs">
|
|
|
|
<%= namelink @post.topic %>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-04-21 18:19:03 +00:00
|
|
|
<div class="fields horizontal">
|
2014-04-20 01:29:52 +00:00
|
|
|
<%= f.label :text %>
|
2014-04-21 18:19:03 +00:00
|
|
|
<%= f.text_area :text, rows: 15 %>
|
2014-04-20 01:29:52 +00:00
|
|
|
</div>
|
|
|
|
<div class="controls">
|
|
|
|
<%= f.submit 'Save Post' %>
|
|
|
|
</div>
|
2014-03-23 00:22:25 +00:00
|
|
|
<% end %>
|