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