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