34 lines
575 B
Text
34 lines
575 B
Text
|
|
<% if authenticated? %>
|
||
|
|
<%= link_to 'New Scrap', new_scrap_path %>
|
||
|
|
<% else %>
|
||
|
|
.
|
||
|
|
<% end %>
|
||
|
|
<div class="maininfo">
|
||
|
|
<%= form_with model: [@scrap] do |f| %>
|
||
|
|
|
||
|
|
<div>
|
||
|
|
<%= f.label :text %>
|
||
|
|
<%= f.rich_text_area :text %>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div>
|
||
|
|
<%= f.label :image %>
|
||
|
|
<%= f.file_field :image %>
|
||
|
|
</div>
|
||
|
|
<div>
|
||
|
|
<%= f.label :mood %>
|
||
|
|
<%= f.text_area :mood %>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div>
|
||
|
|
<%= f.label :music %>
|
||
|
|
<%= f.text_area :music %>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div>
|
||
|
|
<%= f.label :notes %>
|
||
|
|
<%= f.rich_text_area :notes %>
|
||
|
|
</div>
|
||
|
|
<%= f.submit "Create Scrap" %>
|
||
|
|
<% end %>
|