2014-12-07 11:18:53 -08:00
|
|
|
|
#modal-ask-followers.modal.fade{"aria-hidden" => "true", "aria-labelledby" => "modal-ask-followers-label", :role => "dialog", :tabindex => "-1"}
|
|
|
|
|
.modal-dialog
|
|
|
|
|
.modal-content
|
|
|
|
|
.modal-header
|
|
|
|
|
%button.close{"data-dismiss" => "modal", :type => "button"}
|
|
|
|
|
%span{"aria-hidden" => "true"} ×
|
2015-06-07 14:52:03 -07:00
|
|
|
|
%span.sr-only= t 'views.actions.close'
|
|
|
|
|
%h4#modal-ask-followers-label.modal-title= t 'views.modal.ask.title'
|
2014-12-07 11:18:53 -08:00
|
|
|
|
.modal-body
|
2015-06-08 11:48:23 -07:00
|
|
|
|
%textarea.form-control{:name => "qb-all-question", :placeholder => t('views.placeholder.question')}
|
2014-12-07 11:18:53 -08:00
|
|
|
|
.modal-footer
|
2015-01-13 05:50:28 -08:00
|
|
|
|
- if current_user.groups.count > 0
|
|
|
|
|
%label
|
2015-06-07 14:52:03 -07:00
|
|
|
|
= t 'views.modal.ask.choose'
|
2015-01-13 06:45:32 -08:00
|
|
|
|
%select{name: 'qb-all-rcpt', class: 'form-control', autocomplete: 'off'}
|
2015-06-07 14:52:03 -07:00
|
|
|
|
%option{value: 'followers', selected: true}= t('views.general.follower').pluralize(2)
|
2015-06-08 11:48:23 -07:00
|
|
|
|
%optgroup{label: t('views.group.title').pluralize(2)}
|
2015-01-13 05:50:28 -08:00
|
|
|
|
- current_user.groups.each do |group|
|
2015-01-13 06:45:32 -08:00
|
|
|
|
%option{value: "grp:#{group.name}"}= group.display_name
|
2015-06-07 14:52:03 -07:00
|
|
|
|
%button.btn.btn-default{"data-dismiss" => "modal", :type => "button"}= 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'
|