Show More
Commit Description:
added verify plug-in, fixed form_for, form_tag in views, changed named_scope to scope
Commit Description:
added verify plug-in, fixed form_for, form_tag in views, changed named_scope to scope
References:
File last commit:
Show/Diff file:
Action:
app/views/announcements/new.html.erb
| 46 lines
| 773 B
| text/plain
| TextLexer
|
|
r97 | <h1>New announcement</h1> | ||
<%= error_messages_for :announcement %> | ||||
|
r319 | <%= form_for(@announcement) do |f| %> | ||
|
r97 | <p> | ||
|
r193 | <b>Title</b><br /> | ||
<%= f.text_field :title %> | ||||
</p> | ||||
<p> | ||||
|
r306 | <b>Notes</b> (shown internally, used to organize announcements)<br /> | ||
<%= f.text_field :notes %> | ||||
</p> | ||||
<p> | ||||
|
r97 | <b>Body</b><br /> | ||
<%= f.text_area :body %> | ||||
</p> | ||||
<p> | ||||
<b>Author</b><br /> | ||||
<%= f.text_field :author %> | ||||
</p> | ||||
<p> | ||||
<b>Published</b><br /> | ||||
<%= f.check_box :published %> | ||||
</p> | ||||
<p> | ||||
|
r151 | <b>Show on front page?</b><br /> | ||
<%= f.check_box :frontpage %> | ||||
</p> | ||||
<p> | ||||
|
r162 | <b>Show only in contest?</b><br /> | ||
<%= f.check_box :contest_only %> | ||||
</p> | ||||
<p> | ||||
|
r97 | <%= f.submit "Create" %> | ||
</p> | ||||
<% end %> | ||||
<%= link_to 'Back', announcements_path %> | ||||