##// END OF EJS Templates
Removed some parentheses before arguments....
Jean-Philippe Lang -
r466:e02068eb2a7c
parent child
Show More
@@ -1,38 +1,38
1 1 <div class="contextual">
2 2 <%= link_to_if_authorized l(:button_edit), {:controller => 'documents', :action => 'edit', :id => @document}, :class => 'icon icon-edit' %>
3 3 <%= link_to_if_authorized l(:button_delete), {:controller => 'documents', :action => 'destroy', :id => @document}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
4 4 </div>
5 5
6 6 <h2><%= @document.title %></h2>
7 7
8 8 <p><em><%= @document.category.name %><br />
9 9 <%= format_date @document.created_on %></em></p>
10 10 <%= textilizable @document.description %>
11 11 <br />
12 12
13 13 <h3><%= l(:label_attachment_plural) %></h3>
14 14 <ul class="documents">
15 15 <% for attachment in @attachments %>
16 16 <li>
17 17 <div class="contextual">
18 18 <%= link_to_if_authorized l(:button_delete), {:controller => 'documents', :action => 'destroy_attachment', :id => @document, :attachment_id => attachment}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
19 19 </div>
20 20 <%= link_to attachment.filename, :action => 'download', :id => @document, :attachment_id => attachment %>
21 21 (<%= number_to_human_size attachment.filesize %>)<br />
22 22 <em><%= attachment.author.display_name %>, <%= format_date(attachment.created_on) %></em><br />
23 23 <%= lwr(:label_download, attachment.downloads) %>
24 24 </li>
25 25 <% end %>
26 26 </ul>
27 27 <br />
28 28
29 29
30 30 <% if authorize_for('documents', 'add_attachment') %>
31 31 <p><%= toggle_link l(:label_attachment_new), "add_attachment_form" %></p>
32 <% form_tag ({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :class => "tabular", :id => "add_attachment_form", :style => "display:none;") do %>
32 <% form_tag({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :class => "tabular", :id => "add_attachment_form", :style => "display:none;") do %>
33 33 <p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%>
34 34 <%= image_to_function "add.png", "addFileField();return false" %></label>
35 35 <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p>
36 36 <%= submit_tag l(:button_add) %>
37 37 <% end %>
38 38 <% end %>
@@ -1,68 +1,68
1 1 <h2><%=l(:label_workflow)%></h2>
2 2
3 3 <p><%=l(:text_workflow_edit)%>:</p>
4 4
5 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 <% form_tag ({:action => 'workflow', :role_id => @role, :tracker_id => @tracker }, :id => 'workflow_form' ) do %>
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