annotate .svn/pristine/58/5878eef8c7c288582eab7e2a8dc69cc546b48c08.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 && watched.class.name.underscore),
Chris@1295 6 :object_id => watched,
Chris@1295 7 :project_id => @project},
Chris@1295 8 :remote => true,
Chris@1295 9 :method => :post,
Chris@1295 10 :id => 'new-watcher-form') do %>
Chris@1295 11
Chris@1295 12 <p><%= label_tag 'user_search', l(:label_user_search) %><%= text_field_tag 'user_search', nil %></p>
Chris@1295 13 <%= javascript_tag "observeSearchfield('user_search', 'users_for_watcher', '#{ escape_javascript url_for(:controller => 'watchers',
Chris@1295 14 :action => 'autocomplete_for_user',
Chris@1295 15 :object_type => (watched && watched.class.name.underscore),
Chris@1295 16 :object_id => watched,
Chris@1295 17 :project_id => @project) }')" %>
Chris@1295 18
Chris@1295 19 <div id="users_for_watcher">
Chris@1295 20 <%= principals_check_box_tags 'watcher[user_ids][]', (watched ? watched.addable_watcher_users : User.active.all(:limit => 100)) %>
Chris@1295 21 </div>
Chris@1295 22
Chris@1295 23 <p class="buttons">
Chris@1295 24 <%= submit_tag l(:button_add), :name => nil, :onclick => "hideModal(this);" %>
Chris@1295 25 <%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %>
Chris@1295 26 </p>
Chris@1295 27 <% end %>