Mercurial > hg > soundsoftware-site
view .svn/pristine/58/5878eef8c7c288582eab7e2a8dc69cc546b48c08.svn-base @ 1539:22d57b0e0a77 live
OK, this script works now, but it should be using the API
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 21 May 2015 17:31:06 +0100 |
parents | 261b3d9a4903 |
children |
line wrap: on
line source
<h3 class="title"><%= l(:permission_add_issue_watchers) %></h3> <%= form_tag({:controller => 'watchers', :action => (watched ? 'create' : 'append'), :object_type => (watched && watched.class.name.underscore), :object_id => watched, :project_id => @project}, :remote => true, :method => :post, :id => 'new-watcher-form') do %> <p><%= label_tag 'user_search', l(:label_user_search) %><%= text_field_tag 'user_search', nil %></p> <%= javascript_tag "observeSearchfield('user_search', 'users_for_watcher', '#{ escape_javascript url_for(:controller => 'watchers', :action => 'autocomplete_for_user', :object_type => (watched && watched.class.name.underscore), :object_id => watched, :project_id => @project) }')" %> <div id="users_for_watcher"> <%= principals_check_box_tags 'watcher[user_ids][]', (watched ? watched.addable_watcher_users : User.active.all(:limit => 100)) %> </div> <p class="buttons"> <%= submit_tag l(:button_add), :name => nil, :onclick => "hideModal(this);" %> <%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %> </p> <% end %>