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