mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 18:29:52 +01:00
24 lines
766 B
Text
24 lines
766 B
Text
.card
|
|
.card-body
|
|
= bootstrap_form_for(@announcement, url: { action: "create" }, data: { turbo: false }) do |f|
|
|
.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
|
|
.col-md-12.text-end
|
|
= f.submit class: "btn btn-primary"
|
|
|
|
- provide(:title, generate_title(t(".title")))
|
|
- parent_layout "admin"
|