annotate .svn/pristine/87/87bccc8b0237c60b603b0c9aecb4fc7a1b48b6d1.svn-base @ 1298:4f746d8966dd
redmine_2.3_integration
Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author |
Chris Cannam |
date |
Fri, 14 Jun 2013 09:28:30 +0100 |
parents |
622f24f53b42 |
children |
|
rev |
line source |
Chris@1295
|
1 <h3 class="title"><%= l(:permission_add_issue_watchers) %></h3>
|
Chris@1295
|
2
|
Chris@1295
|
3 <%= form_tag({:controller => 'watchers',
|
Chris@1295
|
4 :action => (watched ? 'create' : 'append'),
|
Chris@1295
|
5 :object_type => watched.class.name.underscore,
|
Chris@1295
|
6 :object_id => watched},
|
Chris@1295
|
7 :remote => true,
|
Chris@1295
|
8 :method => :post,
|
Chris@1295
|
9 :id => 'new-watcher-form') do %>
|
Chris@1295
|
10
|
Chris@1295
|
11 <p><%= label_tag 'user_search', l(:label_user_search) %><%= text_field_tag 'user_search', nil %></p>
|
Chris@1295
|
12 <%= javascript_tag "observeSearchfield('user_search', 'users_for_watcher', '#{ escape_javascript url_for(:controller => 'watchers',
|
Chris@1295
|
13 :action => 'autocomplete_for_user',
|
Chris@1295
|
14 :object_type => watched.class.name.underscore,
|
Chris@1295
|
15 :object_id => watched) }')" %>
|
Chris@1295
|
16
|
Chris@1295
|
17 <div id="users_for_watcher">
|
Chris@1295
|
18 <%= principals_check_box_tags 'watcher[user_ids][]', (watched ? watched.addable_watcher_users : User.active.all(:limit => 100)) %>
|
Chris@1295
|
19 </div>
|
Chris@1295
|
20
|
Chris@1295
|
21 <p class="buttons">
|
Chris@1295
|
22 <%= submit_tag l(:button_add), :name => nil, :onclick => "hideModal(this);" %>
|
Chris@1295
|
23 <%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %>
|
Chris@1295
|
24 </p>
|
Chris@1295
|
25 <% end %>
|