Fix HAML codestyle
This commit is contained in:
parent
f334a6fea9
commit
594eaedce2
|
@ -2,7 +2,7 @@
|
|||
.container-lg.container--main
|
||||
.card
|
||||
.card-body
|
||||
= bootstrap_form_for(@announcement, url: { action: 'update' }, method: 'PATCH') do |f|
|
||||
= bootstrap_form_for(@announcement, url: { action: "update" }, method: "PATCH") do |f|
|
||||
.row
|
||||
.col-md-12
|
||||
= f.text_area :content
|
||||
|
@ -14,12 +14,10 @@
|
|||
.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' }
|
||||
data: { 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' }
|
||||
data: { target: "#announcement_ends_at", "date-format": "YYYY-MM-DD hh:mm A" }
|
||||
.row
|
||||
.col-md-12.text-right
|
||||
= f.submit class: 'btn btn-primary'
|
||||
= f.submit class: "btn btn-primary"
|
||||
|
|
|
@ -8,13 +8,13 @@
|
|||
%small.text-muted= announcement.starts_at
|
||||
|
||||
.d-flex.w-100
|
||||
= link_to t("voc.edit"), announcement_edit_path(id: announcement.id), class: 'btn btn-link text-primary'
|
||||
= link_to t("voc.edit"), announcement_edit_path(id: announcement.id), class: "btn btn-link text-primary"
|
||||
= button_to t("voc.delete"),
|
||||
announcement_destroy_path(id: announcement.id),
|
||||
method: :delete,
|
||||
class: 'btn btn-link text-danger',
|
||||
class: "btn btn-link text-danger",
|
||||
confirm: t(".confirm")
|
||||
|
||||
.row
|
||||
.col-md-12
|
||||
= link_to t(".new"), :announcement_new, class: 'btn btn-primary'
|
||||
= link_to t(".new"), :announcement_new, class: "btn btn-primary"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
.container-lg.container--main
|
||||
.card
|
||||
.card-body
|
||||
= bootstrap_form_for(@announcement, url: { action: 'create' }) do |f|
|
||||
= bootstrap_form_for(@announcement, url: { action: "create" }) do |f|
|
||||
.row
|
||||
.col-md-12
|
||||
= f.text_area :content
|
||||
|
@ -14,12 +14,10 @@
|
|||
.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' }
|
||||
data: { 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' }
|
||||
data: { target: "#announcement_ends_at", "date-format": "YYYY-MM-DD hh:mm A" }
|
||||
.row
|
||||
.col-md-12.text-right
|
||||
= f.submit class: 'btn btn-primary'
|
||||
= f.submit class: "btn btn-primary"
|
||||
|
|
Loading…
Reference in New Issue