Slight modifications on project settings views
git-svn-id: http://redmine.rubyforge.org/svn/trunk@509 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
3eed7e622c
commit
0dbbf776c6
|
@ -6,7 +6,7 @@
|
|||
<thead>
|
||||
<th><%= l(:label_user) %></th>
|
||||
<th><%= l(:label_role) %></th>
|
||||
<th></th>
|
||||
<th style="width:15%"></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @project.members.find(:all, :include => [:role, :user]).sort{|x,y| x.role.position <=> y.role.position}.each do |member| %>
|
||||
|
@ -34,10 +34,10 @@
|
|||
|
||||
|
||||
<% if authorize_for('projects', 'add_member') && !users.empty? %>
|
||||
<p><label for="member_user_id"><%=l(:label_member_new)%></label></p>
|
||||
<% remote_form_for(:member, @member, :url => {:controller => 'projects', :action => 'add_member', :tab => 'members', :id => @project}, :method => :post) do |f| %>
|
||||
<p><label for="member_user_id"><%=l(:label_member_new)%></label><br />
|
||||
<%= f.select :user_id, users.collect{|user| [user.name, user.id]} %>
|
||||
<%= l(:label_role) %>: <%= f.select :role_id, roles.collect{|role| [role.name, role.id]}, :selected => nil %>
|
||||
<%= submit_tag l(:button_add) %>
|
||||
<%= submit_tag l(:button_add) %></p>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
<div id="tab-content-versions" class="tab-content" style="display:none;">
|
||||
<table class="list">
|
||||
<thead><th><%= l(:label_version) %></th><th><%= l(:field_effective_date) %></th><th><%= l(:field_description) %></th><th></th><th></th></thead>
|
||||
<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>
|
||||
<tbody>
|
||||
<% for version in @project.versions %>
|
||||
<tr class="<%= cycle 'odd', 'even' %>">
|
||||
|
@ -38,12 +38,13 @@
|
|||
<% end; reset_cycle %>
|
||||
</tbody>
|
||||
</table>
|
||||
<%= link_to_if_authorized l(:label_version_new), :controller => 'projects', :action => 'add_version', :id => @project %>
|
||||
|
||||
<p><%= link_to_if_authorized l(:label_version_new), :controller => 'projects', :action => 'add_version', :id => @project %></p>
|
||||
</div>
|
||||
|
||||
<div id="tab-content-categories" class="tab-content" style="display:none;">
|
||||
<table class="list">
|
||||
<thead><th><%= l(:label_issue_category) %></th><th></th></thead>
|
||||
<thead><th><%= l(:label_issue_category) %></th><th style="width:15%"></th></thead>
|
||||
<tbody>
|
||||
<% for @category in @project.issue_categories %>
|
||||
<% unless @category.new_record? %>
|
||||
|
@ -64,12 +65,13 @@
|
|||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<% if authorize_for('projects', 'add_issue_category') %>
|
||||
<% form_tag({:action => 'add_issue_category', :tab => 'categories', :id => @project}) do %>
|
||||
<label for="issue_category_name"><%=l(:label_issue_category_new)%></label><br/>
|
||||
<p><label for="issue_category_name"><%=l(:label_issue_category_new)%></label><br />
|
||||
<%= error_messages_for 'issue_category' %>
|
||||
<%= text_field 'issue_category', 'name', :size => 25 %>
|
||||
<%= submit_tag l(:button_create) %>
|
||||
<%= submit_tag l(:button_add) %></p>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue