##// END OF EJS Templates
project settings tabs redesign...
Jean-Philippe Lang -
r179:e51c20c49609
parent child
Show More
@@ -18,16 +18,16
18 <% end %>
18 <% end %>
19 </div>
19 </div>
20
20
21 <div id="tab-content-members" class="tab-content" style="display:none;">
21 <div id="tab-content-members" class="tab-content" style="display:none;">
22 <div class="box">
23 <h3><%=l(:label_member_plural)%></h3>
24 <%= error_messages_for 'member' %>
22 <%= error_messages_for 'member' %>
25 <table>
23 <table class="list">
26 <% for member in @project.members.find(:all, :include => :user) %>
24 <thead><th><%= l(:label_user) %></th><th><%= l(:label_role) %></th><th></th></thead>
25 <tbody>
26 <% for member in @project.members.find(:all, :include => :user) %>
27 <% unless member.new_record? %>
27 <% unless member.new_record? %>
28 <tr>
28 <tr class="<%= cycle 'odd', 'even' %>">
29 <td><%= member.user.display_name %></td>
29 <td><%= member.user.display_name %></td>
30 <td>
30 <td align="center">
31 <% if authorize_for('members', 'edit') %>
31 <% if authorize_for('members', 'edit') %>
32 <%= start_form_tag :controller => 'members', :action => 'edit', :id => member %>
32 <%= start_form_tag :controller => 'members', :action => 'edit', :id => member %>
33 <select name="member[role_id]">
33 <select name="member[role_id]">
@@ -37,15 +37,15
37 <%= end_form_tag %>
37 <%= end_form_tag %>
38 <% end %>
38 <% end %>
39 </td>
39 </td>
40 <td>
40 <td align="center">
41 <%= link_to_if_authorized l(:button_delete), {:controller => 'members', :action => 'destroy', :id => member}, :confirm => l(:text_are_you_sure), :post => true, :class => 'icon icon-del' %>
41 <%= link_to_if_authorized l(:button_delete), {:controller => 'members', :action => 'destroy', :id => member}, :confirm => l(:text_are_you_sure), :post => true, :class => 'icon icon-del' %>
42 </td>
42 </td>
43 </tr>
43 </tr>
44 <% end %>
44 <% end %>
45 <% end %>
45 </tbody>
46 <% end; reset_cycle %>
46 </table>
47 </table>
47 <% if authorize_for('projects', 'add_member') %>
48 <% if authorize_for('projects', 'add_member') %>
48 <hr />
49 <label><%=l(:label_member_new)%></label><br/>
49 <label><%=l(:label_member_new)%></label><br/>
50 <%= start_form_tag :controller => 'projects', :action => 'add_member', :tab => 'members', :id => @project %>
50 <%= start_form_tag :controller => 'projects', :action => 'add_member', :tab => 'members', :id => @project %>
51 <select name="member[user_id]">
51 <select name="member[user_id]">
@@ -57,58 +57,51
57 <%= submit_tag l(:button_add) %>
57 <%= submit_tag l(:button_add) %>
58 <%= end_form_tag %>
58 <%= end_form_tag %>
59 <% end %>
59 <% end %>
60 </div>
61 </div>
60 </div>
62
61
63 <div id="tab-content-versions" class="tab-content" style="display:none;">
62 <div id="tab-content-versions" class="tab-content" style="display:none;">
64 <div class="box">
63 <table class="list">
65 <h3><%=l(:label_version_plural)%></h3>
64 <thead><th><%= l(:label_version) %></th><th><%= l(:field_effective_date) %></th><th><%= l(:field_description) %></th><th></th><th></th></thead>
66 <table>
65 <tbody>
67 <% for version in @project.versions %>
66 <% for version in @project.versions %>
68 <tr>
67 <tr class="<%= cycle 'odd', 'even' %>">
69 <td width="100"><strong><%=h version.name %></strong></td>
68 <td><strong><%=h version.name %></strong></td>
70 <td width="100"><%= format_date(version.effective_date) %></td>
69 <td align="center"><%= format_date(version.effective_date) %></td>
71 <td><%=h version.description %></td>
70 <td><%=h version.description %></td>
72 <td>
71 <td align="center"><%= link_to_if_authorized l(:button_edit), { :controller => 'versions', :action => 'edit', :id => version }, :class => 'icon icon-edit' %></td>
73 <%= link_to_if_authorized l(:button_edit), { :controller => 'versions', :action => 'edit', :id => version }, :class => 'icon icon-edit' %>
72 <td align="center"><%= link_to_if_authorized l(:button_delete), {:controller => 'versions', :action => 'destroy', :id => version}, :confirm => l(:text_are_you_sure), :post => true, :class => 'icon icon-del' %></td>
74 <%= link_to_if_authorized l(:button_delete), {:controller => 'versions', :action => 'destroy', :id => version}, :confirm => l(:text_are_you_sure), :post => true, :class => 'icon icon-del' %>
73 </td>
75 </td>
74 </tr>
76 </tr>
75 <% end; reset_cycle %>
77 <% end %>
76 </tbody>
78 </table>
77 </table>
79 <% if authorize_for('projects', 'add_version') %>
78 <%= link_to_if_authorized l(:label_version_new), :controller => 'projects', :action => 'add_version', :id => @project %>
80 <hr />
81 <%= link_to l(:label_version_new), :controller => 'projects', :action => 'add_version', :id => @project %>
82 <% end %>
83 </div>
84 </div>
79 </div>
85
80
86 <div id="tab-content-categories" class="tab-content" style="display:none;">
81 <div id="tab-content-categories" class="tab-content" style="display:none;">
87 <div class="box">
82 <table class="list">
88 <h3><%=l(:label_issue_category_plural)%></h3>
83 <thead><th><%= l(:label_issue_status) %></th><th></th></thead>
89 <table>
84 <tbody>
90 <% for @category in @project.issue_categories %>
85 <% for @category in @project.issue_categories %>
91 <% unless @category.new_record? %>
86 <% unless @category.new_record? %>
92 <tr>
87 <tr class="<%= cycle 'odd', 'even' %>">
93 <td>
88 <td>
94 <%= start_form_tag :controller => 'issue_categories', :action => 'edit', :id => @category %>
89 <%= start_form_tag :controller => 'issue_categories', :action => 'edit', :id => @category %>
95 <%= text_field 'category', 'name', :size => 25 %>
90 <%= text_field 'category', 'name', :size => 25 %>
96 </td>
97 <td>
98 <% if authorize_for('issue_categories', 'edit') %>
91 <% if authorize_for('issue_categories', 'edit') %>
99 <%= submit_tag l(:button_save), :class => "button-small" %>
92 <%= submit_tag l(:button_save), :class => "button-small" %>
100 <%= end_form_tag %>
93 <%= end_form_tag %>
101 <% end %>
94 <% end %>
102 </td>
95 </td>
103 <td>
96 <td align="center">
104 <%= link_to_if_authorized l(:button_delete), {:controller => 'issue_categories', :action => 'destroy', :id => @category}, :confirm => l(:text_are_you_sure), :post => true, :class => 'icon icon-del' %>
97 <%= link_to_if_authorized l(:button_delete), {:controller => 'issue_categories', :action => 'destroy', :id => @category}, :confirm => l(:text_are_you_sure), :post => true, :class => 'icon icon-del' %>
105 </td>
98 </td>
106 </tr>
99 </tr>
107 <% end %>
100 <% end %>
108 <% end %>
101 <% end %>
102 </tbody>
109 </table>
103 </table>
110 <% if authorize_for('projects', 'add_issue_category') %>
104 <% if authorize_for('projects', 'add_issue_category') %>
111 <hr />
112 <%= start_form_tag :action => 'add_issue_category', :tab => 'categories', :id => @project %>
105 <%= start_form_tag :action => 'add_issue_category', :tab => 'categories', :id => @project %>
113 <label for="issue_category_name"><%=l(:label_issue_category_new)%></label><br/>
106 <label for="issue_category_name"><%=l(:label_issue_category_new)%></label><br/>
114 <%= error_messages_for 'issue_category' %>
107 <%= error_messages_for 'issue_category' %>
@@ -117,7 +110,6
117 <%= end_form_tag %>
110 <%= end_form_tag %>
118 <% end %>
111 <% end %>
119 </div>
112 </div>
120 </div>
121
113
122 <%= tab = params[:tab] ? h(params[:tab]) : 'info'
114 <%= tab = params[:tab] ? h(params[:tab]) : 'info'
123 javascript_tag "showTab('#{tab}');" %> No newline at end of file
115 javascript_tag "showTab('#{tab}');" %>
@@ -336,6 +336,10 table.with-cells td {
336 border: 1px solid #d7d7d7;
336 border: 1px solid #d7d7d7;
337 }
337 }
338
338
339 table.list td {
340 padding:2px;
341 }
342
339 table.list thead th {
343 table.list thead th {
340 text-align: center;
344 text-align: center;
341 background: #eee;
345 background: #eee;
General Comments 0
You need to be logged in to leave comments. Login now