diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-05-05 15:35:28 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-05-05 15:35:28 +0000 |
commit | 0dbbf776c6d65f9e2a1dcc2484871f6cd397015e (patch) | |
tree | 52178dedef0cb9a6cfe922b508a567ddad2800dd /app/views | |
parent | 3eed7e622c3856f3b2395f883b5c3bdc20a7a95d (diff) | |
download | redmine-0dbbf776c6d65f9e2a1dcc2484871f6cd397015e.tar.gz redmine-0dbbf776c6d65f9e2a1dcc2484871f6cd397015e.zip |
Slight modifications on project settings views
git-svn-id: http://redmine.rubyforge.org/svn/trunk@509 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/_members.rhtml | 6 | ||||
-rw-r--r-- | app/views/projects/settings.rhtml | 12 |
2 files changed, 10 insertions, 8 deletions
diff --git a/app/views/projects/_members.rhtml b/app/views/projects/_members.rhtml index 4283b2ef8..01430d19b 100644 --- a/app/views/projects/_members.rhtml +++ b/app/views/projects/_members.rhtml @@ -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 %> diff --git a/app/views/projects/settings.rhtml b/app/views/projects/settings.rhtml index 69d26d299..3405bfb64 100644 --- a/app/views/projects/settings.rhtml +++ b/app/views/projects/settings.rhtml @@ -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> |