added %select to the ask followers modal

This commit is contained in:
nilsding 2015-01-13 14:50:28 +01:00
parent a8ed21942e
commit 9b0b2df18e
1 changed files with 8 additions and 0 deletions

View File

@ -9,5 +9,13 @@
.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
%button.btn.btn-default{"data-dismiss" => "modal", :type => "button"} Cancel
%button.btn.btn-primary{name: 'qb-all-ask', :type => "button", data: {loading_text: 'Asking...' }} Ask