summaryrefslogtreecommitdiffstats
path: root/app/views/issues/_watchers_form.html.erb
blob: d6a94319b613ee498196d4189ba3b2cd4571c7f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<% if @issue.safe_attribute? 'watcher_user_ids' -%>
  <%= hidden_field_tag 'issue[watcher_user_ids][]', '' %>
  <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label>
  <span id="watchers_inputs">
    <%= watchers_checkboxes(@issue, users_for_new_issue_watchers(@issue)) %>
  </span>
  <span class="search_for_watchers">
  <%= link_to sprite_icon('add', l(:label_search_for_watchers), size: 12),
              {:controller => 'watchers', :action => 'new', :project_id => @issue.project},
              :class => 'icon icon-add-bullet',
              :remote => true,
              :method => 'get' %>
  </span>
  </p>
<% end %>