@@ -6,7 +6,7 | |||||
6 | <thead> |
|
6 | <thead> | |
7 | <th><%= l(:label_user) %></th> |
|
7 | <th><%= l(:label_user) %></th> | |
8 | <th><%= l(:label_role) %></th> |
|
8 | <th><%= l(:label_role) %></th> | |
9 | <th></th> |
|
9 | <th style="width:15%"></th> | |
10 | </thead> |
|
10 | </thead> | |
11 | <tbody> |
|
11 | <tbody> | |
12 | <% @project.members.find(:all, :include => [:role, :user]).sort{|x,y| x.role.position <=> y.role.position}.each do |member| %> |
|
12 | <% @project.members.find(:all, :include => [:role, :user]).sort{|x,y| x.role.position <=> y.role.position}.each do |member| %> | |
@@ -34,10 +34,10 | |||||
34 | |
|
34 | | |
35 |
|
35 | |||
36 | <% if authorize_for('projects', 'add_member') && !users.empty? %> |
|
36 | <% if authorize_for('projects', 'add_member') && !users.empty? %> | |
37 | <p><label for="member_user_id"><%=l(:label_member_new)%></label></p> |
|
|||
38 | <% remote_form_for(:member, @member, :url => {:controller => 'projects', :action => 'add_member', :tab => 'members', :id => @project}, :method => :post) do |f| %> |
|
37 | <% remote_form_for(:member, @member, :url => {:controller => 'projects', :action => 'add_member', :tab => 'members', :id => @project}, :method => :post) do |f| %> | |
|
38 | <p><label for="member_user_id"><%=l(:label_member_new)%></label><br /> | |||
39 | <%= f.select :user_id, users.collect{|user| [user.name, user.id]} %> |
|
39 | <%= f.select :user_id, users.collect{|user| [user.name, user.id]} %> | |
40 | <%= l(:label_role) %>: <%= f.select :role_id, roles.collect{|role| [role.name, role.id]}, :selected => nil %> |
|
40 | <%= l(:label_role) %>: <%= f.select :role_id, roles.collect{|role| [role.name, role.id]}, :selected => nil %> | |
41 | <%= submit_tag l(:button_add) %> |
|
41 | <%= submit_tag l(:button_add) %></p> | |
42 | <% end %> |
|
42 | <% end %> | |
43 | <% end %> |
|
43 | <% end %> |
@@ -24,7 +24,7 | |||||
24 |
|
24 | |||
25 | <div id="tab-content-versions" class="tab-content" style="display:none;"> |
|
25 | <div id="tab-content-versions" class="tab-content" style="display:none;"> | |
26 | <table class="list"> |
|
26 | <table class="list"> | |
27 | <thead><th><%= l(:label_version) %></th><th><%= l(:field_effective_date) %></th><th><%= l(:field_description) %></th><th></th><th></th></thead> |
|
27 | <thead><th><%= l(:label_version) %></th><th><%= l(:field_effective_date) %></th><th><%= l(:field_description) %></th><th style="width:15%"></th><th style="width:15%"></th></thead> | |
28 | <tbody> |
|
28 | <tbody> | |
29 | <% for version in @project.versions %> |
|
29 | <% for version in @project.versions %> | |
30 | <tr class="<%= cycle 'odd', 'even' %>"> |
|
30 | <tr class="<%= cycle 'odd', 'even' %>"> | |
@@ -38,12 +38,13 | |||||
38 | <% end; reset_cycle %> |
|
38 | <% end; reset_cycle %> | |
39 | </tbody> |
|
39 | </tbody> | |
40 | </table> |
|
40 | </table> | |
41 | <%= link_to_if_authorized l(:label_version_new), :controller => 'projects', :action => 'add_version', :id => @project %> |
|
41 | | |
|
42 | <p><%= link_to_if_authorized l(:label_version_new), :controller => 'projects', :action => 'add_version', :id => @project %></p> | |||
42 | </div> |
|
43 | </div> | |
43 |
|
44 | |||
44 | <div id="tab-content-categories" class="tab-content" style="display:none;"> |
|
45 | <div id="tab-content-categories" class="tab-content" style="display:none;"> | |
45 | <table class="list"> |
|
46 | <table class="list"> | |
46 | <thead><th><%= l(:label_issue_category) %></th><th></th></thead> |
|
47 | <thead><th><%= l(:label_issue_category) %></th><th style="width:15%"></th></thead> | |
47 | <tbody> |
|
48 | <tbody> | |
48 | <% for @category in @project.issue_categories %> |
|
49 | <% for @category in @project.issue_categories %> | |
49 | <% unless @category.new_record? %> |
|
50 | <% unless @category.new_record? %> | |
@@ -64,12 +65,13 | |||||
64 | <% end %> |
|
65 | <% end %> | |
65 | </tbody> |
|
66 | </tbody> | |
66 | </table> |
|
67 | </table> | |
|
68 | | |||
67 | <% if authorize_for('projects', 'add_issue_category') %> |
|
69 | <% if authorize_for('projects', 'add_issue_category') %> | |
68 | <% form_tag({:action => 'add_issue_category', :tab => 'categories', :id => @project}) do %> |
|
70 | <% form_tag({:action => 'add_issue_category', :tab => 'categories', :id => @project}) do %> | |
69 | <label for="issue_category_name"><%=l(:label_issue_category_new)%></label><br/> |
|
71 | <p><label for="issue_category_name"><%=l(:label_issue_category_new)%></label><br /> | |
70 | <%= error_messages_for 'issue_category' %> |
|
72 | <%= error_messages_for 'issue_category' %> | |
71 | <%= text_field 'issue_category', 'name', :size => 25 %> |
|
73 | <%= text_field 'issue_category', 'name', :size => 25 %> | |
72 |
<%= submit_tag l(:button_ |
|
74 | <%= submit_tag l(:button_add) %></p> | |
73 | <% end %> |
|
75 | <% end %> | |
74 | <% end %> |
|
76 | <% end %> | |
75 | </div> |
|
77 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now