##// END OF EJS Templates
removed strong tag for version name in settings view...
Jean-Philippe Lang -
r235:6c4f196f6e9b
parent child
Show More
@@ -1,115 +1,115
1 1 <h2><%=l(:label_settings)%></h2>
2 2
3 3 <div class="tabs">
4 4 <ul>
5 5 <li><%= link_to l(:label_information_plural), {}, :id=> "tab-info", :onclick => "showTab('info'); this.blur(); return false;" %></li>
6 6 <li><%= link_to l(:label_member_plural), {}, :id=> "tab-members", :onclick => "showTab('members'); this.blur(); return false;" %></li>
7 7 <li><%= link_to l(:label_version_plural), {}, :id=> "tab-versions", :onclick => "showTab('versions'); this.blur(); return false;" %></li>
8 8 <li><%= link_to l(:label_issue_category_plural), {}, :id=> "tab-categories", :onclick => "showTab('categories'); this.blur(); return false;" %></li>
9 9 </ul>
10 10 </div>
11 11
12 12 <div id="tab-content-info" class="tab-content">
13 13 <% if authorize_for('projects', 'edit') %>
14 14 <% labelled_tabular_form_for :project, @project, :url => { :action => "edit", :id => @project } do |f| %>
15 15 <%= render :partial => 'form', :locals => { :f => f } %>
16 16 <%= submit_tag l(:button_save) %>
17 17 <% end %>
18 18 <% end %>
19 19 </div>
20 20
21 21 <div id="tab-content-members" class="tab-content" style="display:none;">
22 22 <%= error_messages_for 'member' %>
23 23 <table class="list">
24 24 <thead><th><%= l(:label_user) %></th><th><%= l(:label_role) %></th><th></th></thead>
25 25 <tbody>
26 26 <% @project.members.find(:all, :include => [:role, :user]).sort{|x,y| x.role.position <=> y.role.position}.each do |member| %>
27 27 <% unless member.new_record? %>
28 28 <tr class="<%= cycle 'odd', 'even' %>">
29 29 <td><%= member.user.display_name %></td>
30 30 <td align="center">
31 31 <% if authorize_for('members', 'edit') %>
32 32 <% form_tag({:controller => 'members', :action => 'edit', :id => member}) do %>
33 33 <select name="member[role_id]">
34 34 <%= options_from_collection_for_select @roles, "id", "name", member.role_id %>
35 35 </select>
36 36 <%= submit_tag l(:button_change), :class => "button-small" %>
37 37 <% end %>
38 38 <% end %>
39 39 </td>
40 40 <td align="center">
41 41 <%= link_to_if_authorized l(:button_delete), {:controller => 'members', :action => 'destroy', :id => member}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
42 42 </td>
43 43 </tr>
44 44 <% end %>
45 45 </tbody>
46 46 <% end; reset_cycle %>
47 47 </table>
48 48 <% if authorize_for('projects', 'add_member') %>
49 49 <label><%=l(:label_member_new)%></label><br/>
50 50 <% form_tag({:controller => 'projects', :action => 'add_member', :tab => 'members', :id => @project}) do %>
51 51 <select name="member[user_id]">
52 52 <%= options_from_collection_for_select @users, "id", "display_name", @member.user_id %>
53 53 </select>
54 54 <select name="member[role_id]">
55 55 <%= options_from_collection_for_select @roles, "id", "name", @member.role_id %>
56 56 </select>
57 57 <%= submit_tag l(:button_add) %>
58 58 <% end %>
59 59 <% end %>
60 60 </div>
61 61
62 62 <div id="tab-content-versions" class="tab-content" style="display:none;">
63 63 <table class="list">
64 64 <thead><th><%= l(:label_version) %></th><th><%= l(:field_effective_date) %></th><th><%= l(:field_description) %></th><th></th><th></th></thead>
65 65 <tbody>
66 66 <% for version in @project.versions %>
67 67 <tr class="<%= cycle 'odd', 'even' %>">
68 <td><strong><%=h version.name %></strong></td>
68 <td><%=h version.name %></td>
69 69 <td align="center"><%= format_date(version.effective_date) %></td>
70 70 <td><%=h version.description %></td>
71 71 <td align="center"><%= link_to_if_authorized l(:button_edit), { :controller => 'versions', :action => 'edit', :id => version }, :class => 'icon icon-edit' %></td>
72 72 <td align="center"><%= link_to_if_authorized l(:button_delete), {:controller => 'versions', :action => 'destroy', :id => version}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %></td>
73 73 </td>
74 74 </tr>
75 75 <% end; reset_cycle %>
76 76 </tbody>
77 77 </table>
78 78 <%= link_to_if_authorized l(:label_version_new), :controller => 'projects', :action => 'add_version', :id => @project %>
79 79 </div>
80 80
81 81 <div id="tab-content-categories" class="tab-content" style="display:none;">
82 82 <table class="list">
83 83 <thead><th><%= l(:label_issue_category) %></th><th></th></thead>
84 84 <tbody>
85 85 <% for @category in @project.issue_categories %>
86 86 <% unless @category.new_record? %>
87 87 <tr class="<%= cycle 'odd', 'even' %>">
88 88 <td>
89 89 <% form_tag({:controller => 'issue_categories', :action => 'edit', :id => @category}) do %>
90 90 <%= text_field 'category', 'name', :size => 25 %>
91 91 <% if authorize_for('issue_categories', 'edit') %>
92 92 <%= submit_tag l(:button_save), :class => "button-small" %>
93 93 <% end %>
94 94 <% end %>
95 95 </td>
96 96 <td align="center">
97 97 <%= link_to_if_authorized l(:button_delete), {:controller => 'issue_categories', :action => 'destroy', :id => @category}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
98 98 </td>
99 99 </tr>
100 100 <% end %>
101 101 <% end %>
102 102 </tbody>
103 103 </table>
104 104 <% if authorize_for('projects', 'add_issue_category') %>
105 105 <% form_tag({:action => 'add_issue_category', :tab => 'categories', :id => @project}) do %>
106 106 <label for="issue_category_name"><%=l(:label_issue_category_new)%></label><br/>
107 107 <%= error_messages_for 'issue_category' %>
108 108 <%= text_field 'issue_category', 'name', :size => 25 %>
109 109 <%= submit_tag l(:button_create) %>
110 110 <% end %>
111 111 <% end %>
112 112 </div>
113 113
114 114 <%= tab = params[:tab] ? h(params[:tab]) : 'info'
115 115 javascript_tag "showTab('#{tab}');" %> No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now