Show More
Commit Description:
wip: bootstrap toggle switch...
Commit Description:
wip: bootstrap toggle switch todo: add javascript that thisable button until reponse arrived
File last commit:
Show/Diff file:
Action:
app/views/announcements/new.html.erb | 46 lines | 773 B | text/plain | TextLexer |
<h1>New announcement</h1>
<%= error_messages_for :announcement %>
<%= form_for(@announcement) do |f| %>
<p>
<b>Title</b><br />
<%= f.text_field :title %>
</p>
<p>
<b>Notes</b> (shown internally, used to organize announcements)<br />
<%= f.text_field :notes %>
</p>
<p>
<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>
<b>Show on front page?</b><br />
<%= f.check_box :frontpage %>
</p>
<p>
<b>Show only in contest?</b><br />
<%= f.check_box :contest_only %>
</p>
<p>
<%= f.submit "Create" %>
</p>
<% end %>
<%= link_to 'Back', announcements_path %>