##// END OF EJS Templates
views cleaning...
Jean-Philippe Lang -
r20:893a43316548
parent child
Show More
@@ -115,6 +115,12 module ApplicationHelper
115 115 options[:html].store :class, "tabular"
116 116 form_for(name, object, options.merge({ :builder => TabularFormBuilder, :lang => current_language}), &proc)
117 117 end
118
119 def check_all_links(form_name)
120 link_to_function(l(:button_check_all), "checkAll('#{form_name}', true)") +
121 " | " +
122 link_to_function(l(:button_uncheck_all), "checkAll('#{form_name}', false)")
123 end
118 124 end
119 125
120 126 class TabularFormBuilder < ActionView::Helpers::FormBuilder
@@ -1,9 +1,10
1 1 <h2><%=l(:field_mail_notification)%></h2>
2 2
3 <p><%=l(:text_select_mail_notifications)%></p>
4
5 3 <%= start_form_tag ({}, :id => 'mail_options_form')%>
6 4
5 <div class="box">
6 <p><%=l(:text_select_mail_notifications)%></p>
7
7 8 <% actions = @actions.group_by {|p| p.group_id } %>
8 9 <% actions.keys.sort.each do |group_id| %>
9 10 <fieldset style="margin-top: 6px;"><legend><strong><%= l(Permission::GROUPS[group_id]) %></strong></legend>
@@ -15,11 +16,9
15 16 </fieldset>
16 17 <% end %>
17 18
18
19 19 <br />
20 <p>
21 <a href="javascript:checkAll('mail_options_form', true)"><%=l(:button_check_all)%></a> |
22 <a href="javascript:checkAll('mail_options_form', false)"><%=l(:button_uncheck_all)%></a>
23 </p>
20 <p><%= check_all_links 'mail_options_form' %></p>
21 </div>
22
24 23 <%= submit_tag l(:button_save) %>
25 <%= end_form_tag %> No newline at end of file
24 <%= end_form_tag %>
@@ -1,16 +1,15
1 1 <h2><%=l(:label_change_log)%></h2>
2 2
3
4 3 <%= start_form_tag %>
5 4 <% @trackers.each do |tracker| %>
6 5 <%= check_box_tag "tracker_ids[]", tracker.id, (@selected_tracker_ids.include? tracker.id.to_s) %>
7 6 <%= tracker.name %>
8 7 <% end %>
9 8 &nbsp;&nbsp;<%= submit_tag l(:button_apply), :class => 'button-small' %>
10 <%= end_form_tag %>
11
12 <p>&nbsp;</p>
9 <%= end_form_tag %><br />
10 &nbsp;
13 11
12 <div class="box">
14 13 <% ver_id = nil
15 14 @fixed_issues.each do |issue| %>
16 15 <% unless ver_id == issue.fixed_version_id %>
@@ -23,3 +22,4
23 22 <li><%= link_to issue.long_id, :controller => 'issues', :action => 'show', :id => issue %> [<%= issue.tracker.name %>]: <%= issue.subject %></li>
24 23 <% end %>
25 24
25 </div> No newline at end of file
@@ -1,5 +1,7
1 1 <h2><%=l(:label_document_plural)%></h2>
2 2
3 <% if @documents.empty? %><p><i><%= l(:label_no_data) %></i></p><% end %>
4
3 5 <% documents = @documents.group_by {|d| d.category } %>
4 6 <% documents.each do |category, docs| %>
5 7 <h3><%= category.name %></h3>
@@ -1,5 +1,7
1 1 <h2><%=l(:label_news_plural)%></h2>
2 2
3 <% if @news.empty? %><p><i><%= l(:label_no_data) %></i></p><% end %>
4
3 5 <% for news in @news %>
4 6 <p>
5 7 <b><%= news.title %></b> <small>(<%= link_to_user news.author %> <%= format_time(news.created_on) %>)</small><br />
@@ -1,7 +1,7
1 1 <h2><%=l(:label_overview)%></h2>
2 2
3 3 <div class="splitcontentleft">
4 <%= @project.description %>
4 <%= simple_format auto_link @project.description %>
5 5 <ul>
6 6 <li><%=l(:field_homepage)%>: <%= link_to @project.homepage, @project.homepage %></li>
7 7 <li><%=l(:field_created_on)%>: <%= format_date(@project.created_on) %></li>
@@ -14,8 +14,7
14 14 <% end %>
15 15 </fieldset>
16 16 <% end %>
17 <br />
18 <a href="javascript:checkAll('role_form', true)"><%=l(:button_check_all)%></a> |
19 <a href="javascript:checkAll('role_form', false)"><%=l(:button_uncheck_all)%></a><br />
17 <br />
18 <%= check_all_links 'role_form' %>
20 19 <!--[eoform:role]-->
21 20 </div>
General Comments 0
You need to be logged in to leave comments. Login now