Adjust modal layouts to Bootstrap 4
This commit is contained in:
parent
efd2ff4db0
commit
21fceccf2f
|
@ -2,10 +2,10 @@
|
|||
.modal-dialog
|
||||
.modal-content
|
||||
.modal-header
|
||||
%h5#modal-ask-followers-label.modal-title= t 'views.answerbox.commentsmile'
|
||||
%button.close{"data-dismiss" => "modal", :type => "button"}
|
||||
%span{"aria-hidden" => "true"} ×
|
||||
%span.sr-only Close
|
||||
%h4#modal-ask-followers-label.modal-title= t 'views.answerbox.commentsmile'
|
||||
.modal-body
|
||||
- if comment.smiles.all.count == 0
|
||||
= t 'views.answerbox.no_smile'
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
.modal-dialog
|
||||
.modal-content
|
||||
.modal-header
|
||||
%h5#modal-ask-followers-label.modal-title= t 'views.modal.ask.title'
|
||||
%button.close{"data-dismiss" => "modal", :type => "button"}
|
||||
%span{"aria-hidden" => "true"} ×
|
||||
%span.sr-only= t 'views.actions.close'
|
||||
%h4#modal-ask-followers-label.modal-title= t 'views.modal.ask.title'
|
||||
.modal-body
|
||||
%textarea.form-control{:name => "qb-all-question", :placeholder => t('views.placeholder.question')}
|
||||
.modal-footer
|
||||
|
|
|
@ -12,10 +12,10 @@
|
|||
.modal-dialog
|
||||
.modal-content
|
||||
.modal-header
|
||||
%h5#modal-passwd-label.modal-title= t 'views.settings.account.modal.title'
|
||||
%button.close{"data-dismiss" => "modal", :type => "button"}
|
||||
%span{"aria-hidden" => "true"} ×
|
||||
%span.sr-only= t 'views.actions.close'
|
||||
%h4#modal-passwd-label.modal-title= t 'views.settings.account.modal.title'
|
||||
.modal-body
|
||||
= f.password_field :current_password, autocomplete: "off", label: t('views.settings.account.password_current'), help: t('views.settings.account.password_current_help')
|
||||
.modal-footer
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
.modal-dialog
|
||||
.modal-content
|
||||
.modal-header
|
||||
%h5#modal-ban-label.modal-title
|
||||
= t 'views.modal.bancontrol.title'
|
||||
%button.close{"data-dismiss" => "modal", :type => "button"}
|
||||
%span{"aria-hidden" => "true"} ×
|
||||
%span.sr-only Close
|
||||
%h4#modal-ban-label.modal-title
|
||||
= t 'views.modal.bancontrol.title'
|
||||
= bootstrap_form_tag(url: '/mod/ban', html: { method: :post, novalidate: "novalidate" }) do |f|
|
||||
= f.hidden_field :user, value: @user.screen_name
|
||||
#ban-control-super.modal-body
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
.modal-dialog
|
||||
.modal-content
|
||||
.modal-header
|
||||
%h5#modal-group-memberships-label.modal-title= t 'views.modal.group.title'
|
||||
%button.close{"data-dismiss" => "modal", :type => "button"}
|
||||
%span{"aria-hidden" => "true"} ×
|
||||
%span.sr-only= t 'views.actions.close'
|
||||
%h4#modal-group-memberships-label.modal-title= t 'views.modal.group.title'
|
||||
%div{role: "tabpanel"}
|
||||
%ul.nav.nav-tabs{role: "tablist"}
|
||||
%li.active{role: "presentation"}
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
.modal-dialog
|
||||
.modal-content
|
||||
.modal-header
|
||||
%h5#modal-privileges-label.modal-title
|
||||
= raw t('views.actions.privilege', user: @user.screen_name)
|
||||
%button.close{"data-dismiss" => "modal", :type => "button"}
|
||||
%span{"aria-hidden" => "true"} ×
|
||||
%span.sr-only= t 'views.actions.close'
|
||||
%h4#modal-privileges-label.modal-title
|
||||
= raw t('views.actions.privilege', user: @user.screen_name)
|
||||
%ul.list-group.groups--list
|
||||
= render 'user/modal_privileges_item', privilege: 'blogger', description: t('views.modal.privilege.blogger'), user: @user
|
||||
= render 'user/modal_privileges_item', privilege: 'contributor', description: t('views.modal.privilege.contributor'), user: @user
|
||||
|
|
Loading…
Reference in New Issue