diff --git a/app/views/shared/_modal_ask_followers.html.haml b/app/views/shared/_modal_ask_followers.html.haml index 597fc28a..e9b41fd1 100644 --- a/app/views/shared/_modal_ask_followers.html.haml +++ b/app/views/shared/_modal_ask_followers.html.haml @@ -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 \ No newline at end of file