OSDN Git Service

Slight modifications on project settings views
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 5 May 2007 15:35:28 +0000 (15:35 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 5 May 2007 15:35:28 +0000 (15:35 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@509 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/projects/_members.rhtml
app/views/projects/settings.rhtml

index 4283b2e..01430d1 100644 (file)
@@ -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| %>
 &nbsp;
 
 <% 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 %>
index 69d26d2..3405bfb 100644 (file)
@@ -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' %>">
 <% end; reset_cycle %>
     </tbody>
 </table>
-<%= link_to_if_authorized l(:label_version_new), :controller => 'projects', :action => 'add_version', :id => @project %>
+&nbsp;
+<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>
+&nbsp;
 <% 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>