24 lines
414 B
Text
24 lines
414 B
Text
<div class="mainaboutbox">
|
|
<% if authenticated? %>
|
|
<%= link_to 'New Update', new_post_path %>
|
|
<% else %>
|
|
.
|
|
<% end %>
|
|
<div class="maininfo">
|
|
<%= form_with model: [@post] 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>
|