ManufacturersController.php
Go to the documentation of this file.
67 return Redirect::to("admin/settings/manufacturers")->with('success', trans('admin/manufacturers/message.create.success'));
88 return Redirect::to('admin/settings/manufacturers')->with('error', trans('admin/manufacturers/message.does_not_exist'));
110 return Redirect::to('admin/settings/manufacturers')->with('error', trans('admin/manufacturers/message.does_not_exist'));
119 return Redirect::to("admin/settings/manufacturers")->with('success', trans('admin/manufacturers/message.update.success'));
140 return Redirect::to('admin/settings/manufacturers')->with('error', trans('admin/manufacturers/message.not_found'));
146 return Redirect::to('admin/settings/manufacturers')->with('error', trans('admin/manufacturers/message.assoc_users'));
153 return Redirect::to('admin/settings/manufacturers')->with('success', trans('admin/manufacturers/message.delete.success'));
229 $actions = '<a href="'.route('update/manufacturer', $manufacturer->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/manufacturer', $manufacturer->id).'" data-content="'.trans('admin/manufacturers/message.delete.confirm').'" data-title="'.trans('general.delete').' '.htmlspecialchars($manufacturer->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a>';
233 'name' => (string)link_to('admin/settings/manufacturers/'.$manufacturer->id.'/view', e($manufacturer->name)),
291 $actions = '<div style=" white-space: nowrap;"><a href="'.route('clone/hardware', $asset->id).'" class="btn btn-info btn-sm" title="Clone asset"><i class="fa fa-files-o"></i></a> <a href="'.route('update/hardware', $asset->id).'" class="btn btn-warning btn-sm"><i class="fa fa-pencil icon-white"></i></a> <a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/hardware', $asset->id).'" data-content="'.trans('admin/hardware/message.delete.confirm').'" data-title="'.trans('general.delete').' '.htmlspecialchars($asset->asset_tag).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a></div>';
293 $actions = '<a href="'.route('restore/hardware', $asset->id).'" class="btn btn-warning btn-sm"><i class="fa fa-recycle icon-white"></i></a>';
299 $inout = '<a href="'.route('checkin/hardware', $asset->id).'" class="btn btn-primary btn-sm">'.trans('general.checkin').'</a>';
301 $inout = '<a href="'.route('checkout/hardware', $asset->id).'" class="btn btn-info btn-sm">'.trans('general.checkout').'</a>';
312 'assigned_to' => ($asset->assigneduser) ? (string)link_to('/admin/users/'.$asset->assigneduser->id.'/view', e($asset->assigneduser->fullName())): '',
getDataView($manufacturerId)
Generates the JSON used to display the manufacturer detail.
Definition: ManufacturersController.php:257
This controller handles all actions related to Manufacturers for the Snipe-IT Asset Management applic...
Definition: ManufacturersController.php:20
getView($manufacturerId=null)
Returns a view that invokes the ajax tables which actually contains the content for the manufacturers...
Definition: ManufacturersController.php:171
Definition: AccessoriesController.php:2
getEdit($manufacturerId=null)
Returns a view that displays a form to edit a manufacturer.
Definition: ManufacturersController.php:83
postEdit($manufacturerId=null)
Validates and stores the updated manufacturer data.
Definition: ManufacturersController.php:105
Definition: Manufacturer.php:8
Definition: Controller.php:30
getCreate()
Returns a view that displays a form to create a new manufacturer.
Definition: ManufacturersController.php:46
postCreate()
Validates and stores the data for a new manufacturer.
Definition: ManufacturersController.php:60
getDatatable()
Generates the JSON used to display the manufacturer listings.
Definition: ManufacturersController.php:196
getIndex()
Returns a view that invokes the ajax tables which actually contains the content for the manufacturers...
Definition: ManufacturersController.php:31