orbit-basic/app/views/panel/announcements/edit.html.erb

14 lines
343 B
Plaintext

<h1>Editing announcement</h1>
<% form_for @announcement, :url => panel_announcement_path(@announcement) do |f| %>
<%= f.error_messages %>
<%= render :partial => "form", :locals => { :f => f } %>
<p>
<%= f.submit 'Update' %>
</p>
<% end %>
<%= link_to 'Show', @announcement %> |
<%= link_to 'Back', panel_announcements_path %>