1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-03-12 04:03:08 +00:00

Remove the new group form on group list.

git-svn-id: http://redmine.rubyforge.org/svn/branches/work@1374 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2008-04-28 15:36:48 +00:00
parent ced3cab7bb
commit a10a54b20f
2 changed files with 4 additions and 5 deletions

View File

@ -25,7 +25,6 @@ class GroupsController < ApplicationController
# GET /groups.xml
def index
@groups = Group.find(:all, :order => 'name')
@group = Group.new
respond_to do |format|
format.html # index.html.erb

View File

@ -1,3 +1,7 @@
<div class="contextual">
<%= link_to l(:label_group_new), new_group_path, :class => 'icon icon-add' %>
</div>
<h2><%= l(:label_group_plural) %></h2>
<% if @groups.any? %>
@ -19,7 +23,3 @@
<% else %>
<p class="nodata"><%= l(:label_no_data) %></p>
<% end %>
<% form_for(@group) do |f| %>
<p><label><%= l(:label_group_new) %>: <%= f.text_field :name %> <%= f.submit l(:button_create) %></p>
<% end %>