##// END OF EJS Templates
Removed some parentheses before arguments....
Jean-Philippe Lang -
r468:104b7d457dbb
parent child
Show More
@@ -1,68 +1,68
1 1 <h2><%=l(:label_workflow)%></h2>
2 2
3 3 <p><%=l(:text_workflow_edit)%>:</p>
4 4
5 <% form_tag ({:action => 'workflow'}, :method => 'get') do %>
5 <% form_tag({:action => 'workflow'}, :method => 'get') do %>
6 6 <div style="float:left;margin-right:10px;">
7 7 <p><label for="role_id"><%=l(:label_role)%></label><br/>
8 8 <select id="role_id" name="role_id">
9 9 <%= options_from_collection_for_select @roles, "id", "name", (@role.id unless @role.nil?) %>
10 10 </select></p>
11 11 </div>
12 12
13 13 <div>
14 14 <p><label for="tracker_id"><%=l(:label_tracker)%></label><br/>
15 15 <select id="tracker_id" name="tracker_id">
16 16 <%= options_from_collection_for_select @trackers, "id", "name", (@tracker.id unless @tracker.nil?) %>
17 17 </select>
18 18
19 19 <%= submit_tag l(:button_edit) %>
20 20 </p>
21 21 </div>
22 22 <% end %>
23 23
24 24
25 25
26 26 <% unless @tracker.nil? or @role.nil? %>
27 27 <div class="box">
28 28 <% form_tag({:action => 'workflow', :role_id => @role, :tracker_id => @tracker }, :id => 'workflow_form' ) do %>
29 29 <table>
30 30 <tr>
31 31 <td align="center"><strong><%=l(:label_current_status)%></strong></td>
32 32 <td align="center" colspan="<%= @statuses.length %>"><strong><%=l(:label_new_statuses_allowed)%></strong></td>
33 33 </tr>
34 34 <tr>
35 35 <td></td>
36 36 <% for new_status in @statuses %>
37 37 <td width="80" align="center"><%= new_status.name %></td>
38 38 <% end %>
39 39 </tr>
40 40
41 41 <% for old_status in @statuses %>
42 42 <tr>
43 43 <td><div class="square" style="background:#<%= old_status.html_color %>;"></div> <%= old_status.name %></td>
44 44 <% for new_status in @statuses %>
45 45 <td align="center">
46 46
47 47 <input type="checkbox"
48 48 name="issue_status[<%= old_status.id %>][]"
49 49 value="<%= new_status.id %>"
50 50 <%if old_status.new_statuses_allowed_to(@role, @tracker).include? new_status%>checked="checked"<%end%>
51 51 >
52 52 </td>
53 53 <% end %>
54 54
55 55 </tr>
56 56 <% end %>
57 57 </table>
58 58 <br />
59 59 <p>
60 60 <a href="javascript:checkAll('workflow_form', true)"><%=l(:button_check_all)%></a> |
61 61 <a href="javascript:checkAll('workflow_form', false)"><%=l(:button_uncheck_all)%></a>
62 62 </p>
63 63 <br />
64 64 <%= submit_tag l(:button_save) %>
65 65 <% end %>
66 66
67 67 <% end %>
68 68 </div> No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now