diff --git a/app/views/announcement/edit.haml b/app/views/announcement/edit.haml index f08ffdda..5843a674 100644 --- a/app/views/announcement/edit.haml +++ b/app/views/announcement/edit.haml @@ -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" diff --git a/app/views/announcement/index.haml b/app/views/announcement/index.haml index deedb02a..e7c1ae42 100644 --- a/app/views/announcement/index.haml +++ b/app/views/announcement/index.haml @@ -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" diff --git a/app/views/announcement/new.haml b/app/views/announcement/new.haml index 4ced1fce..0155a77b 100644 --- a/app/views/announcement/new.haml +++ b/app/views/announcement/new.haml @@ -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"