Fix HAML codestyle

This commit is contained in:
Andreas Nedbal 2022-01-24 22:00:31 +01:00 committed by Andreas Nedbal
parent f334a6fea9
commit 594eaedce2
3 changed files with 11 additions and 15 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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"