From 9b0b2df18e8ff1b0649b6d517578db1579b882c2 Mon Sep 17 00:00:00 2001 From: nilsding Date: Tue, 13 Jan 2015 14:50:28 +0100 Subject: [PATCH] added %select to the ask followers modal --- app/views/shared/_modal_ask_followers.html.haml | 8 ++++++++ 1 file changed, 8 insertions(+) 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