<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| %>
<% 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 %>
<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' %>">
<% 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? %>
<% 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>