Retrospring/app/views/shared/_modal_ask_followers.html.haml

21 lines
1.1 KiB
Plaintext
Raw Normal View History

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"} ×
%span.sr-only Close
%h4#modal-ask-followers-label.modal-title Ask your followers
.modal-body
%textarea.form-control{:name => "qb-all-question", :placeholder => "Type your question here…"}
.modal-footer
- if current_user.groups.count > 0
%label
Choose group:
%select{name: 'qb-all-target', class: 'form-control', autocomplete: 'off'}
%option{value: '_followers', selected: true} Followers
%optgroup{label: 'Groups'}
- current_user.groups.each do |group|
%option{value: group.name}= group.display_name
2014-12-07 11:18:53 -08:00
%button.btn.btn-default{"data-dismiss" => "modal", :type => "button"} Cancel
2014-12-08 07:01:27 -08:00
%button.btn.btn-primary{name: 'qb-all-ask', :type => "button", data: {loading_text: 'Asking...' }} Ask