This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
2009-06-01 02:54:16 +00:00
|
|
|
<h1>Editing announcement</h1>
|
|
|
|
|
2009-06-01 06:20:15 +00:00
|
|
|
<% form_for @announcement, :url => admin_announcement_path(@announcement) do |f| %>
|
2009-06-01 02:54:16 +00:00
|
|
|
<%= f.error_messages %>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<%= f.label :title, "Title" %>
|
|
|
|
<%= f.text_field :title %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<%= f.label :content, "Content" %>
|
|
|
|
<%= f.text_area :content %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<%= f.submit 'Update' %>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= link_to 'Show', @announcement %> |
|
2009-06-01 06:20:15 +00:00
|
|
|
<%= link_to 'Back', admin_announcements_path %>
|