Update Bootstrap from v4 to v5
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
- if policy(object).edit?
|
||||
// default value for fetch will always be evaluated even if it is not returned
|
||||
- link_target = local_assigns.fetch(:path, false) || send(:"edit_#{object.class.name.underscore}_path", object)
|
||||
= link_to(t('shared.edit'), link_target, class: 'btn btn-secondary float-right')
|
||||
= link_to(t('shared.edit'), link_target, class: 'btn btn-secondary float-end')
|
||||
|
@@ -1,11 +1,10 @@
|
||||
.card.card-body.bg-light.flex-row.container.row.mx-0
|
||||
= search_form_for(@search, class: 'clearfix filter-form form-inline w-100') do |f|
|
||||
.col-sm.p-0
|
||||
= yield(f)
|
||||
.col-sm-auto.p-0
|
||||
.btn-group.ml-auto
|
||||
.card.card-body.bg-light.flex-row.container.justify-content-center
|
||||
= search_form_for(@search, class: 'clearfix filter-form align-items-center row g-2 w-100') do |f|
|
||||
= yield(f)
|
||||
.col-sm.ge-4.gy-2
|
||||
.btn-group.float-end.ms-auto.text-nowrap
|
||||
button.btn.btn-primary type='submit' = t('shared.apply_filters')
|
||||
button.btn.btn-primary.dropdown-toggle data-toggle='dropdown' type='button'
|
||||
button.btn.btn-primary.dropdown-toggle data-bs-toggle='dropdown' type='button'
|
||||
ul.dropdown-menu role='menu'
|
||||
li
|
||||
a.dropdown-item href=request.path = t('shared.reset_filters')
|
||||
|
@@ -3,9 +3,8 @@
|
||||
.modal-content
|
||||
.modal-header
|
||||
h4#modal-title.modal-title = title
|
||||
button.close data-dismiss='modal' type='button'
|
||||
span aria-hidden=true ×
|
||||
span.sr-only Close
|
||||
button.btn-close data-bs-dismiss='modal' type='button'
|
||||
span.visually-hidden Close
|
||||
.modal-body
|
||||
- if local_assigns.has_key?(:body)
|
||||
= body
|
||||
|
Reference in New Issue
Block a user