To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / .svn / pristine / 87 / 87bccc8b0237c60b603b0c9aecb4fc7a1b48b6d1.svn-base @ 1297:0a574315af3e

History | View | Annotate | Download (1.15 KB)

1 1296:038ba2d95de8 Chris
<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 %>