Retrospring/app/views/admin/announcement/edit.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
783 B
Plaintext
Raw Normal View History

2022-11-20 08:59:24 -08:00
.card
.card-body
2022-11-20 09:59:34 -08:00
= bootstrap_form_for(@announcement, url: { action: "update" }, method: "PATCH", data: { turbo: false }) do |f|
2022-11-20 08:59:24 -08:00
.row
.col-md-12
= f.text_area :content
.row
.col-md-6
= f.url_field :link_href
.col-md-6
= f.text_field :link_text
.row
.col-md-6
= f.datetime_field :starts_at,
data: { target: "#announcement_starts_at", "date-format": "YYYY-MM-DD hh:mm A" }
.col-md-6
= f.datetime_field :ends_at,
data: { target: "#announcement_ends_at", "date-format": "YYYY-MM-DD hh:mm A" }
.row
2023-01-04 03:43:19 -08:00
.col-md-12.text-end
2022-11-20 08:59:24 -08:00
= f.submit class: "btn btn-primary"
- provide(:title, generate_title(t(".title")))
2022-11-20 08:59:24 -08:00
- parent_layout "admin"