@@ -1,118 +1,105 | |||||
1 | <h2><%=l(:label_settings)%></h2> |
|
1 | <h2><%=l(:label_settings)%></h2> | |
2 |
|
2 | |||
3 | <% if authorize_for('projects', 'edit') %> |
|
3 | <% if authorize_for('projects', 'edit') %> | |
4 | <% labelled_tabular_form_for :project, @project, :url => { :action => "edit", :id => @project } do |f| %> |
|
4 | <% labelled_tabular_form_for :project, @project, :url => { :action => "edit", :id => @project } do |f| %> | |
5 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
5 | <%= render :partial => 'form', :locals => { :f => f } %> | |
6 | <%= submit_tag l(:button_save) %> |
|
6 | <%= submit_tag l(:button_save) %> | |
7 | <% end %> |
|
7 | <% end %> | |
8 | <br /> |
|
8 | <br /> | |
9 | <% end %> |
|
9 | <% end %> | |
10 |
|
10 | |||
11 | <div class="box"> |
|
11 | <div class="box"> | |
12 | <h3><%=l(:label_member_plural)%></h3> |
|
12 | <h3><%=l(:label_member_plural)%></h3> | |
13 | <%= error_messages_for 'member' %> |
|
13 | <%= error_messages_for 'member' %> | |
14 | <table> |
|
14 | <table> | |
15 | <% for member in @project.members.find(:all, :include => :user) %> |
|
15 | <% for member in @project.members.find(:all, :include => :user) %> | |
16 | <% unless member.new_record? %> |
|
16 | <% unless member.new_record? %> | |
17 | <tr> |
|
17 | <tr> | |
18 | <td><%= member.user.display_name %></td> |
|
18 | <td><%= member.user.display_name %></td> | |
19 | <td> |
|
19 | <td> | |
20 | <% if authorize_for('members', 'edit') %> |
|
20 | <% if authorize_for('members', 'edit') %> | |
21 | <%= start_form_tag :controller => 'members', :action => 'edit', :id => member %> |
|
21 | <%= start_form_tag :controller => 'members', :action => 'edit', :id => member %> | |
22 | <select name="member[role_id]"> |
|
22 | <select name="member[role_id]"> | |
23 | <%= options_from_collection_for_select @roles, "id", "name", member.role_id %> |
|
23 | <%= options_from_collection_for_select @roles, "id", "name", member.role_id %> | |
24 | </select> |
|
24 | </select> | |
25 | <%= submit_tag l(:button_change), :class => "button-small" %> |
|
25 | <%= submit_tag l(:button_change), :class => "button-small" %> | |
26 | <%= end_form_tag %> |
|
26 | <%= end_form_tag %> | |
27 | <% end %> |
|
27 | <% end %> | |
28 | </td> |
|
28 | </td> | |
29 | <td> |
|
29 | <td> | |
30 | <% if authorize_for('members', 'destroy') %> |
|
30 | <%= link_to_if_authorized l(:button_delete), {:controller => 'members', :action => 'destroy', :id => member}, :confirm => l(:text_are_you_sure), :post => true, :class => 'pic picDelete' %> | |
31 | <%= start_form_tag :controller => 'members', :action => 'destroy', :id => member %> |
|
|||
32 | <%= submit_tag l(:button_delete), :class => "button-small" %> |
|
|||
33 | <%= end_form_tag %> |
|
|||
34 | <% end %> |
|
|||
35 | </td> |
|
31 | </td> | |
36 | </tr> |
|
32 | </tr> | |
37 | <% end %> |
|
33 | <% end %> | |
38 | <% end %> |
|
34 | <% end %> | |
39 | </table> |
|
35 | </table> | |
40 | <% if authorize_for('projects', 'add_member') %> |
|
36 | <% if authorize_for('projects', 'add_member') %> | |
41 | <hr /> |
|
37 | <hr /> | |
42 | <label><%=l(:label_member_new)%></label><br/> |
|
38 | <label><%=l(:label_member_new)%></label><br/> | |
43 | <%= start_form_tag :controller => 'projects', :action => 'add_member', :id => @project %> |
|
39 | <%= start_form_tag :controller => 'projects', :action => 'add_member', :id => @project %> | |
44 | <select name="member[user_id]"> |
|
40 | <select name="member[user_id]"> | |
45 | <%= options_from_collection_for_select @users, "id", "display_name", @member.user_id %> |
|
41 | <%= options_from_collection_for_select @users, "id", "display_name", @member.user_id %> | |
46 | </select> |
|
42 | </select> | |
47 | <select name="member[role_id]"> |
|
43 | <select name="member[role_id]"> | |
48 | <%= options_from_collection_for_select @roles, "id", "name", @member.role_id %> |
|
44 | <%= options_from_collection_for_select @roles, "id", "name", @member.role_id %> | |
49 | </select> |
|
45 | </select> | |
50 | <%= submit_tag l(:button_add) %> |
|
46 | <%= submit_tag l(:button_add) %> | |
51 | <%= end_form_tag %> |
|
47 | <%= end_form_tag %> | |
52 | <% end %> |
|
48 | <% end %> | |
53 | </div> |
|
49 | </div> | |
54 |
|
50 | |||
55 | <div class="box"> |
|
51 | <div class="box"> | |
56 | <h3><%=l(:label_version_plural)%></h3> |
|
52 | <h3><%=l(:label_version_plural)%></h3> | |
57 | <table> |
|
53 | <table> | |
58 | <% for version in @project.versions %> |
|
54 | <% for version in @project.versions %> | |
59 | <tr> |
|
55 | <tr> | |
60 | <td width="100"><strong><%=h version.name %></strong></td> |
|
56 | <td width="100"><strong><%=h version.name %></strong></td> | |
61 | <td width="100"><%= format_date(version.effective_date) %></td> |
|
57 | <td width="100"><%= format_date(version.effective_date) %></td> | |
62 | <td><%=h version.description %></td> |
|
58 | <td><%=h version.description %></td> | |
63 | <td> |
|
59 | <td> | |
64 | <%= link_to_if_authorized l(:button_edit), :controller => 'versions', :action => 'edit', :id => version %> |
|
60 | <%= link_to_if_authorized l(:button_edit), { :controller => 'versions', :action => 'edit', :id => version }, :class => 'pic picEdit' %> | |
65 | <% if authorize_for('versions', 'destroy') %> |
|
61 | <%= link_to_if_authorized l(:button_delete), {:controller => 'versions', :action => 'destroy', :id => version}, :confirm => l(:text_are_you_sure), :post => true, :class => 'pic picDelete' %> | |
66 | |
|
|||
67 | <%= start_form_tag :controller => 'versions', :action => 'destroy', :id => version %> |
|
|||
68 | <%= submit_tag l(:button_delete), :class => "button-small" %> |
|
|||
69 | <%= end_form_tag %> |
|
|||
70 | <% end %> |
|
|||
71 | </td> |
|
62 | </td> | |
72 | </tr> |
|
63 | </tr> | |
73 | <% end %> |
|
64 | <% end %> | |
74 | </table> |
|
65 | </table> | |
75 | <% if authorize_for('projects', 'add_version') %> |
|
66 | <% if authorize_for('projects', 'add_version') %> | |
76 | <hr /> |
|
67 | <hr /> | |
77 | <%= link_to l(:label_version_new), :controller => 'projects', :action => 'add_version', :id => @project %> |
|
68 | <%= link_to l(:label_version_new), :controller => 'projects', :action => 'add_version', :id => @project %> | |
78 | <% end %> |
|
69 | <% end %> | |
79 | </div> |
|
70 | </div> | |
80 |
|
71 | |||
81 |
|
72 | |||
82 | <div class="box"> |
|
73 | <div class="box"> | |
83 | <h3><%=l(:label_issue_category_plural)%></h3> |
|
74 | <h3><%=l(:label_issue_category_plural)%></h3> | |
84 | <table> |
|
75 | <table> | |
85 | <% for @category in @project.issue_categories %> |
|
76 | <% for @category in @project.issue_categories %> | |
86 | <% unless @category.new_record? %> |
|
77 | <% unless @category.new_record? %> | |
87 | <tr> |
|
78 | <tr> | |
88 | <td> |
|
79 | <td> | |
89 | <%= start_form_tag :controller => 'issue_categories', :action => 'edit', :id => @category %> |
|
80 | <%= start_form_tag :controller => 'issue_categories', :action => 'edit', :id => @category %> | |
90 | <%= text_field 'category', 'name', :size => 25 %> |
|
81 | <%= text_field 'category', 'name', :size => 25 %> | |
91 | </td> |
|
82 | </td> | |
92 | <td> |
|
83 | <td> | |
93 | <% if authorize_for('issue_categories', 'edit') %> |
|
84 | <% if authorize_for('issue_categories', 'edit') %> | |
94 | <%= submit_tag l(:button_save), :class => "button-small" %> |
|
85 | <%= submit_tag l(:button_save), :class => "button-small" %> | |
95 | <%= end_form_tag %> |
|
86 | <%= end_form_tag %> | |
96 | <% end %> |
|
87 | <% end %> | |
97 | </td> |
|
88 | </td> | |
98 | <td> |
|
89 | <td> | |
99 | <% if authorize_for('issue_categories', 'destroy') %> |
|
90 | <%= link_to_if_authorized l(:button_delete), {:controller => 'issue_categories', :action => 'destroy', :id => @category}, :confirm => l(:text_are_you_sure), :post => true, :class => 'pic picDelete' %> | |
100 | <%= start_form_tag :controller => 'issue_categories', :action => 'destroy', :id => @category %> |
|
|||
101 | <%= submit_tag l(:button_delete), :class => "button-small" %> |
|
|||
102 | <%= end_form_tag %> |
|
|||
103 | <% end %> |
|
|||
104 | </td> |
|
91 | </td> | |
105 | </tr> |
|
92 | </tr> | |
106 | <% end %> |
|
93 | <% end %> | |
107 | <% end %> |
|
94 | <% end %> | |
108 | </table> |
|
95 | </table> | |
109 | <% if authorize_for('projects', 'add_issue_category') %> |
|
96 | <% if authorize_for('projects', 'add_issue_category') %> | |
110 | <hr /> |
|
97 | <hr /> | |
111 | <%= start_form_tag :action => 'add_issue_category', :id => @project %> |
|
98 | <%= start_form_tag :action => 'add_issue_category', :id => @project %> | |
112 | <label for="issue_category_name"><%=l(:label_issue_category_new)%></label><br/> |
|
99 | <label for="issue_category_name"><%=l(:label_issue_category_new)%></label><br/> | |
113 | <%= error_messages_for 'issue_category' %> |
|
100 | <%= error_messages_for 'issue_category' %> | |
114 | <%= text_field 'issue_category', 'name', :size => 25 %> |
|
101 | <%= text_field 'issue_category', 'name', :size => 25 %> | |
115 | <%= submit_tag l(:button_create) %> |
|
102 | <%= submit_tag l(:button_create) %> | |
116 | <%= end_form_tag %> |
|
103 | <%= end_form_tag %> | |
117 | <% end %> |
|
104 | <% end %> | |
118 | </div> |
|
105 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now