##// END OF EJS Templates
Removed some parentheses before arguments....
Jean-Philippe Lang -
r466:e02068eb2a7c
parent child
Show More
@@ -1,38 +1,38
1 <div class="contextual">
1 <div class="contextual">
2 <%= link_to_if_authorized l(:button_edit), {:controller => 'documents', :action => 'edit', :id => @document}, :class => 'icon icon-edit' %>
2 <%= link_to_if_authorized l(:button_edit), {:controller => 'documents', :action => 'edit', :id => @document}, :class => 'icon icon-edit' %>
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' %>
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 </div>
4 </div>
5
5
6 <h2><%= @document.title %></h2>
6 <h2><%= @document.title %></h2>
7
7
8 <p><em><%= @document.category.name %><br />
8 <p><em><%= @document.category.name %><br />
9 <%= format_date @document.created_on %></em></p>
9 <%= format_date @document.created_on %></em></p>
10 <%= textilizable @document.description %>
10 <%= textilizable @document.description %>
11 <br />
11 <br />
12
12
13 <h3><%= l(:label_attachment_plural) %></h3>
13 <h3><%= l(:label_attachment_plural) %></h3>
14 <ul class="documents">
14 <ul class="documents">
15 <% for attachment in @attachments %>
15 <% for attachment in @attachments %>
16 <li>
16 <li>
17 <div class="contextual">
17 <div class="contextual">
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' %>
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 </div>
19 </div>
20 <%= link_to attachment.filename, :action => 'download', :id => @document, :attachment_id => attachment %>
20 <%= link_to attachment.filename, :action => 'download', :id => @document, :attachment_id => attachment %>
21 (<%= number_to_human_size attachment.filesize %>)<br />
21 (<%= number_to_human_size attachment.filesize %>)<br />
22 <em><%= attachment.author.display_name %>, <%= format_date(attachment.created_on) %></em><br />
22 <em><%= attachment.author.display_name %>, <%= format_date(attachment.created_on) %></em><br />
23 <%= lwr(:label_download, attachment.downloads) %>
23 <%= lwr(:label_download, attachment.downloads) %>
24 </li>
24 </li>
25 <% end %>
25 <% end %>
26 </ul>
26 </ul>
27 <br />
27 <br />
28
28
29
29
30 <% if authorize_for('documents', 'add_attachment') %>
30 <% if authorize_for('documents', 'add_attachment') %>
31 <p><%= toggle_link l(:label_attachment_new), "add_attachment_form" %></p>
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 <p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%>
33 <p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%>
34 <%= image_to_function "add.png", "addFileField();return false" %></label>
34 <%= image_to_function "add.png", "addFileField();return false" %></label>
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>
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 <%= submit_tag l(:button_add) %>
36 <%= submit_tag l(:button_add) %>
37 <% end %>
37 <% end %>
38 <% end %>
38 <% end %>
@@ -1,68 +1,68
1 <h2><%=l(:label_workflow)%></h2>
1 <h2><%=l(:label_workflow)%></h2>
2
2
3 <p><%=l(:text_workflow_edit)%>:</p>
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 <div style="float:left;margin-right:10px;">
6 <div style="float:left;margin-right:10px;">
7 <p><label for="role_id"><%=l(:label_role)%></label><br/>
7 <p><label for="role_id"><%=l(:label_role)%></label><br/>
8 <select id="role_id" name="role_id">
8 <select id="role_id" name="role_id">
9 <%= options_from_collection_for_select @roles, "id", "name", (@role.id unless @role.nil?) %>
9 <%= options_from_collection_for_select @roles, "id", "name", (@role.id unless @role.nil?) %>
10 </select></p>
10 </select></p>
11 </div>
11 </div>
12
12
13 <div>
13 <div>
14 <p><label for="tracker_id"><%=l(:label_tracker)%></label><br/>
14 <p><label for="tracker_id"><%=l(:label_tracker)%></label><br/>
15 <select id="tracker_id" name="tracker_id">
15 <select id="tracker_id" name="tracker_id">
16 <%= options_from_collection_for_select @trackers, "id", "name", (@tracker.id unless @tracker.nil?) %>
16 <%= options_from_collection_for_select @trackers, "id", "name", (@tracker.id unless @tracker.nil?) %>
17 </select>
17 </select>
18
18
19 <%= submit_tag l(:button_edit) %>
19 <%= submit_tag l(:button_edit) %>
20 </p>
20 </p>
21 </div>
21 </div>
22 <% end %>
22 <% end %>
23
23
24
24
25
25
26 <% unless @tracker.nil? or @role.nil? %>
26 <% unless @tracker.nil? or @role.nil? %>
27 <div class="box">
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 <table>
29 <table>
30 <tr>
30 <tr>
31 <td align="center"><strong><%=l(:label_current_status)%></strong></td>
31 <td align="center"><strong><%=l(:label_current_status)%></strong></td>
32 <td align="center" colspan="<%= @statuses.length %>"><strong><%=l(:label_new_statuses_allowed)%></strong></td>
32 <td align="center" colspan="<%= @statuses.length %>"><strong><%=l(:label_new_statuses_allowed)%></strong></td>
33 </tr>
33 </tr>
34 <tr>
34 <tr>
35 <td></td>
35 <td></td>
36 <% for new_status in @statuses %>
36 <% for new_status in @statuses %>
37 <td width="80" align="center"><%= new_status.name %></td>
37 <td width="80" align="center"><%= new_status.name %></td>
38 <% end %>
38 <% end %>
39 </tr>
39 </tr>
40
40
41 <% for old_status in @statuses %>
41 <% for old_status in @statuses %>
42 <tr>
42 <tr>
43 <td><div class="square" style="background:#<%= old_status.html_color %>;"></div> <%= old_status.name %></td>
43 <td><div class="square" style="background:#<%= old_status.html_color %>;"></div> <%= old_status.name %></td>
44 <% for new_status in @statuses %>
44 <% for new_status in @statuses %>
45 <td align="center">
45 <td align="center">
46
46
47 <input type="checkbox"
47 <input type="checkbox"
48 name="issue_status[<%= old_status.id %>][]"
48 name="issue_status[<%= old_status.id %>][]"
49 value="<%= new_status.id %>"
49 value="<%= new_status.id %>"
50 <%if old_status.new_statuses_allowed_to(@role, @tracker).include? new_status%>checked="checked"<%end%>
50 <%if old_status.new_statuses_allowed_to(@role, @tracker).include? new_status%>checked="checked"<%end%>
51 >
51 >
52 </td>
52 </td>
53 <% end %>
53 <% end %>
54
54
55 </tr>
55 </tr>
56 <% end %>
56 <% end %>
57 </table>
57 </table>
58 <br />
58 <br />
59 <p>
59 <p>
60 <a href="javascript:checkAll('workflow_form', true)"><%=l(:button_check_all)%></a> |
60 <a href="javascript:checkAll('workflow_form', true)"><%=l(:button_check_all)%></a> |
61 <a href="javascript:checkAll('workflow_form', false)"><%=l(:button_uncheck_all)%></a>
61 <a href="javascript:checkAll('workflow_form', false)"><%=l(:button_uncheck_all)%></a>
62 </p>
62 </p>
63 <br />
63 <br />
64 <%= submit_tag l(:button_save) %>
64 <%= submit_tag l(:button_save) %>
65 <% end %>
65 <% end %>
66
66
67 <% end %>
67 <% end %>
68 </div> No newline at end of file
68 </div>
General Comments 0
You need to be logged in to leave comments. Login now