GroupsController.php
Go to the documentation of this file.
54 return View::make('groups/edit', compact('permissions', 'selectedPermissions'))->with('group', $group);
75 return Redirect::to("admin/groups")->with('success', trans('admin/groups/message.create.success'));
116 return Redirect::route('groups')->with('error', trans('admin/groups/message.group_not_found', compact('id')));
126 return Redirect::to("admin/groups")->with('success', trans('admin/groups/message.create.success'));
131 return Redirect::route('update/group', $id)->withInput()->with('error', 'Denied! Editing groups is not allowed in the demo.');
156 return Redirect::route('groups')->with('success', trans('admin/groups/message.success.delete'));
159 return Redirect::route('groups')->with('error', trans('admin/groups/message.group_not_found', compact('id')));
222 $actions .= '<a href="' . route('update/group', $group->id) . '" class="btn btn-warning btn-sm"><i class="fa fa-pencil icon-white"></i></a> ';
225 $actions .= '<a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="' . route('delete/group', $group->id) . '" data-content="'.trans('admin/groups/message.delete.confirm').'" data-title="Delete ' . htmlspecialchars($group->name) . '?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a> ';
227 $actions .= ' <span class="btn delete-asset btn-danger btn-sm disabled"><i class="fa fa-trash icon-white"></i></span>';
getDatatable()
Generates the JSON used to display the User Group listing.
Definition: GroupsController.php:174
getEdit($id=null)
Returns a view that presents a form to edit a User Group.
Definition: GroupsController.php:92
Definition: AccessoriesController.php:2
getCreate()
Returns a view that displays a form to create a new User Group.
Definition: GroupsController.php:44
Definition: Controller.php:30
This controller handles all actions related to User Groups for the Snipe-IT Asset Management applicat...
Definition: GroupsController.php:19
Definition: Group.php:8
postEdit($id=null)
Validates and stores the updated User Group data.
Definition: GroupsController.php:112
getIndex()
Returns a view that invokes the ajax tables which actually contains the content for the user group li...
Definition: GroupsController.php:30