Added ability to manage groups from admin

This commit is contained in:
Dmitriy Zaporozhets 2012-10-03 12:49:43 +03:00
parent 010ac2b17f
commit 224fb5770c
11 changed files with 26 additions and 7 deletions

View file

@ -16,4 +16,4 @@
= f.text_field :code, placeholder: "example"
.form-actions
= f.submit 'Create group', class: "btn primary"
= f.submit 'Save group', class: "btn save-btn"

View file

@ -0,0 +1,3 @@
%h3.page_title Edit Group
%br
= render 'form'

View file

@ -1,3 +1,4 @@
= render 'admin/shared/projects_head'
%h3.page_title
Groups
= link_to 'New Group', new_admin_group_path, class: "btn small right"

View file

@ -1,3 +1,4 @@
= render 'admin/shared/projects_head'
%h3.page_title
Group: #{@group.name}
= link_to edit_admin_group_path(@group), class: "btn right" do
@ -38,6 +39,9 @@
%li.wll
%strong
= link_to project.name, [:admin, project]
.right
= link_to 'Remove from group', remove_project_admin_group_path(@group, project_id: project.id), confirm: 'Are you sure?', method: :delete, class: "btn danger small"
.clearfix
%br
%h3 Add new project