25 lines
418 B
Text
25 lines
418 B
Text
|
|
<div class="mainaboutbox">
|
||
|
|
<% if authenticated? %>
|
||
|
|
<%= link_to 'New Update', new_update_path %>
|
||
|
|
<% else %>
|
||
|
|
.
|
||
|
|
<% end %>
|
||
|
|
<div class="maininfo">
|
||
|
|
<%= form_with model: [@update] do |f| %>
|
||
|
|
|
||
|
|
<div>
|
||
|
|
<%= f.label :text %>
|
||
|
|
<%= f.rich_text_area :text %>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
<%= f.label :icon_image %>
|
||
|
|
<%= f.file_field :icon_image %>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<%= f.submit "Create Update" %>
|
||
|
|
<% end %>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
</div>
|