22 lines
1.3 KiB
Plaintext
22 lines
1.3 KiB
Plaintext
.modal.fade#modal-ask-followers{ aria: { hidden: true, labelledby: 'modal-ask-followers-label' }, role: :dialog, tabindex: -1 }
|
||
.modal-dialog
|
||
.modal-content
|
||
.modal-header
|
||
%h5.modal-title#modal-ask-followers-label= t 'views.modal.ask.title'
|
||
%button.close{ data: { dismiss: :modal }, type: :button }
|
||
%span{ aria: { hidden: true } } ×
|
||
%span.sr-only= t 'views.actions.close'
|
||
.modal-body
|
||
%textarea.form-control{ name: 'qb-all-question', placeholder: t('views.placeholder.question') }
|
||
.modal-footer
|
||
- if current_user.groups.count.positive?
|
||
%label
|
||
= t 'views.modal.ask.choose'
|
||
%select.form-control{ name: 'qb-all-rcpt', autocomplete: 'off' }
|
||
%option{ value: 'followers', selected: true }= t('views.general.follower').pluralize(2)
|
||
%optgroup{ label: t('views.group.title').pluralize(2) }
|
||
- current_user.groups.each do |group|
|
||
%option{ value: "grp:#{group.name}" }= group.display_name
|
||
%button.btn.btn-default{ type: :button, data: { dismiss: :modal } }= t 'views.actions.cancel'
|
||
%button.btn.btn-primary{ name: 'qb-all-ask', type: :button, data: { loading_text: t('views.modal.ask.loading') } }= t 'views.actions.ask'
|