Retrospring/app/views/announcement/edit.haml

26 lines
950 B
Plaintext
Raw Normal View History

- provide(:title, generate_title(t(".title")))
.container-lg.container--main
2020-05-10 05:29:10 -07:00
.card
.card-body
= bootstrap_form_for(@announcement, url: { action: 'update' }, method: 'PATCH') do |f|
.row
.col-md-12
= f.text_area :content
2020-05-10 05:29:10 -07:00
.row
.col-md-6
= f.url_field :link_href
2020-05-10 05:29:10 -07:00
.col-md-6
= f.text_field :link_text
2020-05-10 05:29:10 -07:00
.row
.col-md-6
= f.datetime_field :starts_at,
class: 'datetimepicker-input',
data: { toggle: 'datetimepicker', target: '#announcement_starts_at', 'date-format': 'YYYY-MM-DD hh:mm A' }
.col-md-6
= f.datetime_field :ends_at,
class: 'datetimepicker-input',
data: { toggle: 'datetimepicker', target: '#announcement_ends_at', 'date-format': 'YYYY-MM-DD hh:mm A' }
.row
.col-md-12.text-right
= f.submit class: 'btn btn-primary'