@@ -1,25 +1,25 | |||||
1 | <div class="contextual"> |
|
1 | <div class="contextual"> | |
2 | <%= link_to_remote l(:button_add), |
|
2 | <%= link_to_remote l(:button_add), | |
3 | :url => {:controller => 'watchers', |
|
3 | :url => {:controller => 'watchers', | |
4 | :action => 'new', |
|
4 | :action => 'new', | |
5 | :object_type => watched.class.name.underscore, |
|
5 | :object_type => watched.class.name.underscore, | |
6 | :object_id => watched} if User.current.allowed_to?(:add_issue_watchers, @project) %> |
|
6 | :object_id => watched} if User.current.allowed_to?(:add_issue_watchers, @project) %> | |
7 | </div> |
|
7 | </div> | |
8 |
|
8 | |||
9 | <p><strong><%= l(:label_issue_watchers) %></strong></p> |
|
9 | <p><strong><%= l(:label_issue_watchers) %></strong></p> | |
10 | <%= watchers_list(watched) %> |
|
10 | <%= watchers_list(watched) %> | |
11 |
|
11 | |||
12 | <% unless @watcher.nil? %> |
|
12 | <% unless @watcher.nil? %> | |
13 | <% remote_form_for(:watcher, @watcher, |
|
13 | <% remote_form_for(:watcher, @watcher, | |
14 | :url => {:controller => 'watchers', |
|
14 | :url => {:controller => 'watchers', | |
15 | :action => 'new', |
|
15 | :action => 'new', | |
16 | :object_type => watched.class.name.underscore, |
|
16 | :object_type => watched.class.name.underscore, | |
17 | :object_id => watched}, |
|
17 | :object_id => watched}, | |
18 | :method => :post, |
|
18 | :method => :post, | |
19 | :html => {:id => 'new-watcher-form'}) do |f| %> |
|
19 | :html => {:id => 'new-watcher-form'}) do |f| %> | |
20 |
<p><%= f.select :user_id, (watched.addable_watcher_users.collect {|m| [m.name, m.id]}), :prompt => |
|
20 | <p><%= f.select :user_id, (watched.addable_watcher_users.collect {|m| [m.name, m.id]}), :prompt => "--- #{l(:actionview_instancetag_blank_option)} ---" %> | |
21 |
|
21 | |||
22 | <%= submit_tag l(:button_add) %> |
|
22 | <%= submit_tag l(:button_add) %> | |
23 | <%= toggle_link l(:button_cancel), 'new-watcher-form'%></p> |
|
23 | <%= toggle_link l(:button_cancel), 'new-watcher-form'%></p> | |
24 | <% end %> |
|
24 | <% end %> | |
25 | <% end %> |
|
25 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now