comparison app/views/watchers/_new.html.erb @ 1115:433d4f72a19b redmine-2.2

Update to Redmine SVN revision 11137 on 2.2-stable branch
author Chris Cannam
date Mon, 07 Jan 2013 12:01:42 +0000
parents
children 622f24f53b42
comparison
equal deleted inserted replaced
929:5f33065ddc4b 1115:433d4f72a19b
1 <h3 class="title"><%= l(:permission_add_issue_watchers) %></h3>
2
3 <%= form_tag({:controller => 'watchers',
4 :action => (watched ? 'create' : 'append'),
5 :object_type => watched.class.name.underscore,
6 :object_id => watched},
7 :remote => true,
8 :method => :post,
9 :id => 'new-watcher-form') do %>
10
11 <p><%= label_tag 'user_search', l(:label_user_search) %><%= text_field_tag 'user_search', nil %></p>
12 <%= javascript_tag "observeSearchfield('user_search', 'users_for_watcher', '#{ escape_javascript url_for(:controller => 'watchers',
13 :action => 'autocomplete_for_user',
14 :object_type => watched.class.name.underscore,
15 :object_id => watched) }')" %>
16
17 <div id="users_for_watcher">
18 <%= principals_check_box_tags 'watcher[user_ids][]', (watched ? watched.addable_watcher_users : User.active.all(:limit => 100)) %>
19 </div>
20
21 <p class="buttons">
22 <%= submit_tag l(:button_add), :name => nil, :onclick => "hideModal(this);" %>
23 <%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %>
24 </p>
25 <% end %>