Show More
Commit Description:
announcement on top menu bar
Commit Description:
announcement on top menu bar
References:
File last commit:
Show/Diff file:
Action:
app/views/announcements/new.html.haml
| 22 lines
| 736 B
| text/x-haml
| HamlLexer
|
r751 | %h1 New announcement | |||
r804 | ||||
-content_for(:form_buttons) do | ||||
= link_to t(:back), announcements_path, class: 'card-link btn btn-secondary' | ||||
= render 'form' | ||||
-# old style | ||||
= error_messages_for :announcement | ||||
= simple_form_for(@announcement) do |f| | ||||
.row | ||||
.col-md-6 | ||||
= f.input :title | ||||
= f.input :notes, label: 'Notes (shown internally, used to organize announcements)' | ||||
= f.input :body | ||||
= f.input :author | ||||
= f.input :published | ||||
= f.input :frontpage, label: 'Display in the front page only?' | ||||
= f.input :contest_only, label: 'Display in contest only?' | ||||
= f.button :submit, "Create", class: 'btn btn-primary' | ||||
= link_to 'Back', announcements_path, class: 'btn btn-default' | ||||