35 lines
547 B
Text
35 lines
547 B
Text
|
|
|
||
|
|
<section class="main">
|
||
|
|
<h2>New Post</h2>
|
||
|
|
|
||
|
|
<%= form_with model: [@member, @blog, @post] do |f| %>
|
||
|
|
<div>
|
||
|
|
<%= f.label :post_title %>
|
||
|
|
<%= f.text_area :post_title %>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div>
|
||
|
|
<%= f.label :text %>
|
||
|
|
<%= f.rich_text_area :text %>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div>
|
||
|
|
<%= f.label :mood %>
|
||
|
|
<%= f.text_area :mood %>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div>
|
||
|
|
<%= f.label :music %>
|
||
|
|
<%= f.text_area :music %>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div>
|
||
|
|
<%= f.label :icon_image %>
|
||
|
|
<%= f.file_field :icon_image %>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<%= f.submit "Create Post" %>
|
||
|
|
<% end %>
|
||
|
|
|
||
|
|
</section>
|