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