@@ -18,16 +18,16 | |||
|
18 | 18 | <% end %> |
|
19 | 19 | </div> |
|
20 | 20 | |
|
21 | <div id="tab-content-members" class="tab-content" style="display:none;"> | |
|
22 | <div class="box"> | |
|
23 | <h3><%=l(:label_member_plural)%></h3> | |
|
21 | <div id="tab-content-members" class="tab-content" style="display:none;"> | |
|
24 | 22 | <%= error_messages_for 'member' %> |
|
25 | <table> | |
|
26 | <% for member in @project.members.find(:all, :include => :user) %> | |
|
23 | <table class="list"> | |
|
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 | 27 | <% unless member.new_record? %> |
|
28 | <tr> | |
|
28 | <tr class="<%= cycle 'odd', 'even' %>"> | |
|
29 | 29 | <td><%= member.user.display_name %></td> |
|
30 | <td> | |
|
30 | <td align="center"> | |
|
31 | 31 | <% if authorize_for('members', 'edit') %> |
|
32 | 32 | <%= start_form_tag :controller => 'members', :action => 'edit', :id => member %> |
|
33 | 33 | <select name="member[role_id]"> |
@@ -37,15 +37,15 | |||
|
37 | 37 | <%= end_form_tag %> |
|
38 | 38 | <% end %> |
|
39 | 39 | </td> |
|
40 | <td> | |
|
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), :post => true, :class => 'icon icon-del' %> |
|
42 | 42 | </td> |
|
43 | </tr> | |
|
44 | <% end %> | |
|
45 | <% end %> | |
|
43 | </tr> | |
|
44 | <% end %> | |
|
45 | </tbody> | |
|
46 | <% end; reset_cycle %> | |
|
46 | 47 | </table> |
|
47 | 48 | <% if authorize_for('projects', 'add_member') %> |
|
48 | <hr /> | |
|
49 | 49 | <label><%=l(:label_member_new)%></label><br/> |
|
50 | 50 | <%= start_form_tag :controller => 'projects', :action => 'add_member', :tab => 'members', :id => @project %> |
|
51 | 51 | <select name="member[user_id]"> |
@@ -57,58 +57,51 | |||
|
57 | 57 | <%= submit_tag l(:button_add) %> |
|
58 | 58 | <%= end_form_tag %> |
|
59 | 59 | <% end %> |
|
60 | </div> | |
|
61 | 60 | </div> |
|
62 | 61 | |
|
63 | 62 | <div id="tab-content-versions" class="tab-content" style="display:none;"> |
|
64 | <div class="box"> | |
|
65 | <h3><%=l(:label_version_plural)%></h3> | |
|
66 | <table> | |
|
63 | <table class="list"> | |
|
64 | <thead><th><%= l(:label_version) %></th><th><%= l(:field_effective_date) %></th><th><%= l(:field_description) %></th><th></th><th></th></thead> | |
|
65 | <tbody> | |
|
67 | 66 | <% for version in @project.versions %> |
|
68 | <tr> | |
|
69 |
<td |
|
|
70 |
<td |
|
|
71 | <td><%=h version.description %></td> | |
|
72 | <td> | |
|
73 |
|
|
|
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' %> | |
|
75 |
</t |
|
|
76 | </tr> | |
|
77 | <% end %> | |
|
78 | </table> | |
|
79 | <% if authorize_for('projects', 'add_version') %> | |
|
80 | <hr /> | |
|
81 | <%= link_to l(:label_version_new), :controller => 'projects', :action => 'add_version', :id => @project %> | |
|
82 | <% end %> | |
|
83 | </div> | |
|
67 | <tr class="<%= cycle 'odd', 'even' %>"> | |
|
68 | <td><strong><%=h version.name %></strong></td> | |
|
69 | <td align="center"><%= format_date(version.effective_date) %></td> | |
|
70 | <td><%=h version.description %></td> | |
|
71 | <td align="center"><%= link_to_if_authorized l(:button_edit), { :controller => 'versions', :action => 'edit', :id => version }, :class => 'icon icon-edit' %></td> | |
|
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> | |
|
73 | </td> | |
|
74 | </tr> | |
|
75 | <% end; reset_cycle %> | |
|
76 | </tbody> | |
|
77 | </table> | |
|
78 | <%= link_to_if_authorized l(:label_version_new), :controller => 'projects', :action => 'add_version', :id => @project %> | |
|
84 | 79 | </div> |
|
85 | 80 | |
|
86 | 81 | <div id="tab-content-categories" class="tab-content" style="display:none;"> |
|
87 | <div class="box"> | |
|
88 | <h3><%=l(:label_issue_category_plural)%></h3> | |
|
89 | <table> | |
|
82 | <table class="list"> | |
|
83 | <thead><th><%= l(:label_issue_status) %></th><th></th></thead> | |
|
84 | <tbody> | |
|
90 | 85 | <% for @category in @project.issue_categories %> |
|
91 | 86 | <% unless @category.new_record? %> |
|
92 | <tr> | |
|
87 | <tr class="<%= cycle 'odd', 'even' %>"> | |
|
93 | 88 | <td> |
|
94 | 89 | <%= start_form_tag :controller => 'issue_categories', :action => 'edit', :id => @category %> |
|
95 | 90 | <%= text_field 'category', 'name', :size => 25 %> |
|
96 | </td> | |
|
97 | <td> | |
|
98 | 91 | <% if authorize_for('issue_categories', 'edit') %> |
|
99 | 92 | <%= submit_tag l(:button_save), :class => "button-small" %> |
|
100 | 93 | <%= end_form_tag %> |
|
101 | 94 | <% end %> |
|
102 | 95 | </td> |
|
103 | <td> | |
|
96 | <td align="center"> | |
|
104 | 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 | 98 | </td> |
|
106 | 99 | </tr> |
|
107 | 100 | <% end %> |
|
108 | 101 | <% end %> |
|
102 | </tbody> | |
|
109 | 103 | </table> |
|
110 | 104 | <% if authorize_for('projects', 'add_issue_category') %> |
|
111 | <hr /> | |
|
112 | 105 | <%= start_form_tag :action => 'add_issue_category', :tab => 'categories', :id => @project %> |
|
113 | 106 | <label for="issue_category_name"><%=l(:label_issue_category_new)%></label><br/> |
|
114 | 107 | <%= error_messages_for 'issue_category' %> |
@@ -117,7 +110,6 | |||
|
117 | 110 | <%= end_form_tag %> |
|
118 | 111 | <% end %> |
|
119 | 112 | </div> |
|
120 | </div> | |
|
121 | 113 | |
|
122 | 114 | <%= tab = params[:tab] ? h(params[:tab]) : 'info' |
|
123 | 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