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:
1 parent
ced3cab7bb
commit
a10a54b20f
2 files changed
+4
-5
No files matched your search
@@ -25,7 +25,6 @@ class GroupsController < ApplicationController
|
|||||||
# GET /groups.xml
|
# GET /groups.xml
|
||||||
def index
|
def index
|
||||||
@groups = Group.find(:all, :order => 'name')
|
@groups = Group.find(:all, :order => 'name')
|
||||||
@group = Group.new
|
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html # index.html.erb
|
format.html # index.html.erb
|
||||||
|
|||||||
@@ -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>
|
<h2><%= l(:label_group_plural) %></h2>
|
||||||
|
|
||||||
<% if @groups.any? %>
|
<% if @groups.any? %>
|
||||||
@@ -19,7 +23,3 @@
|
|||||||
<% else %>
|
<% else %>
|
||||||
<p class="nodata"><%= l(:label_no_data) %></p>
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% form_for(@group) do |f| %>
|
|
||||||
<p><label><%= l(:label_group_new) %>: <%= f.text_field :name %> <%= f.submit l(:button_create) %></p>
|
|
||||||
<% end %>
|
|
||||||
Reference in new issue
Block a user