Chris@1517:

<%= l(:permission_add_issue_watchers) %>

Chris@1517: Chris@1517: <%= form_tag({:controller => 'watchers', Chris@1517: :action => (watched ? 'create' : 'append'), Chris@1517: :object_type => (watched && watched.class.name.underscore), Chris@1517: :object_id => watched, Chris@1517: :project_id => @project}, Chris@1517: :remote => true, Chris@1517: :method => :post, Chris@1517: :id => 'new-watcher-form') do %> Chris@1517: Chris@1517:

<%= label_tag 'user_search', l(:label_user_search) %><%= text_field_tag 'user_search', nil %>

Chris@1517: <%= javascript_tag "observeSearchfield('user_search', 'users_for_watcher', '#{ escape_javascript url_for(:controller => 'watchers', Chris@1517: :action => 'autocomplete_for_user', Chris@1517: :object_type => (watched && watched.class.name.underscore), Chris@1517: :object_id => watched, Chris@1517: :project_id => @project) }')" %> Chris@1517: Chris@1517:
Chris@1517: <%= principals_check_box_tags('watcher[user_ids][]', users) %> Chris@1517:
Chris@1517: Chris@1517:

Chris@1517: <%= submit_tag l(:button_add), :name => nil, :onclick => "hideModal(this);" %> Chris@1517: <%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %> Chris@1517:

Chris@1517: <% end %>