Compare commits

...

108 Commits

Author SHA1 Message Date
snipe 43cdace9de Merge remote-tracking branch 'origin/develop' 2015-02-17 19:18:10 -08:00
snipe a04af4aead Bumped version number 2015-02-17 19:17:53 -08:00
snipe e7eec42ab8 Merge pull request #532 from uberbrady/depreciation_refactor
Depreciation refactor
2015-02-17 18:55:52 -08:00
Brady Wetherington 063e5c407c Fixed the depreciation report, fixes to calculate current depreciated
value (which were only used there). Additional fixes and refactoring
around Depreciable, in terms of how assets get depreciation via models,
and licenses get depreciation directly.
2015-02-17 18:51:13 -08:00
Brady Wetherington 3ba02b65fb Oops - Assets get their Depreciation from their *model* - wheras
Licenses have a Depreciation directly associated with them. So I
pulled the Depreciation relationship out of Depreciable so that both
Assets and Licenses could pull their depreciations in their associated
ways. I could've done this with an inheritance call, but that seems
a bit much (and unnecessarily confusing).
2015-02-17 17:56:59 -08:00
Brady Wetherington 88dc0700f0 Make date functions work; create negative intervals for depreciation,
Also renamed "months_until_depreciation" to "time_until_depreciation"
And renamed Depreciatable to Depreciable (which is an actual word in
English.) Also a cleanup/consistency-enforcement for interval display.
2015-02-17 17:40:16 -08:00
Brady Wetherington 899e2bc9b6 Not convinved this filename is right or anything, but the shared depreciation code is here 2015-02-17 17:40:16 -08:00
Brady Wetherington 1e4071b51d First stab at cleaning up Depreciation
Conflicts:
	app/models/Asset.php

It looks like the same time I pulled depreciation out of the
Asset class, uploads were being added in. It doesn't look
like a conflict to me, but git couldn't figure it out. Oh Well.
2015-02-17 17:39:39 -08:00
snipe 38961298ed Fixes #439 - loads javascript and CSS locally 2015-02-17 15:29:57 -08:00
snipe ea6a6d098a Fixes #440 - removed unique constraint on serial 2015-02-17 14:15:22 -08:00
snipe 1f0f9c2441 Merge remote-tracking branch 'origin/develop' 2015-02-16 20:50:41 -08:00
snipe d4fbea3571 Merge remote-tracking branch 'origin/develop' 2015-02-16 20:49:55 -08:00
snipe b32d74de57 Fixed seeder with duplicate ID 2015-02-16 19:56:11 -08:00
snipe 4e4144ea74 Fixed blade reference 2015-02-16 19:43:22 -08:00
snipe 7b331b26d3 Language string for nothing updated on bulk update 2015-02-16 18:27:27 -08:00
snipe e02bea4275 Fixes #457 - added bulk options to hardware 2015-02-16 18:21:29 -08:00
snipe 24f5cdc743 Fixes #523 - added file uploads to assets 2015-02-16 13:49:51 -08:00
snipe 08ee02d0cd Fixes #525 - added serial to asset model UI 2015-02-16 13:12:57 -08:00
snipe ec1ab6913e Merged layout blades for unified nav 2015-02-16 12:55:32 -08:00
snipe f40bb7b8b3 Fixes #520 postal code requirement 2015-02-13 11:40:28 -08:00
snipe 17258b73a1 Fixes #520 - state no longer required 2015-02-13 11:37:47 -08:00
snipe 4a5007264e Fixed mac address not showing 2015-02-12 21:34:20 -08:00
snipe bd01b11f4f Merge pull request #519 from madd15/patch-2
Fix #517 - User Requestable Assets
2015-02-12 13:21:48 -08:00
madd15 064c0211db Fix #517 - User Requestable Assets 2015-02-13 07:50:47 +10:30
snipe 4cb931a93b Merge remote-tracking branch 'origin/develop' 2015-02-12 12:50:15 -08:00
snipe 3df8243d80 Updated composer to include mockery 2015-02-12 12:49:57 -08:00
snipe f57c61dd4d Possible fix for #518 - license count issue 2015-02-12 12:25:22 -08:00
snipe 7a4f115cb3 Merge remote-tracking branch 'origin/develop' 2015-02-11 22:57:47 -08:00
snipe 58ff929d71 Fixes error when no model present because new asset 2015-02-11 22:57:22 -08:00
snipe 49f25a23a9 Merge pull request #516 from splaer/fix-475
Fix 475
2015-02-11 21:42:33 -08:00
Splaer bcf75073ec Update style
updated the scss as well until that starts getting auto compiled
2015-02-12 00:38:58 -05:00
snipe 6908456d09 Merge remote-tracking branch 'origin/develop' 2015-02-11 21:27:56 -08:00
snipe c26369f8cc Added spacing between buttons 2015-02-11 21:21:19 -08:00
snipe 56e090f3e7 Unlink username if they've been deleted 2015-02-11 21:19:18 -08:00
Splaer 00f7717142 Fix #475 and styling
Cleaned up styling to break lines with larger notes on hardware view
and asset view. Changed column type to text.
2015-02-11 23:38:59 -05:00
snipe 823e0c8562 Merge remote-tracking branch 'origin/develop' 2015-02-11 16:55:29 -08:00
snipe 95be7908f8 New language strings 2015-02-11 16:51:16 -08:00
snipe c660c71556 Added MAC address to view 2015-02-11 16:43:46 -08:00
snipe fbf03b225d Fixes #509 - added MAC address as model option 2015-02-11 16:37:24 -08:00
snipe a5f4c51ab2 Merge remote-tracking branch 'origin/develop' 2015-02-11 14:31:25 -08:00
snipe 89dce89035 Moved expiration date below purchase date 2015-02-11 14:02:34 -08:00
snipe 8cdd215614 Fixed intenting 2015-02-11 14:02:21 -08:00
snipe 342a8b81af Fix for error when asset has null status 2015-02-11 13:51:28 -08:00
snipe cd5a352961 Fix for wrong math on remaining licenses when assigned to an asset 2015-02-11 13:39:08 -08:00
snipe a451fa1fa6 Merge remote-tracking branch 'origin/develop' 2015-02-11 12:49:39 -08:00
snipe e343c157c5 Fixed naming conflict for requestable 2015-02-11 12:49:21 -08:00
snipe 37fc216c5a Additional language strings 2015-02-11 05:19:23 -08:00
snipe 96feb84fd4 Merge remote-tracking branch 'origin/develop' 2015-02-11 04:59:35 -08:00
snipe 80e10c4c98 Fixes #387 - sortable asset view by manufacturer 2015-02-11 04:57:59 -08:00
snipe 35a133bbf9 Fixes #382 - allow admins to restore deleted assets 2015-02-11 04:44:39 -08:00
snipe 0adbce77f9 Merge remote-tracking branch 'origin/develop' 2015-02-11 03:52:08 -08:00
snipe c89be34503 Fixes #329 and #454 - added category asset view 2015-02-11 03:51:01 -08:00
snipe 9c3873e712 Category asset view 2015-02-11 03:50:16 -08:00
snipe 4f6eeda368 View asset for requests 2015-02-11 03:49:33 -08:00
snipe f690cd6305 Requests table 2015-02-11 03:49:13 -08:00
snipe 447ed3518e Merge remote-tracking branch 'origin/develop' 2015-02-11 00:56:17 -08:00
snipe d9d99b2223 No trashed 2015-02-11 00:44:22 -08:00
snipe 2b99adba5f Do not include trashed for user view 2015-02-11 00:43:50 -08:00
snipe 11aa98d389 Removed extra comments 2015-02-11 00:43:38 -08:00
snipe 591f97f149 Mark unassigned if deleted 2015-02-11 00:43:25 -08:00
snipe ef696f8207 Update licenses to assigned to null if deleted 2015-02-11 00:29:16 -08:00
snipe ab1c921443 Requestable assets views and controllers 2015-02-10 23:55:06 -08:00
snipe 7b165a12e0 Fixes #508 - compacted UI for licenses overview 2015-02-10 21:52:11 -08:00
snipe 6f2f7cc214 Updated language strings 2015-02-10 20:52:22 -08:00
snipe 89729bfa51 Removed invalid comments 2015-02-10 20:47:24 -08:00
snipe 34032c73ce Fixed licenses so null instead of 0 2015-02-10 20:47:11 -08:00
snipe f72b385790 Fix licenses so null instead of 0 2015-02-10 20:46:58 -08:00
snipe d541ded862 Merge remote-tracking branch 'origin/develop'
Conflicts:
	app/views/backend/layouts/default.blade.php
2015-02-10 19:47:43 -08:00
snipe 8cc95a3b9b Merge pull request #507 from madd15/patch-2
Added Archived Lang
2015-02-10 19:19:03 -08:00
snipe bf9a825095 Removed extraneous ID 2015-02-10 19:18:15 -08:00
madd15 5c92be5190 Added Archived Lang 2015-02-11 13:45:04 +10:30
madd15 fa9cf35ff5 Added Archived Lang 2015-02-11 13:43:19 +10:30
snipe f36029a34a Fixed migration for to set assigned_to to null per #506 2015-02-10 18:41:45 -08:00
snipe c2e532e32e Fixed language file for status label messages 2015-02-10 18:33:19 -08:00
snipe 9bcc9a7ed1 Check not deleted 2015-02-10 18:27:00 -08:00
snipe 7715731c4a Fix count in header 2015-02-10 18:26:35 -08:00
snipe a2178392e6 Fixed seeder 2015-02-10 18:09:36 -08:00
snipe 0aa4d2a3db Added undeployable as allowed validation type 2015-02-10 18:06:55 -08:00
snipe 5867c60410 Fixed scope chaining on assigned_to 2015-02-10 17:58:47 -08:00
snipe 268fb98dbb Indented for better readibility 2015-02-10 17:41:42 -08:00
snipe 5f1227d0fa Removed stray chars 2015-02-10 17:41:27 -08:00
snipe 1b93c5538a Get trashed for admins 2015-02-10 17:41:19 -08:00
snipe 3645f85731 Typo :( 2015-02-10 17:23:25 -08:00
snipe 0b02b1631b Merge pull request #505 from madd15/patch-1
Fix RTD query to not display checked out asset
2015-02-10 17:20:20 -08:00
madd15 31f4ba88f6 Fix RTD query to not display checked out asset 2015-02-11 11:49:28 +10:30
snipe c06a4d4118 Fixed wonky checkin/checkout buttons 2015-02-10 17:17:33 -08:00
snipe dbc93de6b3 Fixes checkin button on view 2015-02-10 17:11:40 -08:00
snipe 2277b6ee69 Fixed checkout logic for new assigned_to 2015-02-10 17:04:15 -08:00
snipe b36d73a4bb Missing checkin buttons on index 2015-02-10 17:03:13 -08:00
snipe 283d2855d7 Added user_id to status label migration for strict mode 2015-02-10 16:22:02 -08:00
snipe f175f52530 Fixed spacer in sidenav for list all 2015-02-10 16:08:54 -08:00
snipe e29da5521d Moved location of archived link 2015-02-10 16:08:02 -08:00
snipe 1db1819a56 Added Archived as view for filter 2015-02-10 16:06:33 -08:00
snipe aef3a734a3 Small fix for pending status 2015-02-10 16:06:24 -08:00
snipe d2438f9fdb Fixes #502 - normalized statuses 2015-02-10 15:57:19 -08:00
snipe 53d000e2d0 Migration to correct previous assigned_to=0 issue 2015-02-09 20:29:48 -08:00
snipe addfcd4bc5 Fix RTD bug 2015-02-09 20:02:40 -08:00
snipe b360736b77 Fixes #484 2015-02-09 19:26:57 -08:00
snipe 2bae77b3af Removed extranneous text field 2015-02-09 16:50:12 -08:00
snipe c1600a33db Fixes #499 - timestamps in asset logs 2015-02-09 16:47:36 -08:00
snipe 5d3b84e01a Misc additional assets 2015-02-09 16:45:01 -08:00
snipe 7ed098de67 Merge branch 'develop' of github.com:snipe/snipe-it into develop 2015-02-09 00:48:19 -08:00
snipe 22af5561b2 Updated translation strings 2015-02-09 00:48:03 -08:00
snipe 7009b24748 Merge pull request #498 from snipe/fixes/477
Fixes #477 - wrong sidebar on asset view
2015-02-09 00:35:04 -08:00
snipe 389c27b2e6 Fixes #477 - wrong sidebar on asset view 2015-02-09 00:34:29 -08:00
snipe 95ae26eb2a Updated docs location 2015-02-08 16:21:33 -08:00
snipe cfebe11755 Updated docs for 4.2 2015-02-08 16:20:36 -08:00
snipe d86b5aa613 Bumped version 2015-02-08 16:20:24 -08:00
266 changed files with 17631 additions and 676 deletions
@@ -7,6 +7,7 @@ use Sentry;
use Validator;
use Location;
use View;
use Asset;
class ViewAssetsController extends AuthorizedController
{
@@ -33,4 +34,27 @@ class ViewAssetsController extends AuthorizedController
}
public function getRequestableIndex() {
$assets = Asset::with('model','defaultLoc')->Hardware()->RequestableAssets()->get();
return View::make('frontend/account/requestable-assets', compact('user','assets'));
}
public function getRequestAsset($assetId = null) {
// Check if the asset exists
if (is_null($asset = Asset::find($assetId))) {
// Redirect to the asset management page
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.does_not_exist'));
} else {
return View::make('frontend/account/view-asset', compact('asset'));
}
}
}
+271 -10
View File
@@ -46,8 +46,14 @@ class AssetsController extends AdminController
$assets->RTD();
} elseif (Input::get('Undeployable')) {
$assets->Undeployable();
} elseif (Input::get('Archived')) {
$assets->Archived();
} elseif (Input::get('Requestable')) {
$assets->RequestableAssets();
} elseif (Input::get('Deployed')) {
$assets->Deployed();
} elseif (Input::get('Deleted')) {
$assets->withTrashed()->Deleted();
}
$assets = $assets->orderBy('asset_tag', 'ASC')->get();
@@ -93,7 +99,7 @@ class AssetsController extends AdminController
// Grab the dropdown list of status
$statuslabel_list = array('' => Lang::get('general.pending')) + array('0' => Lang::get('general.ready_to_deploy')) + Statuslabel::orderBy('name', 'asc')->lists('name', 'id');
$statuslabel_list = Statuslabel::orderBy('name', 'asc')->lists('name', 'id');
$view = View::make('backend/hardware/edit');
$view->with('supplier_list',$supplier_list);
@@ -187,7 +193,7 @@ class AssetsController extends AdminController
$asset->order_number = e(Input::get('order_number'));
$asset->notes = e(Input::get('notes'));
$asset->asset_tag = e(Input::get('asset_tag'));
$asset->mac_address = e(Input::get('mac_address'));
$asset->user_id = Sentry::getId();
$asset->archived = '0';
$asset->physical = '1';
@@ -238,7 +244,7 @@ class AssetsController extends AdminController
$location_list = array('' => '') + Location::orderBy('name', 'asc')->lists('name', 'id');
// Grab the dropdown list of status
$statuslabel_list = array('' => Lang::get('general.pending')) + array('0' => Lang::get('general.ready_to_deploy')) + Statuslabel::orderBy('name', 'asc')->lists('name', 'id');
$statuslabel_list = Statuslabel::orderBy('name', 'asc')->lists('name', 'id');
return View::make('backend/hardware/edit', compact('asset'))->with('model_list',$model_list)->with('supplier_list',$supplier_list)->with('location_list',$location_list)->with('statuslabel_list',$statuslabel_list);
}
@@ -300,7 +306,7 @@ class AssetsController extends AdminController
$asset->supplier_id = e(Input::get('supplier_id'));
}
if (e(Input::get('requestable')) == '') {
if (e(Input::get('requestable')) == '') {
$asset->requestable = 0;
} else {
$asset->requestable = e(Input::get('requestable'));
@@ -316,10 +322,11 @@ class AssetsController extends AdminController
$asset->name = e(Input::get('name'));
$asset->serial = e(Input::get('serial'));
$asset->model_id = e(Input::get('model_id'));
$asset->order_number = e(Input::get('order_number'));
$asset->order_number = e(Input::get('order_number'));
$asset->asset_tag = e(Input::get('asset_tag'));
$asset->notes = e(Input::get('notes'));
$asset->physical = '1';
$asset->mac_address = e(Input::get('mac_address'));
// Was the asset updated?
if($asset->save()) {
@@ -357,6 +364,12 @@ class AssetsController extends AdminController
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.assoc_users'));
} else {
// Delete the asset
DB::table('assets')
->where('id', $asset->id)
->update(array('assigned_to' => NULL));
$asset->delete();
// Redirect to the asset management page
@@ -484,7 +497,7 @@ class AssetsController extends AdminController
$logaction->checkedout_to = $asset->assigned_to;
// Update the asset data to null, since it's being checked in
$asset->assigned_to = '0';
$asset->assigned_to = NULL;
// Was the asset updated?
if($asset->save()) {
@@ -513,7 +526,7 @@ class AssetsController extends AdminController
**/
public function getView($assetId = null)
{
$asset = Asset::find($assetId);
$asset = Asset::withTrashed()->find($assetId);
if (isset($asset->id)) {
@@ -532,7 +545,7 @@ class AssetsController extends AdminController
$error = Lang::get('admin/hardware/message.does_not_exist', compact('id'));
// Redirect to the user management page
return Redirect::route('assets')->with('error', $error);
return Redirect::route('hardware')->with('error', $error);
}
}
@@ -589,9 +602,9 @@ class AssetsController extends AdminController
$model_list = array('' => '') + Model::lists('name', 'id');
// Grab the dropdown list of status
$statuslabel_list = array('' => 'Pending') + array('0' => 'Ready to Deploy') + Statuslabel::lists('name', 'id');
$statuslabel_list = Statuslabel::lists('name', 'id');
$location_list = array('' => '') + Location::lists('name', 'id');
$location_list = array('' => '') + Location::lists('name', 'id');
// get depreciation list
$depreciation_list = array('' => '') + Depreciation::lists('name', 'id');
@@ -604,4 +617,252 @@ class AssetsController extends AdminController
return View::make('backend/hardware/edit')->with('supplier_list',$supplier_list)->with('model_list',$model_list)->with('statuslabel_list',$statuslabel_list)->with('assigned_to',$assigned_to)->with('asset',$asset)->with('location_list',$location_list);
}
public function getRestore($assetId = null)
{
// Get user information
$asset = Asset::withTrashed()->find($assetId);
if (isset($asset->id)) {
// Restore the user
$asset->restore();
// Prepare the success message
$success = Lang::get('admin/hardware/message.restore.success');
// Redirect to the user management page
return Redirect::route('hardware')->with('success', $success);
} else {
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.not_found'));
}
}
/**
* Upload the file to the server
*
* @param int $assetId
* @return View
**/
public function postUpload($assetID = null)
{
$asset = Asset::find($assetID);
// the asset is valid
$destinationPath = app_path().'/private_uploads';
if (isset($asset->id)) {
if (Input::hasFile('assetfile')) {
foreach(Input::file('assetfile') as $file) {
$rules = array(
'assetfile' => 'required|mimes:png,gif,jpg,jpeg,doc,docx,pdf,txt|max:2000'
);
$validator = Validator::make(array('assetfile'=> $file), $rules);
if($validator->passes()){
$extension = $file->getClientOriginalExtension();
$filename = 'hardware-'.$asset->id.'-'.str_random(8);
$filename .= '-'.Str::slug($file->getClientOriginalName()).'.'.$extension;
$upload_success = $file->move($destinationPath, $filename);
//Log the deletion of seats to the log
$logaction = new Actionlog();
$logaction->asset_id = $asset->id;
$logaction->asset_type = 'hardware';
$logaction->user_id = Sentry::getUser()->id;
$logaction->note = e(Input::get('notes'));
$logaction->checkedout_to = NULL;
$logaction->created_at = date("Y-m-d h:i:s");
$logaction->filename = $filename;
$log = $logaction->logaction('uploaded');
} else {
return Redirect::back()->with('error', Lang::get('admin/hardware/message.upload.invalidfiles'));
}
}
if ($upload_success) {
return Redirect::back()->with('success', Lang::get('admin/hardware/message.upload.success'));
} else {
return Redirect::back()->with('success', Lang::get('admin/hardware/message.upload.error'));
}
} else {
return Redirect::back()->with('success', Lang::get('admin/hardware/message.upload.nofiles'));
}
} else {
// Prepare the error message
$error = Lang::get('admin/hardware/message.does_not_exist', compact('id'));
// Redirect to the hardware management page
return Redirect::route('hardware')->with('error', $error);
}
}
/**
* Delete the associated file
*
* @param int $assetId
* @return View
**/
public function getDeleteFile($assetID = null, $fileId = null)
{
$asset = Asset::find($assetID);
$destinationPath = app_path().'/private_uploads';
// the asset is valid
if (isset($asset->id)) {
$log = Actionlog::find($fileId);
$full_filename = $destinationPath.'/'.$log->filename;
if (file_exists($full_filename)) {
unlink($destinationPath.'/'.$log->filename);
}
$log->delete();
return Redirect::back()->with('success', Lang::get('admin/hardware/message.deletefile.success'));
} else {
// Prepare the error message
$error = Lang::get('admin/hardware/message.does_not_exist', compact('id'));
// Redirect to the hardware management page
return Redirect::route('hardware')->with('error', $error);
}
}
/**
* Display/download the uploaded file
*
* @param int $assetId
* @return View
**/
public function displayFile($assetID = null, $fileId = null)
{
$asset = Asset::find($assetID);
// the asset is valid
if (isset($asset->id)) {
$log = Actionlog::find($fileId);
$file = $log->get_src();
return Response::download($file);
} else {
// Prepare the error message
$error = Lang::get('admin/hardware/message.does_not_exist', compact('id'));
// Redirect to the hardware management page
return Redirect::route('hardware')->with('error', $error);
}
}
/**
* Display bulk edit screen
*
* @return View
**/
public function postBulkEdit($assets = null)
{
if (Input::has('edit_asset')) {
$assets = Input::get('edit_asset');
$supplier_list = array('' => '') + Supplier::orderBy('name', 'asc')->lists('name', 'id');
$statuslabel_list = array('' => '') + Statuslabel::lists('name', 'id');
$location_list = array('' => '') + Location::lists('name', 'id');
}
return View::make('backend/hardware/bulk')->with('assets',$assets)->with('supplier_list',$supplier_list)->with('statuslabel_list',$statuslabel_list)->with('location_list',$location_list);
}
/**
* Save bulk edits
*
* @return View
**/
public function postBulkSave($assets = null)
{
if (Input::has('bulk_edit')) {
$assets = Input::get('bulk_edit');
if ( (Input::has('purchase_date')) || (Input::has('rtd_location_id')) || (Input::has('status_id')) ) {
foreach ($assets as $key => $value) {
$update_array = array();
if (Input::has('purchase_date')) {
$update_array['purchase_date'] = e(Input::get('purchase_date'));
}
if (Input::has('rtd_location_id')) {
$update_array['rtd_location_id'] = e(Input::get('rtd_location_id'));
}
if (Input::has('status_id')) {
$update_array['status_id'] = e(Input::get('status_id'));
}
if (DB::table('assets')
->where('id', $key)
->update($update_array)) {
$logaction = new Actionlog();
$logaction->asset_id = $key;
$logaction->asset_type = 'hardware';
$logaction->created_at = date("Y-m-d h:i:s");
if (Input::has('rtd_location_id')) {
$logaction->location_id = e(Input::get('rtd_location_id'));
}
$logaction->user_id = Sentry::getUser()->id;
$log = $logaction->logaction('update');
}
} // endforeach
return Redirect::to("hardware")->with('success', Lang::get('admin/hardware/message.update.success'));
// no values given, nothing to update
} else {
return Redirect::to("hardware")->with('info',Lang::get('admin/hardware/message.update.nothing_updated'));
}
} // endif
return Redirect::to("hardware");
}
}
+32 -6
View File
@@ -52,12 +52,12 @@ class CategoriesController extends AdminController
// create a new model instance
$category = new Category();
$validator = Validator::make(Input::all(), $category->rules);
if ($validator->fails())
{
// The given data did not pass validation
// The given data did not pass validation
return Redirect::back()->withInput()->withErrors($validator->messages());
}
else{
@@ -71,7 +71,7 @@ class CategoriesController extends AdminController
// Redirect to the new category page
return Redirect::to("admin/settings/categories")->with('success', Lang::get('admin/categories/message.create.success'));
}
}
}
// Redirect to the category create page
return Redirect::to('admin/settings/categories/create')->with('error', Lang::get('admin/categories/message.create.error'));
@@ -119,9 +119,9 @@ class CategoriesController extends AdminController
// get the POST data
$new = Input::all();
// attempt validation
// attempt validation
$validator = Validator::make(Input::all(), $category->validationRules($categoryId));
if ($validator->fails())
{
@@ -139,7 +139,7 @@ class CategoriesController extends AdminController
// Redirect to the new category page
return Redirect::to("admin/settings/categories")->with('success', Lang::get('admin/categories/message.update.success'));
}
}
}
// Redirect to the category management page
return Redirect::to("admin/settings/categories/$categoryID/edit")->with('error', Lang::get('admin/categories/message.update.error'));
@@ -178,4 +178,30 @@ class CategoriesController extends AdminController
/**
* Get the asset information to present to the category view page
*
* @param int $assetId
* @return View
**/
public function getView($categoryID = null)
{
$category = Category::find($categoryID);
if (isset($category->id)) {
return View::make('backend/categories/view', compact('category'));
} else {
// Prepare the error message
$error = Lang::get('admin/categories/message.does_not_exist', compact('id'));
// Redirect to the user management page
return Redirect::route('categories')->with('error', $error);
}
}
}
+9 -5
View File
@@ -116,10 +116,8 @@ class LicensesController extends AdminController
$license->seats = e(Input::get('seats'));
$license->purchase_date = e(Input::get('purchase_date'));
$license->purchase_order = e(Input::get('purchase_order'));
//$license->purchase_cost = e(Input::get('purchase_cost'));
$license->depreciation_id = e(Input::get('depreciation_id'));
$license->expiration_date = e(Input::get('expiration_date'));
//$license->asset_id = e(Input::get('asset_id'));
$license->user_id = Sentry::getId();
if (($license->purchase_date == "") || ($license->purchase_date == "0000-00-00")) {
@@ -142,7 +140,7 @@ class LicensesController extends AdminController
$license_seat = new LicenseSeat();
$license_seat->license_id = $insertedId;
$license_seat->user_id = Sentry::getId();
$license_seat->assigned_to = 0;
$license_seat->assigned_to = NULL;
$license_seat->notes = NULL;
$license_seat->save();
}
@@ -316,7 +314,7 @@ class LicensesController extends AdminController
$license_seat = new LicenseSeat();
$license_seat->license_id = $license->id;
$license_seat->user_id = Sentry::getId();
$license_seat->assigned_to = 0;
$license_seat->assigned_to = NULL;
$license_seat->notes = NULL;
$license_seat->save();
}
@@ -370,11 +368,17 @@ class LicensesController extends AdminController
} else {
// Delete the license and the associated license seats
DB::table('license_seats')
->where('id', $license->id)
->update(array('assigned_to' => NULL,'asset_id' => NULL));
$licenseseats = $license->licenseseats();
$licenseseats->delete();
$license->delete();
// Redirect to the licenses management page
return Redirect::to('admin/licenses')->with('success', Lang::get('admin/licenses/message.delete.success'));
}
@@ -574,7 +578,7 @@ class LicensesController extends AdminController
$logaction->checkedout_to = $licenseseat->assigned_to;
// Update the asset data
$licenseseat->assigned_to = '0';
$licenseseat->assigned_to = NULL;
$licenseseat->asset_id = NULL;
// Was the asset updated?
@@ -113,7 +113,7 @@ class ManufacturersController extends AdminController
if ($validator->fails())
{
// The given data did not pass validation
// The given data did not pass validation
return Redirect::back()->withInput()->withErrors($validator->messages());
}
// attempt validation
@@ -126,7 +126,7 @@ class ManufacturersController extends AdminController
// Redirect to the new manufacturer page
return Redirect::to("admin/settings/manufacturers")->with('success', Lang::get('admin/manufacturers/message.update.success'));
}
}
}
// Redirect to the manufacturer management page
return Redirect::to("admin/settings/manufacturers/$manufacturerId/edit")->with('error', Lang::get('admin/manufacturers/message.update.error'));
@@ -169,5 +169,30 @@ class ManufacturersController extends AdminController
/**
* Get the asset information to present to the category view page
*
* @param int $assetId
* @return View
**/
public function getView($manufacturerID = null)
{
$manufacturer = Manufacturer::find($manufacturerID);
if (isset($manufacturer->id)) {
return View::make('backend/manufacturers/view', compact('manufacturer'));
} else {
// Prepare the error message
$error = Lang::get('admin/manufacturers/message.does_not_exist', compact('id'));
// Redirect to the user management page
return Redirect::route('manufacturers')->with('error', $error);
}
}
}
+15 -14
View File
@@ -67,13 +67,13 @@ class ModelsController extends AdminController
// attempt validation
if ($model->validate($new)) {
if ( e(Input::get('depreciation_id')) == '') {
$model->depreciation_id = 0;
} else {
$model->depreciation_id = e(Input::get('depreciation_id'));
}
if ( e(Input::get('eol')) == '') {
$model->eol = 0;
} else {
@@ -83,11 +83,11 @@ class ModelsController extends AdminController
// Save the model data
$model->name = e(Input::get('name'));
$model->modelno = e(Input::get('modelno'));
//$model->depreciation_id = e(Input::get('depreciation_id'));
$model->manufacturer_id = e(Input::get('manufacturer_id'));
$model->category_id = e(Input::get('category_id'));
$model->user_id = Sentry::getId();
//$model->eol = e(Input::get('eol'));
$model->show_mac_address = e(Input::get('show_mac_address', '0'));
if (Input::file('image')) {
$image = Input::file('image');
@@ -160,18 +160,18 @@ class ModelsController extends AdminController
if ($validator->fails())
{
// The given data did not pass validation
// The given data did not pass validation
return Redirect::back()->withInput()->withErrors($validator->messages());
}
// attempt validation
else {
if ( e(Input::get('depreciation_id')) == '') {
$model->depreciation_id = 0;
} else {
$model->depreciation_id = e(Input::get('depreciation_id'));
}
if ( e(Input::get('eol')) == '') {
$model->eol = 0;
} else {
@@ -180,9 +180,10 @@ class ModelsController extends AdminController
// Update the model data
$model->name = e(Input::get('name'));
$model->modelno = e(Input::get('modelno'));
$model->modelno = e(Input::get('modelno'));
$model->manufacturer_id = e(Input::get('manufacturer_id'));
$model->category_id = e(Input::get('category_id'));
$model->show_mac_address = e(Input::get('show_mac_address', '0'));
if (Input::file('image')) {
$image = Input::file('image');
@@ -198,13 +199,13 @@ class ModelsController extends AdminController
if (Input::get('image_delete') == 1 && Input::file('image') == "") {
$model->image = NULL;
}
// Was it created?
if($model->save()) {
// Redirect to the new model page
return Redirect::to("hardware/models")->with('success', Lang::get('admin/models/message.update.success'));
}
}
}
// Redirect to the model create page
return Redirect::to("hardware/models/$modelId/edit")->with('error', Lang::get('admin/models/message.update.error'));
@@ -261,7 +262,7 @@ class ModelsController extends AdminController
}
public function getClone($modelId = null)
{
// Check if the model exists
@@ -269,10 +270,10 @@ class ModelsController extends AdminController
// Redirect to the model management page
return Redirect::to('assets/models')->with('error', Lang::get('admin/models/message.does_not_exist'));
}
$model = clone $model_to_clone;
$model->id = null;
// Show the page
$depreciation_list = array('' => 'Do Not Depreciate') + Depreciation::lists('name', 'id');
$manufacturer_list = array('' => 'Select One') + Manufacturer::lists('name', 'id');
@@ -284,7 +285,7 @@ class ModelsController extends AdminController
$view->with('model',$model);
$view->with('clone_model',$model_to_clone);
return $view;
}
@@ -86,6 +86,7 @@ class SettingsController extends AdminController
$setting->per_page = e(Input::get('per_page'));
$setting->qr_code = e(Input::get('qr_code', '0'));
$setting->display_eol = e(Input::get('display_eol', '0'));
$setting->load_remote = e(Input::get('load_remote', '0'));
$setting->qr_text = e(Input::get('qr_text'));
$setting->auto_increment_prefix = e(Input::get('auto_increment_prefix'));
$setting->auto_increment_assets = e(Input::get('auto_increment_assets', '0'));
@@ -38,7 +38,12 @@ class StatuslabelsController extends AdminController
public function getCreate()
{
// Show the page
return View::make('backend/statuslabels/edit')->with('statuslabel',new Statuslabel);
$statuslabel = new Statuslabel;
$use_statuslabel_type = $statuslabel->getStatuslabelType();
$statuslabel_types = array('' => Lang::get('admin/hardware/form.select_statustype')) + array('undeployable' => Lang::get('admin/hardware/general.undeployable')) + array('pending' => Lang::get('admin/hardware/general.pending')) + array('archived' => Lang::get('admin/hardware/general.archived')) + array('deployable' => Lang::get('admin/hardware/general.deployable'));
return View::make('backend/statuslabels/edit', compact('statuslabel_types','statuslabel'))->with('use_statuslabel_type',$use_statuslabel_type);
}
@@ -59,9 +64,15 @@ class StatuslabelsController extends AdminController
// attempt validation
if ($statuslabel->validate($new)) {
$statustype = Statuslabel::getStatuslabelTypesForDB(Input::get('statuslabel_types'));
// Save the Statuslabel data
$statuslabel->name = e(Input::get('name'));
$statuslabel->user_id = Sentry::getId();
$statuslabel->notes = e(Input::get('notes'));
$statuslabel->deployable = $statustype['deployable'];
$statuslabel->pending = $statustype['pending'];
$statuslabel->archived = $statustype['archived'];
// Was the asset created?
if($statuslabel->save()) {
@@ -94,8 +105,11 @@ class StatuslabelsController extends AdminController
return Redirect::to('admin/settings/statuslabels')->with('error', Lang::get('admin/statuslabels/message.does_not_exist'));
}
$use_statuslabel_type = $statuslabel->getStatuslabelType();
return View::make('backend/statuslabels/edit', compact('statuslabel'));
$statuslabel_types = array('' => Lang::get('admin/hardware/form.select_statustype')) + array('undeployable' => Lang::get('admin/hardware/general.undeployable')) + array('pending' => Lang::get('admin/hardware/general.pending')) + array('archived' => Lang::get('admin/hardware/general.archived')) + array('deployable' => Lang::get('admin/hardware/general.deployable'));
return View::make('backend/statuslabels/edit', compact('statuslabel','statuslabel_types'))->with('use_statuslabel_type',$use_statuslabel_type);
}
@@ -118,20 +132,27 @@ class StatuslabelsController extends AdminController
if ($validator->fails())
{
// The given data did not pass validation
// The given data did not pass validation
return Redirect::back()->withInput()->withErrors($validator->messages());
}
// attempt validation
else {
// Update the Statuslabel data
$statustype = Statuslabel::getStatuslabelTypesForDB(Input::get('statuslabel_types'));
$statuslabel->name = e(Input::get('name'));
$statuslabel->notes = e(Input::get('notes'));
$statuslabel->deployable = $statustype['deployable'];
$statuslabel->pending = $statustype['pending'];
$statuslabel->archived = $statustype['archived'];
// Was the asset created?
if($statuslabel->save()) {
// Redirect to the saved Statuslabel page
return Redirect::to("admin/settings/statuslabels/")->with('success', Lang::get('admin/statuslabels/message.update.success'));
}
}
}
// Redirect to the Statuslabel management page
return Redirect::to("admin/settings/statuslabels/$statuslabelId/edit")->with('error', Lang::get('admin/statuslabels/message.update.error'));
+1 -1
View File
@@ -458,7 +458,7 @@ class UsersController extends AdminController
public function getView($userId = null)
{
$user = Sentry::getUserProvider()->createModel()->withTrashed()->find($userId);
$user = Sentry::getUserProvider()->createModel()->find($userId);
if (isset($user->id)) {
return View::make('backend/users/view', compact('user'));
@@ -0,0 +1,48 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class FixBadAssignedToIds extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
DB::update('update ' . DB::getTablePrefix() . 'assets SET assigned_to=NULL where assigned_to=0');
Schema::table('status_labels', function ($table) {
$table->boolean('deployable')->default(0);
$table->boolean('pending')->default(0);
$table->boolean('archived')->default(0);
$table->text('notes')->nullable();
});
DB::statement('INSERT into ' . DB::getTablePrefix() . 'status_labels (user_id, name, deployable, pending, archived, notes) VALUES (1,"Pending",0,1,0,"These assets are not yet ready to be deployed, usually because of configuration or waiting on parts.")');
DB::statement('INSERT into ' . DB::getTablePrefix() . 'status_labels (user_id, name, deployable, pending, archived, notes) VALUES (1,"Ready to Deploy",1,0,0,"These assets are ready to deploy.")');
DB::statement('INSERT into ' . DB::getTablePrefix() . 'status_labels (user_id, name, deployable, pending, archived, notes) VALUES (1,"Archived",0,0,1,"These assets are no longer in circulation or viable.")');
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
Schema::table('status_labels', function ($table) {
$table->dropColumn('deployable');
$table->dropColumn('pending');
$table->dropColumn('archived');
$table->dropColumn('notes');
});
}
}
@@ -0,0 +1,60 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class MigrateDataToNewStatuses extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
// get newly added statuses from last migration
$statuses = DB::select('select * from ' . DB::getTablePrefix() . 'status_labels where name="Pending" OR name="Ready to Deploy"');
foreach ($statuses as $status) {
if ($status->name =="Pending") {
$pending_id = array($status->id);
} elseif ($status->name =="Ready to Deploy") {
$rtd_id = array($status->id);
}
}
// Pending
$pendings = DB::select('select * from ' . DB::getTablePrefix() . 'assets where status_id IS NULL AND physical=1 ');
foreach ($pendings as $pending) {
DB::update('update ' . DB::getTablePrefix() . 'assets set status_id = ? where status_id IS NULL AND physical=1',$pending_id);
}
// Ready to Deploy
$rtds = DB::select('select * from ' . DB::getTablePrefix() . 'assets where status_id = 0 AND physical=1 ');
foreach ($rtds as $rtd) {
//DB::update('update users set votes = 100 where name = ?', array('John'));
DB::update('update ' . DB::getTablePrefix() . 'assets set status_id = ? where status_id = 0 AND physical=1',$rtd_id);
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}
@@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class MigrateMakeLicenseAssignedNull extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
DB::update('update ' . DB::getTablePrefix() . 'license_seats SET assigned_to=NULL where assigned_to=0');
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}
@@ -0,0 +1,37 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class MigrateCreateRequestsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::create('requests', function ($table) {
$table->increments('id');
$table->integer('asset_id');
$table->integer('user_id');
$table->text('request_code');
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
Schema::drop('requests');
}
}
@@ -0,0 +1,43 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddMacAddressToAsset extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::table('assets', function ($table) {
$table->string('mac_address')->nullable()->default(NULL);
});
Schema::table('models', function ($table) {
$table->boolean('show_mac_address')->default(0);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
Schema::table('assets', function ($table) {
$table->dropColumn('mac_address');
});
Schema::table('models', function ($table) {
$table->dropColumn('show_mac_address');
});
}
}
@@ -0,0 +1,27 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class ChangeLicenseNotesType extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
$prefix = DB::getTablePrefix();
DB::statement('ALTER TABLE '.$prefix.'licenses MODIFY COLUMN notes TEXT');
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
$prefix = DB::getTablePrefix();
DB::statement('ALTER TABLE '.$prefix.'licenses MODIFY COLUMN notes VARCHAR(255)');
}
}
@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddLocalonlyToSettings extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::table('settings', function ($table) {
$table->boolean('load_remote')->default(1);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
Schema::table('settings', function ($table) {
$table->dropColumn('load_remote');
});
}
}
+4 -4
View File
@@ -10,7 +10,7 @@ class ActionlogSeeder extends Seeder
$date = new DateTime;
// Pending (status_id is null, assigned_to = 0)
$assetlog[] = array(
'user_id' => '1',
'action_type' => 'checkout',
@@ -23,7 +23,7 @@ class ActionlogSeeder extends Seeder
'filename' => NULL,
);
// Pending (status_id is null, assigned_to = 0)
$assetlog[] = array(
'user_id' => '1',
'action_type' => 'checkin from',
@@ -36,7 +36,7 @@ class ActionlogSeeder extends Seeder
'filename' => NULL,
);
// Pending (status_id is null, assigned_to = 0)
$assetlog[] = array(
'user_id' => '1',
'action_type' => 'checkout',
@@ -49,7 +49,7 @@ class ActionlogSeeder extends Seeder
'filename' => NULL,
);
// Pending (status_id is null, assigned_to = 0)
$assetlog[] = array(
'user_id' => '1',
'action_type' => 'checkin from',
+30 -30
View File
@@ -10,7 +10,7 @@ class AssetsSeeder extends Seeder
$date = new DateTime;
// Pending (status_id is null, assigned_to = 0)
$asset[] = array(
'name' => 'Shanen MBP',
'asset_tag' => 'NNY2878796',
@@ -22,10 +22,10 @@ class AssetsSeeder extends Seeder
'created_at' => $date->modify('-10 day'),
'updated_at' => $date->modify('-3 day'),
'user_id' => 1,
'assigned_to' => 0,
'assigned_to' => NULL,
'physical' => 1,
'archived' => 0,
'status_id' => NULL,
'status_id' => 1,
'notes' => '',
'deleted_at' => NULL,
'archived' => '0',
@@ -45,10 +45,10 @@ class AssetsSeeder extends Seeder
'created_at' => $date->modify('-10 day'),
'updated_at' => $date->modify('-3 day'),
'user_id' => 1,
'assigned_to' => 0,
'assigned_to' => NULL,
'physical' => 1,
'archived' => 0,
'status_id' => NULL,
'status_id' => 1,
'notes' => '',
'deleted_at' => NULL,
'archived' => '0',
@@ -57,7 +57,7 @@ class AssetsSeeder extends Seeder
);
// RTD (status_id =0, assigned_to = 0)
$asset[] = array(
'name' => 'Alison MBP',
'asset_tag' => 'NNY287958796',
@@ -69,10 +69,10 @@ class AssetsSeeder extends Seeder
'created_at' => $date->modify('-10 day'),
'updated_at' => $date->modify('-3 day'),
'user_id' => 1,
'assigned_to' => 0,
'assigned_to' => NULL,
'physical' => 1,
'archived' => 0,
'status_id' => 0,
'status_id' => 2,
'notes' => '',
'deleted_at' => NULL,
'archived' => '0',
@@ -80,7 +80,7 @@ class AssetsSeeder extends Seeder
'depreciate' => '0',
);
// RTD (status_id =0, assigned_to = 0)
$asset[] = array(
'name' => 'Brady MBP',
'asset_tag' => 'NNY78795566',
@@ -92,10 +92,10 @@ class AssetsSeeder extends Seeder
'created_at' => $date->modify('-10 day'),
'updated_at' => $date->modify('-3 day'),
'user_id' => 1,
'assigned_to' => 0,
'assigned_to' => NULL,
'physical' => 1,
'archived' => 0,
'status_id' => 0,
'status_id' => 1,
'notes' => '',
'deleted_at' => NULL,
'archived' => '0',
@@ -103,7 +103,7 @@ class AssetsSeeder extends Seeder
'depreciate' => '0',
);
// RTD (status_id =0, assigned_to = 0)
$asset[] = array(
'name' => 'Deborah MBP',
'asset_tag' => 'NNY65756756775',
@@ -115,10 +115,10 @@ class AssetsSeeder extends Seeder
'created_at' => $date->modify('-10 day'),
'updated_at' => $date->modify('-3 day'),
'user_id' => 2,
'assigned_to' => 0,
'assigned_to' => NULL,
'physical' => 1,
'archived' => 0,
'status_id' => 0,
'status_id' => 2,
'notes' => '',
'deleted_at' => NULL,
'archived' => '0',
@@ -127,7 +127,7 @@ class AssetsSeeder extends Seeder
);
// Deployed (status_id =0, assigned_to > 0)
$asset[] = array(
'name' => 'Sara MBP',
'asset_tag' => 'NNY6897856775',
@@ -142,7 +142,7 @@ class AssetsSeeder extends Seeder
'assigned_to' => 2,
'physical' => 1,
'archived' => 0,
'status_id' => 0,
'status_id' => 1,
'notes' => '',
'deleted_at' => NULL,
'archived' => '0',
@@ -150,7 +150,7 @@ class AssetsSeeder extends Seeder
'depreciate' => '0',
);
// Deployed (status_id =0, assigned_to > 0)
$asset[] = array(
'name' => 'Ben MBP',
'asset_tag' => 'NNY67567775',
@@ -165,7 +165,7 @@ class AssetsSeeder extends Seeder
'assigned_to' => 2,
'physical' => 1,
'archived' => 0,
'status_id' => 0,
'status_id' => 1,
'notes' => '',
'deleted_at' => NULL,
'archived' => '0',
@@ -173,10 +173,10 @@ class AssetsSeeder extends Seeder
'depreciate' => '0',
);
// Undeployable (status_id > 0, assigned_to = 0)
$asset[] = array(
'name' => 'Broke-Ass Laptop',
'asset_tag' => 'NNY67567775',
'name' => 'Broken Laptop',
'asset_tag' => 'NNY6756756775',
'model_id' => 2,
'serial' => 'WS89080890',
'purchase_date' => '2012-01-02',
@@ -185,7 +185,7 @@ class AssetsSeeder extends Seeder
'created_at' => $date->modify('-10 day'),
'updated_at' => $date->modify('-3 day'),
'user_id' => 2,
'assigned_to' => 0,
'assigned_to' => NULL,
'physical' => 1,
'archived' => 0,
'status_id' => '3',
@@ -196,7 +196,7 @@ class AssetsSeeder extends Seeder
'depreciate' => '0',
);
// Undeployable (status_id > 0, assigned_to = 0)
$asset[] = array(
'name' => 'Maybe Broke-Ass Laptop',
'asset_tag' => 'NNY6755667775',
@@ -208,7 +208,7 @@ class AssetsSeeder extends Seeder
'created_at' => $date->modify('-10 day'),
'updated_at' => $date->modify('-3 day'),
'user_id' => 1,
'assigned_to' => 0,
'assigned_to' => NULL,
'physical' => 1,
'archived' => 0,
'status_id' => '2',
@@ -219,7 +219,7 @@ class AssetsSeeder extends Seeder
'depreciate' => '0',
);
// Undeployable (status_id > 0, assigned_to = 0)
$asset[] = array(
'name' => 'Completely Facacta Laptop',
'asset_tag' => 'NNY6564567775',
@@ -231,7 +231,7 @@ class AssetsSeeder extends Seeder
'created_at' => $date->modify('-10 day'),
'updated_at' => $date->modify('-3 day'),
'user_id' => 1,
'assigned_to' => 0,
'assigned_to' => NULL,
'physical' => 1,
'archived' => 1,
'status_id' => '4',
@@ -242,7 +242,7 @@ class AssetsSeeder extends Seeder
'depreciate' => '0',
);
// Undeployable (status_id > 0, assigned_to = 0)
$asset[] = array(
'name' => 'Drunken Shanenigans Laptop',
'asset_tag' => 'NNY6564567775',
@@ -254,7 +254,7 @@ class AssetsSeeder extends Seeder
'created_at' => $date->modify('-10 day'),
'updated_at' => $date->modify('-3 day'),
'user_id' => 1,
'assigned_to' => 0,
'assigned_to' => NULL,
'physical' => 1,
'archived' => 1,
'status_id' => '3',
@@ -277,10 +277,10 @@ class AssetsSeeder extends Seeder
'created_at' => $date->modify('-10 day'),
'updated_at' => $date->modify('-3 day'),
'user_id' => 2,
'assigned_to' => 0,
'assigned_to' => NULL,
'physical' => 1,
'archived' => 0,
'status_id' => 0,
'status_id' => 1,
'notes' => '',
'deleted_at' => NULL,
'archived' => '0',
+4 -4
View File
@@ -10,7 +10,7 @@ class LicenseSeatsSeeder extends Seeder
$date = new DateTime;
// Pending (status_id is null, assigned_to = 0)
$license_seats[] = array(
'license_id' => '1',
'assigned_to' => '1',
@@ -46,7 +46,7 @@ class LicenseSeatsSeeder extends Seeder
$license_seats[] = array(
'license_id' => '1',
'assigned_to' => '0',
'assigned_to' => NULL,
'created_at' => $date->modify('-10 day')->format('Y-m-d H:i:s'),
'updated_at' => $date->modify('-3 day')->format('Y-m-d H:i:s'),
'deleted_at' => NULL,
@@ -77,10 +77,10 @@ class LicenseSeatsSeeder extends Seeder
'asset_id' => NULL,
);
// Pending (status_id is null, assigned_to = 0)
$license_seats[] = array(
'license_id' => '2',
'assigned_to' => '0',
'assigned_to' => NULL,
'created_at' => $date->modify('-10 day')->format('Y-m-d H:i:s'),
'updated_at' => $date->modify('-3 day')->format('Y-m-d H:i:s'),
'deleted_at' => NULL,
+2 -2
View File
@@ -10,7 +10,7 @@ class LicensesSeeder extends Seeder
$date = new DateTime;
// Pending (status_id is null, assigned_to = 0)
$license[] = array(
'name' => 'Adobe Photoshop CS6',
'serial' => 'ZOMG-WtF-BBQ-SRSLY',
@@ -31,7 +31,7 @@ class LicensesSeeder extends Seeder
'depreciate' => '0',
);
// Pending (status_id is null, assigned_to = 0)
$license[] = array(
'name' => 'Git Tower',
'serial' => '98049890394-340485934',
+53
View File
@@ -10,12 +10,53 @@ class StatuslabelsSeeder extends Seeder
$date = new DateTime;
$status[] = array(
'name' => 'Ready to Deploy',
'created_at' => $date->modify('-10 day'),
'updated_at' => $date->modify('-3 day'),
'user_id' => 1,
'deleted_at' => NULL,
'deployable' => 1,
'pending' => 0,
'archived' => 0,
'notes' => ''
);
$status[] = array(
'name' => 'Pending',
'created_at' => $date->modify('-10 day'),
'updated_at' => $date->modify('-3 day'),
'user_id' => 1,
'deleted_at' => NULL,
'deployable' => 0,
'pending' => 1,
'archived' => 0,
'notes' => ''
);
$status[] = array(
'name' => 'Archived',
'created_at' => $date->modify('-10 day'),
'updated_at' => $date->modify('-3 day'),
'user_id' => 1,
'deleted_at' => NULL,
'deployable' => 0,
'pending' => 0,
'archived' => 1,
'notes' => 'These assets are permanently undeployable'
);
$status[] = array(
'name' => 'Out for Diagnostics',
'created_at' => $date->modify('-10 day'),
'updated_at' => $date->modify('-3 day'),
'user_id' => 1,
'deleted_at' => NULL,
'deployable' => 0,
'pending' => 0,
'archived' => 0,
'notes' => ''
);
@@ -25,6 +66,10 @@ class StatuslabelsSeeder extends Seeder
'updated_at' => $date->modify('-3 day'),
'user_id' => 1,
'deleted_at' => NULL,
'deployable' => 0,
'pending' => 0,
'archived' => 0,
'notes' => ''
);
@@ -34,6 +79,10 @@ class StatuslabelsSeeder extends Seeder
'updated_at' => $date->modify('-3 day'),
'user_id' => 1,
'deleted_at' => NULL,
'deployable' => 0,
'pending' => 0,
'archived' => 1,
'notes' => ''
);
$status[] = array(
@@ -42,6 +91,10 @@ class StatuslabelsSeeder extends Seeder
'updated_at' => $date->modify('-3 day'),
'user_id' => 1,
'deleted_at' => NULL,
'deployable' => 0,
'pending' => 0,
'archived' => 1,
'notes' => '',
);
+2
View File
@@ -15,6 +15,7 @@ return array(
'expires' => 'Expires',
'fully_depreciated' => 'Fully Depreciated',
'help_checkout' => 'If you wish to assign this asset immediately, you should select "Ready to Deploy" from the status list above, or unexpected things may happen. ',
'mac_address' => 'MAC Address',
'manufacturer' => 'Manufacturer',
'model' => 'Model',
'months' => 'months',
@@ -23,6 +24,7 @@ return array(
'order' => 'Order Number',
'qr' => 'QR Code',
'requestable' => 'Users may request this asset',
'select_statustype' => 'Select Status Type',
'serial' => 'Serial',
'status' => 'Status',
'supplier' => 'Supplier',
+7 -1
View File
@@ -1,11 +1,17 @@
<?php
return array(
'archived' => 'Archived',
'asset' => 'Asset',
'checkin' => 'Checkin Asset',
'checkout' => 'Checkout Asset to User',
'clone' => 'Clone Asset',
'deployable' => 'Deployable',
'deleted' => 'This asset has been deleted. <a href="/hardware/:asset_id/restore">Click here to restore it</a>.',
'edit' => 'Edit Asset',
'pending' => 'Pending Asset',
'requestable' => 'Requestable',
'restore' => 'Restore Asset',
'pending' => 'Pending',
'undeployable' => 'Undeployable',
'view' => 'View Asset',
);
+7 -1
View File
@@ -2,7 +2,8 @@
return array(
'undeployable' => '<strong>Warning: </strong> This asset has been marked as currently undeployable. If this status has changed, please update the asset status.',
'undeployable' => '<strong>Warning: </strong> This asset has been marked as currently undeployable.
If this status has changed, please update the asset status.',
'does_not_exist' => 'Asset does not exist.',
'assoc_users' => 'This asset is currently checked out to a user and cannot be deleted. Please check the asset in first, and then try deleting again. ',
@@ -16,6 +17,11 @@ return array(
'success' => 'Asset updated successfully.'
),
'restore' => array(
'error' => 'Asset was not restored, please try again',
'success' => 'Asset restored successfully.'
),
'delete' => array(
'confirm' => 'Are you sure you wish to delete this asset?',
'error' => 'There was an issue deleting the asset. Please try again.',
+7
View File
@@ -0,0 +1,7 @@
<?php
return array(
'show_mac_address' => 'Show MAC address field in assets in this model',
);
+10 -5
View File
@@ -1,10 +1,15 @@
<?php
return array(
'name' => 'Status Name',
'title' => 'Status Labels',
'update' => 'Update Status Label',
'create' => 'Create Status Label',
'about' => 'About Status Labels',
'info' => 'Status labels are used to describe the various reasons why an asset <strong><em>cannot</em></strong> be deployed. It could be broken, out for diagnostics, out for repair, lost or stolen, etc. Status labels allow your team to show the progression.',
'archived' => 'Archived',
'create' => 'Create Status Label',
'deployable' => 'Deployable',
'info' => 'Status labels are used to describe the various states your assets could be in. They may be out for repair, lost/stolen, etc. You can create new status labels for deployable, pending and archived assets.',
'name' => 'Status Name',
'pending' => 'Pending',
'status_type' => 'Status Type',
'title' => 'Status Labels',
'undeployable' => 'Undeployable',
'update' => 'Update Status Label',
);
+1
View File
@@ -7,6 +7,7 @@ return array(
'admin' => 'الإدارة',
'all_assets' => 'كل الأصول',
'all' => 'الكل',
'archived' => 'Archived',
'asset_models' => 'نماذج الأصول',
'asset' => 'الأصول',
'asset_report' => 'Asset Report',
+2
View File
@@ -15,6 +15,7 @@ return array(
'expires' => 'Expiruje',
'fully_depreciated' => 'Plně odepsané',
'help_checkout' => 'Pokud si přejete přiřadit majetek okamžitě, měli by jste ze seznamu stavů zvolit "Připraveno k přiděleni", nebo se může něco pokazit. ',
'mac_address' => 'MAC Address',
'manufacturer' => 'Výrobce',
'model' => 'Model',
'months' => 'měsíce',
@@ -23,6 +24,7 @@ return array(
'order' => 'Č. objednávky',
'qr' => 'QR kód',
'requestable' => 'Uživatelé můžou požádat o tento majetek',
'select_statustype' => 'Select Status Type',
'serial' => 'Sériové číslo',
'status' => 'Stav',
'supplier' => 'Dodavatel',
+7 -1
View File
@@ -1,11 +1,17 @@
<?php
return array(
'archived' => 'Archived',
'asset' => 'Majetek',
'checkin' => 'Převzít majetek',
'checkout' => 'Předat majetek uživateli',
'clone' => 'Klonovat majetek',
'deployable' => 'Deployable',
'deleted' => 'This asset has been deleted. <a href="/hardware/:asset_id/restore">Click here to restore it</a>.',
'edit' => 'Upravit majetek',
'pending' => 'Nevyřízený majetek',
'requestable' => 'Requestable',
'restore' => 'Restore Asset',
'pending' => 'Pending',
'undeployable' => 'Undeployable',
'view' => 'Zobrazit majetek',
);
+7 -1
View File
@@ -2,7 +2,8 @@
return array(
'undeployable' => '<strong>Warning: </strong> This asset has been marked as currently undeployable. If this status has changed, please update the asset status.',
'undeployable' => '<strong>Warning: </strong> This asset has been marked as currently undeployable.
If this status has changed, please update the asset status.',
'does_not_exist' => 'Asset does not exist.',
'assoc_users' => 'This asset is currently checked out to a user and cannot be deleted. Please check the asset in first, and then try deleting again. ',
@@ -16,6 +17,11 @@ return array(
'success' => 'Asset updated successfully.'
),
'restore' => array(
'error' => 'Asset was not restored, please try again',
'success' => 'Asset restored successfully.'
),
'delete' => array(
'confirm' => 'Are you sure you wish to delete this asset?',
'error' => 'There was an issue deleting the asset. Please try again.',
+7
View File
@@ -0,0 +1,7 @@
<?php
return array(
'show_mac_address' => 'Show MAC address field in assets in this model',
);
+10 -5
View File
@@ -1,10 +1,15 @@
<?php
return array(
'name' => 'Název stavu',
'title' => 'Označení stavu',
'update' => 'Upravit označení stavu',
'create' => 'Vytvořit označení stavu',
'about' => 'O označení stavu',
'info' => 'Označení stavu se používá k popisu různých důvodů proč majetek <strong><em>nemůže</em></strong> být přidělen. Může být pokažený, pryč na opravě, na diagnostice, ztracený nebo ukradený, apod. Označení stavu umožňuje členům týmu zobrazovat postup.',
'archived' => 'Archived',
'create' => 'Vytvořit označení stavu',
'deployable' => 'Deployable',
'info' => 'Status labels are used to describe the various states your assets could be in. They may be out for repair, lost/stolen, etc. You can create new status labels for deployable, pending and archived assets.',
'name' => 'Název stavu',
'pending' => 'Pending',
'status_type' => 'Status Type',
'title' => 'Označení stavu',
'undeployable' => 'Undeployable',
'update' => 'Upravit označení stavu',
);
+1
View File
@@ -7,6 +7,7 @@ return array(
'admin' => 'Admin',
'all_assets' => 'Všechna zařízení',
'all' => 'Vše',
'archived' => 'Archived',
'asset_models' => 'Modely majetku',
'asset' => 'Zařízeni',
'asset_report' => 'Report majetku',
+2
View File
@@ -15,6 +15,7 @@ return array(
'expires' => 'Udløber',
'fully_depreciated' => 'Fully Depreciated',
'help_checkout' => 'If you wish to assign this asset immediately, you should select "Ready to Deploy" from the status list above, or unexpected things may happen. ',
'mac_address' => 'MAC Address',
'manufacturer' => 'Producent',
'model' => 'Model',
'months' => 'måneder',
@@ -23,6 +24,7 @@ return array(
'order' => 'Order Number',
'qr' => 'QR kode',
'requestable' => 'Users may request this asset',
'select_statustype' => 'Select Status Type',
'serial' => 'Serienummer',
'status' => 'Status',
'supplier' => 'Leverandør',
+7 -1
View File
@@ -1,11 +1,17 @@
<?php
return array(
'archived' => 'Archived',
'asset' => 'Asset',
'checkin' => 'Checkin Asset',
'checkout' => 'Checkout Asset to User',
'clone' => 'Clone Asset',
'deployable' => 'Deployable',
'deleted' => 'This asset has been deleted. <a href="/hardware/:asset_id/restore">Click here to restore it</a>.',
'edit' => 'Edit Asset',
'pending' => 'Pending Asset',
'requestable' => 'Requestable',
'restore' => 'Restore Asset',
'pending' => 'Pending',
'undeployable' => 'Undeployable',
'view' => 'View Asset',
);
+7 -1
View File
@@ -2,7 +2,8 @@
return array(
'undeployable' => '<strong>Warning: </strong> This asset has been marked as currently undeployable. If this status has changed, please update the asset status.',
'undeployable' => '<strong>Warning: </strong> This asset has been marked as currently undeployable.
If this status has changed, please update the asset status.',
'does_not_exist' => 'Asset does not exist.',
'assoc_users' => 'This asset is currently checked out to a user and cannot be deleted. Please check the asset in first, and then try deleting again. ',
@@ -16,6 +17,11 @@ return array(
'success' => 'Asset updated successfully.'
),
'restore' => array(
'error' => 'Asset was not restored, please try again',
'success' => 'Asset restored successfully.'
),
'delete' => array(
'confirm' => 'Are you sure you wish to delete this asset?',
'error' => 'There was an issue deleting the asset. Please try again.',
+7
View File
@@ -0,0 +1,7 @@
<?php
return array(
'show_mac_address' => 'Show MAC address field in assets in this model',
);
+10 -5
View File
@@ -1,10 +1,15 @@
<?php
return array(
'name' => 'Status navn',
'title' => 'Status labels',
'update' => 'Opdater status label',
'create' => 'Opret status label',
'about' => 'Om status labels',
'info' => 'Status labels bruges til at beskrive de forskellige grunde til, hvorfor et aktiv <strong><em>ikke</em></strong> kan blive anvendt. Det kan være i stykker, sendt til diagnose, sendt til reparation, mistet eller stjålet, osv. Status labels gør det muligt for dit team at vise udviklingen.',
'archived' => 'Archived',
'create' => 'Opret status label',
'deployable' => 'Deployable',
'info' => 'Status labels are used to describe the various states your assets could be in. They may be out for repair, lost/stolen, etc. You can create new status labels for deployable, pending and archived assets.',
'name' => 'Status navn',
'pending' => 'Pending',
'status_type' => 'Status Type',
'title' => 'Status labels',
'undeployable' => 'Undeployable',
'update' => 'Opdater status label',
);
+1
View File
@@ -7,6 +7,7 @@ return array(
'admin' => 'Admin',
'all_assets' => 'Alle aktiver',
'all' => 'Alle',
'archived' => 'Archived',
'asset_models' => 'Asset Models',
'asset' => 'Asset',
'asset_report' => 'Asset Report',
+2
View File
@@ -15,6 +15,7 @@ return array(
'expires' => 'Gültig bis',
'fully_depreciated' => 'Komplett Abgeschrieben',
'help_checkout' => 'Wenn du dieses Asset sofort zuweisen möchtest, solltest du "Ready to Deploy" im Statusfeld auswählen oder es könnten unerwartete Probleme auftreten. ',
'mac_address' => 'MAC Address',
'manufacturer' => 'Hersteller',
'model' => 'Modell',
'months' => 'Monate',
@@ -23,6 +24,7 @@ return array(
'order' => 'Bestellnummer',
'qr' => 'QR-Code',
'requestable' => 'Benutzer dürfen dieses Asset anfordern',
'select_statustype' => 'Select Status Type',
'serial' => 'Seriennummer',
'status' => 'Status',
'supplier' => 'Lieferant',
+7 -1
View File
@@ -1,11 +1,17 @@
<?php
return array(
'archived' => 'Archived',
'asset' => 'Asset',
'checkin' => 'Asset zurücknehmen',
'checkout' => 'Asset an Benutzer herausgeben',
'clone' => 'Asset duplizieren',
'deployable' => 'Deployable',
'deleted' => 'This asset has been deleted. <a href="/hardware/:asset_id/restore">Click here to restore it</a>.',
'edit' => 'Asset editieren',
'pending' => 'Unerledigter Asset',
'requestable' => 'Requestable',
'restore' => 'Restore Asset',
'pending' => 'Pending',
'undeployable' => 'Undeployable',
'view' => 'Asset ansehen',
);
+7 -1
View File
@@ -2,7 +2,8 @@
return array(
'undeployable' => '<b>Warnung:</b> Dieses Asset wurde als nicht zur Herausgabe bereit markiert. Falls sich dieser Status geändert hat, aktualisieren Sie bitte den Asset Status.',
'undeployable' => '<strong>Warning: </strong> This asset has been marked as currently undeployable.
If this status has changed, please update the asset status.',
'does_not_exist' => 'Asset existiert nicht.',
'assoc_users' => 'Dieses Asset ist im Moment an einen Benutzer herausgegeben und kann nicht entfernt werden. Bitte buchen sie das Asset wieder ein und versuchen Sie dann erneut es zu entfernen. ',
@@ -16,6 +17,11 @@ return array(
'success' => 'Asset wurde erfolgreich aktualisiert.'
),
'restore' => array(
'error' => 'Asset was not restored, please try again',
'success' => 'Asset restored successfully.'
),
'delete' => array(
'confirm' => 'Sind Sie sicher, dass Sie dieses Asset entfernen möchten?',
'error' => 'Beim Entfernen dieses Assets ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.',
+7
View File
@@ -0,0 +1,7 @@
<?php
return array(
'show_mac_address' => 'Show MAC address field in assets in this model',
);
+10 -5
View File
@@ -1,10 +1,15 @@
<?php
return array(
'name' => 'Statusname',
'title' => 'Statusbezeichnungen',
'update' => 'Statusbezeichnung bearbeiten',
'create' => 'Statusbezeichnung erstellen',
'about' => 'Info Statusbezeichnung',
'info' => 'Status Label werden benutzt um die diversen Gründe zu beschreiben warum ein Asset <strong><em>nicht</em></strong> ausgerollt werden kann. Es könnte kaputt sein, in der Diagnose, in der Reparatur, verloren oder gestohlen, etc. Status Label ermöglichen es deinem Team den Fortschritt anzuzeigen.',
'archived' => 'Archived',
'create' => 'Statusbezeichnung erstellen',
'deployable' => 'Deployable',
'info' => 'Status labels are used to describe the various states your assets could be in. They may be out for repair, lost/stolen, etc. You can create new status labels for deployable, pending and archived assets.',
'name' => 'Statusname',
'pending' => 'Pending',
'status_type' => 'Status Type',
'title' => 'Statusbezeichnungen',
'undeployable' => 'Undeployable',
'update' => 'Statusbezeichnung bearbeiten',
);
+1
View File
@@ -7,6 +7,7 @@ return array(
'admin' => 'Administrator',
'all_assets' => 'Alle Assets',
'all' => 'Alle',
'archived' => 'Archived',
'asset_models' => 'Asset Modelle',
'asset' => 'Asset',
'asset_report' => 'Asset Bericht',
+2
View File
@@ -15,6 +15,7 @@ return array(
'expires' => 'Expires',
'fully_depreciated' => 'Fully Depreciated',
'help_checkout' => 'If you wish to assign this asset immediately, you should select "Ready to Deploy" from the status list above, or unexpected things may happen. ',
'mac_address' => 'MAC Address',
'manufacturer' => 'Manufacturer',
'model' => 'Model',
'months' => 'months',
@@ -23,6 +24,7 @@ return array(
'order' => 'Order Number',
'qr' => 'QR Code',
'requestable' => 'Users may request this asset',
'select_statustype' => 'Select Status Type',
'serial' => 'Serial',
'status' => 'Status',
'supplier' => 'Supplier',
+7 -1
View File
@@ -1,11 +1,17 @@
<?php
return array(
'archived' => 'Archived',
'asset' => 'Asset',
'checkin' => 'Checkin Asset',
'checkout' => 'Checkout Asset to User',
'clone' => 'Clone Asset',
'deployable' => 'Deployable',
'deleted' => 'This asset has been deleted. <a href="/hardware/:asset_id/restore">Click here to restore it</a>.',
'edit' => 'Edit Asset',
'pending' => 'Pending Asset',
'requestable' => 'Requestable',
'restore' => 'Restore Asset',
'pending' => 'Pending',
'undeployable' => 'Undeployable',
'view' => 'View Asset',
);
@@ -17,6 +17,11 @@ return array(
'success' => 'Asset updated successfully.'
),
'restore' => array(
'error' => 'Asset was not restored, please try again',
'success' => 'Asset restored successfully.'
),
'delete' => array(
'confirm' => 'Are you sure you wish to delete this asset?',
'error' => 'There was an issue deleting the asset. Please try again.',
+7
View File
@@ -0,0 +1,7 @@
<?php
return array(
'show_mac_address' => 'Show MAC address field in assets in this model',
);
+10 -5
View File
@@ -1,10 +1,15 @@
<?php
return array(
'name' => 'Status Name',
'title' => 'Status Labels',
'update' => 'Update Status Label',
'create' => 'Create Status Label',
'about' => 'About Status Labels',
'info' => 'Status labels are used to describe the various reasons why an asset <strong><em>cannot</em></strong> be deployed. It could be broken, out for diagnostics, out for repair, lost or stolen, etc. Status labels allow your team to show the progression.',
'archived' => 'Archived',
'create' => 'Create Status Label',
'deployable' => 'Deployable',
'info' => 'Status labels are used to describe the various states your assets could be in. They may be out for repair, lost/stolen, etc. You can create new status labels for deployable, pending and archived assets.',
'name' => 'Status Name',
'pending' => 'Pending',
'status_type' => 'Status Type',
'title' => 'Status Labels',
'undeployable' => 'Undeployable',
'update' => 'Update Status Label',
);
+1
View File
@@ -7,6 +7,7 @@ return array(
'admin' => 'Admin',
'all_assets' => 'All Assets',
'all' => 'All',
'archived' => 'Archived',
'asset_models' => 'Asset Models',
'asset' => 'Asset',
'asset_report' => 'Asset Report',
+5
View File
@@ -2,6 +2,9 @@
return array(
'bulk_update' => 'Bulk Update Assets',
'bulk_update_help' => 'This form allows you to update multiple assets at once. Only fill in the fields you need to change. Any fields left blank will remain unchanged. ',
'bulk_update_warn' => 'You are about to edit the properties of :asset_count assets.',
'checkedout_to' => 'Checked Out To',
'checkout_to' => 'Checkout to',
'cost' => 'Purchase Cost',
@@ -15,6 +18,7 @@ return array(
'expires' => 'Expires',
'fully_depreciated' => 'Fully Depreciated',
'help_checkout' => 'If you wish to assign this asset immediately, you should select "Ready to Deploy" from the status list above, or unexpected things may happen. ',
'mac_address' => 'MAC Address',
'manufacturer' => 'Manufacturer',
'model' => 'Model',
'months' => 'months',
@@ -23,6 +27,7 @@ return array(
'order' => 'Order Number',
'qr' => 'QR Code',
'requestable' => 'Users may request this asset',
'select_statustype' => 'Select Status Type',
'serial' => 'Serial',
'status' => 'Status',
'supplier' => 'Supplier',
+7 -1
View File
@@ -1,11 +1,17 @@
<?php
return array(
'archived' => 'Archived',
'asset' => 'Asset',
'checkin' => 'Checkin Asset',
'checkout' => 'Checkout Asset to User',
'clone' => 'Clone Asset',
'deployable' => 'Deployable',
'deleted' => 'This asset has been deleted. <a href="/hardware/:asset_id/restore">Click here to restore it</a>.',
'edit' => 'Edit Asset',
'pending' => 'Pending Asset',
'requestable' => 'Requestable',
'restore' => 'Restore Asset',
'pending' => 'Pending',
'undeployable' => 'Undeployable',
'view' => 'View Asset',
);
+21 -2
View File
@@ -13,10 +13,29 @@ return array(
),
'update' => array(
'error' => 'Asset was not updated, please try again',
'success' => 'Asset updated successfully.'
'error' => 'Asset was not updated, please try again',
'success' => 'Asset updated successfully.',
'nothing_updated' => 'No fields were selected, so nothing was updated.',
),
'restore' => array(
'error' => 'Asset was not restored, please try again',
'success' => 'Asset restored successfully.'
),
'deletefile' => array(
'error' => 'File not deleted. Please try again.',
'success' => 'File successfully deleted.',
),
'upload' => array(
'error' => 'File(s) not uploaded. Please try again.',
'success' => 'File(s) successfully uploaded.',
'nofiles' => 'You did not select any files for upload',
'invalidfiles' => 'One or more of your files is too large or is a filetype that is not allowed. Allowed filetypes are png, gif, jpg, doc, docx, pdf, and txt.',
),
'delete' => array(
'confirm' => 'Are you sure you wish to delete this asset?',
'error' => 'There was an issue deleting the asset. Please try again.',
+7
View File
@@ -0,0 +1,7 @@
<?php
return array(
'show_mac_address' => 'Show MAC address field in assets in this model',
);
+1
View File
@@ -10,6 +10,7 @@ return array(
'display_qr' => 'Display QR Codes',
'info' => 'These settings let you customize certain aspects of your installation.',
'laravel' => 'Laravel Version',
'load_remote' => 'This Snipe-IT install can load scripts from the outside world.',
'per_page' => 'Results Per Page',
'php' => 'PHP Version',
'php_gd_info' => 'You must install php-gd to display QR codes, see install instructions.',
+10 -5
View File
@@ -1,10 +1,15 @@
<?php
return array(
'name' => 'Status Name',
'title' => 'Status Labels',
'update' => 'Update Status Label',
'create' => 'Create Status Label',
'about' => 'About Status Labels',
'info' => 'Status labels are used to describe the various reasons why an asset <strong><em>cannot</em></strong> be deployed. It could be broken, out for diagnostics, out for repair, lost or stolen, etc. Status labels allow your team to show the progression.',
'archived' => 'Archived',
'create' => 'Create Status Label',
'deployable' => 'Deployable',
'info' => 'Status labels are used to describe the various states your assets could be in. They may be out for repair, lost/stolen, etc. You can create new status labels for deployable, pending and archived assets.',
'name' => 'Status Name',
'pending' => 'Pending',
'status_type' => 'Status Type',
'title' => 'Status Labels',
'undeployable' => 'Undeployable',
'update' => 'Update Status Label',
);
+4 -2
View File
@@ -7,6 +7,7 @@ return array(
'admin' => 'Admin',
'all_assets' => 'All Assets',
'all' => 'All',
'archived' => 'Archived',
'asset_models' => 'Asset Models',
'asset' => 'Asset',
'asset_report' => 'Asset Report',
@@ -36,6 +37,7 @@ return array(
'deleted' => 'Deleted',
'deployed' => 'Deployed',
'depreciation_report' => 'Depreciation Report',
'download' => 'Download',
'depreciation' => 'Depreciation',
'editprofile' => 'Edit Your Profile',
'eol' => 'EOL',
@@ -47,8 +49,8 @@ return array(
'gravatar_email' => 'Gravatar Email Address',
'history_for' => 'History for',
'id' => 'ID',
'image_delete' => 'Delete Image',
'image_upload' => 'Upload Image',
'image_delete' => 'Delete Image',
'image_upload' => 'Upload Image',
'last_name' => 'Last Name',
'license' => 'License',
'license_report' => 'License Report',
+2
View File
@@ -15,6 +15,7 @@ return array(
'expires' => 'Expira',
'fully_depreciated' => 'Totalmente amortizado',
'help_checkout' => 'Si desea asignar a este activo inmediatamente, deberá seleccionar "Listo para desplegar" de la lista de estado anterior, o pueden ocurrir cosas inesperadas. ',
'mac_address' => 'MAC Address',
'manufacturer' => 'Fabricante',
'model' => 'Modelo',
'months' => 'meses',
@@ -23,6 +24,7 @@ return array(
'order' => 'Nº Pedido',
'qr' => 'Código QR',
'requestable' => 'Los usuarios pueden solicitarlo',
'select_statustype' => 'Selecciona estado',
'serial' => 'N. Serie',
'status' => 'Estado',
'supplier' => 'Proveedor',
+7 -1
View File
@@ -1,11 +1,17 @@
<?php
return array(
'archived' => 'Archivado',
'asset' => 'Equipo',
'checkin' => 'Quitar Equipo',
'checkout' => 'Asignar a un usuario',
'clone' => 'Clonar Equipo',
'deployable' => 'Desplegable',
'deleted' => 'This asset has been deleted. <a href="/hardware/:asset_id/restore">Click here to restore it</a>.',
'edit' => 'Editar Equipo',
'pending' => 'Equipo Pendiente',
'requestable' => 'Requestable',
'restore' => 'Restore Asset',
'pending' => 'Pendiente',
'undeployable' => 'No desplegable',
'view' => 'Ver Equipo',
);
+7 -1
View File
@@ -2,7 +2,8 @@
return array(
'undeployable' => 'Atención: Este equipo está marcado como no isntalabre. Si no es correcto, actualiza su estado.',
'undeployable' => '<strong>Warning: </strong> This asset has been marked as currently undeployable.
If this status has changed, please update the asset status.',
'does_not_exist' => 'Equipo inexistente.',
'assoc_users' => 'Equipo asignado a un usuario, no se puede eliminar.',
@@ -16,6 +17,11 @@ return array(
'success' => 'Equipo actualizado.'
),
'restore' => array(
'error' => 'Asset was not restored, please try again',
'success' => 'Asset restored successfully.'
),
'delete' => array(
'confirm' => 'Estás seguro que quieres eliminar el equipo?',
'error' => 'Equipo no eliminado, intentalo de nuevo.',
+7
View File
@@ -0,0 +1,7 @@
<?php
return array(
'show_mac_address' => 'Show MAC address field in assets in this model',
);
+10 -5
View File
@@ -1,10 +1,15 @@
<?php
return array(
'name' => 'Estado',
'title' => 'Etiquetas Estado',
'update' => 'Actualizar Etiqueta Estado',
'create' => 'Crear Etiqueta Estado',
'about' => 'Info Etiquetas Estado',
'info' => 'Las etiquetas de estado son usadas para describir las razobes por las que un equipo <strong><em>no puede</em></strong> ser instalado. Puede estar estropeado, en proceso de diagnóstico, en reparación, perdido o robado,etc.',
'archived' => 'Archivado',
'create' => 'Crear Etiqueta Estado',
'deployable' => 'Desplegable',
'info' => 'Las etiquetas de estado se utilizan para describir los diferentes estados en que pueden estar tus equipos. Pueden estar fuera en reparación, perdidos/robados, etc. Puedes crear nuevas etiquetas de estado para equipos desplegables, pendientes o archivados.',
'name' => 'Estado',
'pending' => 'Pendiente',
'status_type' => 'Tipo de estado',
'title' => 'Etiquetas Estado',
'undeployable' => 'No desplegable',
'update' => 'Actualizar Etiqueta Estado',
);
+1
View File
@@ -7,6 +7,7 @@ return array(
'admin' => 'Admin',
'all_assets' => 'Todos los Equipos',
'all' => 'Todos los',
'archived' => 'Archivado',
'asset_models' => 'Modelos',
'asset' => 'Equipo',
'asset_report' => 'Reporte de Equipos',
+2
View File
@@ -15,6 +15,7 @@ return array(
'expires' => 'Vanhenee',
'fully_depreciated' => 'Kokonaan Poistettu',
'help_checkout' => 'Jos haluat määrittää laitteen käyttöön jollekulle samantien, sinun tulee valita laitteen tilaksi "luovutusvalmis" tai järjestelmä saattaa toimia odottamattomasti. ',
'mac_address' => 'MAC Address',
'manufacturer' => 'Valmistaja',
'model' => 'Malli',
'months' => 'kuukautta',
@@ -23,6 +24,7 @@ return array(
'order' => 'Tilausnumero',
'qr' => 'QR-koodi',
'requestable' => 'Käyttäjät voivat pyytää tätä laitetta',
'select_statustype' => 'Select Status Type',
'serial' => 'Sarjanumero',
'status' => 'Tila',
'supplier' => 'Toimittaja',
+7 -1
View File
@@ -1,11 +1,17 @@
<?php
return array(
'archived' => 'Archived',
'asset' => 'Laite',
'checkin' => 'Palauta Laite',
'checkout' => 'Luovuta Laite Käyttäjälle',
'clone' => 'Monista Laite',
'deployable' => 'Deployable',
'deleted' => 'This asset has been deleted. <a href="/hardware/:asset_id/restore">Click here to restore it</a>.',
'edit' => 'Muokkaa Laitetta',
'pending' => 'Odottavat Laitteet',
'requestable' => 'Requestable',
'restore' => 'Restore Asset',
'pending' => 'Pending',
'undeployable' => 'Undeployable',
'view' => 'Näytä Laite',
);
+7 -2
View File
@@ -2,8 +2,8 @@
return array(
'undeployable' => '<strong>Varoitus: </strong> Tämä laite on määritetty käyttökunnottomaksi.
Jos laitteen tila on muuttunut, päivitä laitteen tila sen asetuksista.',
'undeployable' => '<strong>Warning: </strong> This asset has been marked as currently undeployable.
If this status has changed, please update the asset status.',
'does_not_exist' => 'Laitetta ei löydy.',
'assoc_users' => 'Tämä laite on luovutettu käyttäjälle joten sitä ei voida poistaa. Palauta laite ensin käyttäjältä ja yritä uudelleen. ',
@@ -17,6 +17,11 @@ return array(
'success' => 'Laite päivitetty onnistuneesti.'
),
'restore' => array(
'error' => 'Asset was not restored, please try again',
'success' => 'Asset restored successfully.'
),
'delete' => array(
'confirm' => 'Oletko varma että haluat poistaa tämän laitteen?',
'error' => 'Laitteen poistamisessa tapahtui virhe. Yritä uudelleen.',
+7
View File
@@ -0,0 +1,7 @@
<?php
return array(
'show_mac_address' => 'Show MAC address field in assets in this model',
);
+10 -5
View File
@@ -1,10 +1,15 @@
<?php
return array(
'name' => 'Tilan Nimi',
'title' => 'Tilamerkinnät',
'update' => 'Päivitä Tilamerkinnät',
'create' => 'Uusi Tilamerkintä',
'about' => 'Lisätietoja Tilamerkinnöistä',
'info' => 'Tilamerkintöjä käytetään erilaisina syinä siihen miksi laitetta <strong><em>ei voida</em></strong> ottaa käyttöön. Laite voi olla rikki, lähetetty vianhakuun, korjattavana, hävinnyt, varastettu jne. Tilamerkintöjen avulla tiimisi voi seurata laitteen edistymistä.',
'archived' => 'Archived',
'create' => 'Uusi Tilamerkintä',
'deployable' => 'Deployable',
'info' => 'Status labels are used to describe the various states your assets could be in. They may be out for repair, lost/stolen, etc. You can create new status labels for deployable, pending and archived assets.',
'name' => 'Tilan Nimi',
'pending' => 'Pending',
'status_type' => 'Status Type',
'title' => 'Tilamerkinnät',
'undeployable' => 'Undeployable',
'update' => 'Päivitä Tilamerkinnät',
);
+1
View File
@@ -7,6 +7,7 @@ return array(
'admin' => 'Ylläpitäjä',
'all_assets' => 'Kaikki Laitteet',
'all' => 'Kaikki',
'archived' => 'Archived',
'asset_models' => 'Laitemallit',
'asset' => 'Laite',
'asset_report' => 'Laiteraportti',
+2
View File
@@ -15,6 +15,7 @@ return array(
'expires' => 'Expire',
'fully_depreciated' => 'Entièrement amortis',
'help_checkout' => 'Si vous souhaitez assigner cet actif immédiatement, vous devez sélectionner « Prêt à déployer » dans la liste statut ci-dessus, ou des choses inattendues peuvent se produire. ',
'mac_address' => 'MAC Address',
'manufacturer' => 'Fabricant',
'model' => 'Modèle',
'months' => 'Mois',
@@ -23,6 +24,7 @@ return array(
'order' => 'Numéro de Commande',
'qr' => 'Code QR',
'requestable' => 'Les utilisateurs peuvent demander à cet actif',
'select_statustype' => 'Select Status Type',
'serial' => 'Série ',
'status' => 'Statut',
'supplier' => 'Fournisseur',
+7 -1
View File
@@ -1,11 +1,17 @@
<?php
return array(
'archived' => 'Archived',
'asset' => 'Biens',
'checkin' => 'Retour des Biens',
'checkout' => 'Sortie des Biens',
'clone' => 'Cloner le Bien',
'deployable' => 'Deployable',
'deleted' => 'This asset has been deleted. <a href="/hardware/:asset_id/restore">Click here to restore it</a>.',
'edit' => 'Editer le Bien',
'pending' => 'Bien en Attente',
'requestable' => 'Requestable',
'restore' => 'Restore Asset',
'pending' => 'Pending',
'undeployable' => 'Undeployable',
'view' => 'Voir le Bien',
);
+7 -2
View File
@@ -2,8 +2,8 @@
return array(
'undeployable' => '<strong>Attention: </strong> Ce bien a été marqué indisponible.
Si ce statut a changé, veuillez l\'actualiser.',
'undeployable' => '<strong>Warning: </strong> This asset has been marked as currently undeployable.
If this status has changed, please update the asset status.',
'does_not_exist' => 'Ce bien n\'existe pas.',
'assoc_users' => 'Ce bien est marqué sorti par un utilisateur et ne peut être supprimé. Veuillez d\'abord cliquer sur Retour de Biens, et réessayer.',
@@ -17,6 +17,11 @@ return array(
'success' => 'Bien actualisé correctement.'
),
'restore' => array(
'error' => 'Asset was not restored, please try again',
'success' => 'Asset restored successfully.'
),
'delete' => array(
'confirm' => 'Etes-vous sûr de vouloir supprimer ce bien?',
'error' => 'Il y a eu un problème en supprimant ce bien. Veuillez réessayer.',
+7
View File
@@ -0,0 +1,7 @@
<?php
return array(
'show_mac_address' => 'Show MAC address field in assets in this model',
);
+10 -5
View File
@@ -1,10 +1,15 @@
<?php
return array(
'name' => 'Nom du statut',
'title' => 'Étiquette de statut',
'update' => 'Mettre à jour l\'étiquette de statut',
'create' => 'Créé une étiquette de statut',
'about' => 'À propos des étiquettes de statut',
'info' => 'Les étiquettes de statut sont utilisées pour décrire les différentes raisons qui peuvent <strong><em>empêcher</em></strong> le déploiement d\'un actif. Il peut être cassé, en examen, en réparation, perdu ou volé, etc. Les étiquettes de statut permettent à votre équipe de suivre la progression de l’état de l\'actif.',
'archived' => 'Archived',
'create' => 'Créé une étiquette de statut',
'deployable' => 'Deployable',
'info' => 'Status labels are used to describe the various states your assets could be in. They may be out for repair, lost/stolen, etc. You can create new status labels for deployable, pending and archived assets.',
'name' => 'Nom du statut',
'pending' => 'Pending',
'status_type' => 'Status Type',
'title' => 'Étiquette de statut',
'undeployable' => 'Undeployable',
'update' => 'Mettre à jour l\'étiquette de statut',
);
+1
View File
@@ -7,6 +7,7 @@ return array(
'admin' => 'Admin',
'all_assets' => 'Tous les actifs',
'all' => 'Tous',
'archived' => 'Archived',
'asset_models' => 'Modèles d\'actif',
'asset' => 'Actif',
'asset_report' => 'Rapport d\'actif',
+2
View File
@@ -15,6 +15,7 @@ return array(
'expires' => 'Expires',
'fully_depreciated' => 'Fully Depreciated',
'help_checkout' => 'If you wish to assign this asset immediately, you should select "Ready to Deploy" from the status list above, or unexpected things may happen. ',
'mac_address' => 'MAC Address',
'manufacturer' => 'Manufacturer',
'model' => 'Modell',
'months' => 'months',
@@ -23,6 +24,7 @@ return array(
'order' => 'Order Number',
'qr' => 'QR Code',
'requestable' => 'Users may request this asset',
'select_statustype' => 'Select Status Type',
'serial' => 'Serial',
'status' => 'Status',
'supplier' => 'Supplier',
+7 -1
View File
@@ -1,11 +1,17 @@
<?php
return array(
'archived' => 'Archived',
'asset' => 'Asset',
'checkin' => 'Checkin Asset',
'checkout' => 'Checkout Asset to User',
'clone' => 'Clone Asset',
'deployable' => 'Deployable',
'deleted' => 'This asset has been deleted. <a href="/hardware/:asset_id/restore">Click here to restore it</a>.',
'edit' => 'Edit Asset',
'pending' => 'Pending Asset',
'requestable' => 'Requestable',
'restore' => 'Restore Asset',
'pending' => 'Pending',
'undeployable' => 'Undeployable',
'view' => 'View Asset',
);
+7 -1
View File
@@ -2,7 +2,8 @@
return array(
'undeployable' => '<strong>Warning: </strong> This asset has been marked as currently undeployable. If this status has changed, please update the asset status.',
'undeployable' => '<strong>Warning: </strong> This asset has been marked as currently undeployable.
If this status has changed, please update the asset status.',
'does_not_exist' => 'Asset does not exist.',
'assoc_users' => 'This asset is currently checked out to a user and cannot be deleted. Please check the asset in first, and then try deleting again. ',
@@ -16,6 +17,11 @@ return array(
'success' => 'Asset updated successfully.'
),
'restore' => array(
'error' => 'Asset was not restored, please try again',
'success' => 'Asset restored successfully.'
),
'delete' => array(
'confirm' => 'Are you sure you wish to delete this asset?',
'error' => 'There was an issue deleting the asset. Please try again.',
+7
View File
@@ -0,0 +1,7 @@
<?php
return array(
'show_mac_address' => 'Show MAC address field in assets in this model',
);
+10 -5
View File
@@ -1,10 +1,15 @@
<?php
return array(
'name' => 'Status Name',
'title' => 'Status Labels',
'update' => 'Update Status Label',
'create' => 'Create Status Label',
'about' => 'About Status Labels',
'info' => 'Status labels are used to describe the various reasons why an asset <strong><em>cannot</em></strong> be deployed. It could be broken, out for diagnostics, out for repair, lost or stolen, etc. Status labels allow your team to show the progression.',
'archived' => 'Archived',
'create' => 'Create Status Label',
'deployable' => 'Deployable',
'info' => 'Status labels are used to describe the various states your assets could be in. They may be out for repair, lost/stolen, etc. You can create new status labels for deployable, pending and archived assets.',
'name' => 'Status Name',
'pending' => 'Pending',
'status_type' => 'Status Type',
'title' => 'Status Labels',
'undeployable' => 'Undeployable',
'update' => 'Update Status Label',
);
+1
View File
@@ -7,6 +7,7 @@ return array(
'admin' => 'Admin',
'all_assets' => 'All Assets',
'all' => 'All',
'archived' => 'Archived',
'asset_models' => 'Asset Models',
'asset' => 'Asset',
'asset_report' => 'Asset Report',
+2
View File
@@ -15,6 +15,7 @@ return array(
'expires' => 'Expires',
'fully_depreciated' => 'Fully Depreciated',
'help_checkout' => 'If you wish to assign this asset immediately, you should select "Ready to Deploy" from the status list above, or unexpected things may happen. ',
'mac_address' => 'MAC Address',
'manufacturer' => 'Manufacturer',
'model' => 'Model',
'months' => 'months',
@@ -23,6 +24,7 @@ return array(
'order' => 'Order Number',
'qr' => 'QR Code',
'requestable' => 'Users may request this asset',
'select_statustype' => 'Select Status Type',
'serial' => 'Serial',
'status' => 'Status',
'supplier' => 'Supplier',
+7 -1
View File
@@ -1,11 +1,17 @@
<?php
return array(
'archived' => 'Archived',
'asset' => 'Asset',
'checkin' => 'Checkin Asset',
'checkout' => 'Checkout Asset to User',
'clone' => 'Clone Asset',
'deployable' => 'Deployable',
'deleted' => 'This asset has been deleted. <a href="/hardware/:asset_id/restore">Click here to restore it</a>.',
'edit' => 'Edit Asset',
'pending' => 'Pending Asset',
'requestable' => 'Requestable',
'restore' => 'Restore Asset',
'pending' => 'Pending',
'undeployable' => 'Undeployable',
'view' => 'View Asset',
);
+7 -1
View File
@@ -2,7 +2,8 @@
return array(
'undeployable' => '<strong>Warning: </strong> This asset has been marked as currently undeployable. If this status has changed, please update the asset status.',
'undeployable' => '<strong>Warning: </strong> This asset has been marked as currently undeployable.
If this status has changed, please update the asset status.',
'does_not_exist' => 'Asset does not exist.',
'assoc_users' => 'This asset is currently checked out to a user and cannot be deleted. Please check the asset in first, and then try deleting again. ',
@@ -16,6 +17,11 @@ return array(
'success' => 'Asset updated successfully.'
),
'restore' => array(
'error' => 'Asset was not restored, please try again',
'success' => 'Asset restored successfully.'
),
'delete' => array(
'confirm' => 'Are you sure you wish to delete this asset?',
'error' => 'There was an issue deleting the asset. Please try again.',
+7
View File
@@ -0,0 +1,7 @@
<?php
return array(
'show_mac_address' => 'Show MAC address field in assets in this model',
);
+10 -5
View File
@@ -1,10 +1,15 @@
<?php
return array(
'name' => 'Status Name',
'title' => 'Status Labels',
'update' => 'Update Status Label',
'create' => 'Create Status Label',
'about' => 'About Status Labels',
'info' => 'Status labels are used to describe the various reasons why an asset <strong><em>cannot</em></strong> be deployed. It could be broken, out for diagnostics, out for repair, lost or stolen, etc. Status labels allow your team to show the progression.',
'archived' => 'Archived',
'create' => 'Create Status Label',
'deployable' => 'Deployable',
'info' => 'Status labels are used to describe the various states your assets could be in. They may be out for repair, lost/stolen, etc. You can create new status labels for deployable, pending and archived assets.',
'name' => 'Status Name',
'pending' => 'Pending',
'status_type' => 'Status Type',
'title' => 'Status Labels',
'undeployable' => 'Undeployable',
'update' => 'Update Status Label',
);
+1
View File
@@ -7,6 +7,7 @@ return array(
'admin' => 'Admin',
'all_assets' => 'All Assets',
'all' => 'All',
'archived' => 'Archived',
'asset_models' => 'Asset Models',
'asset' => 'Asset',
'asset_report' => 'Asset Report',
+2
View File
@@ -15,6 +15,7 @@ return array(
'expires' => 'Expires',
'fully_depreciated' => 'Fully Depreciated',
'help_checkout' => 'If you wish to assign this asset immediately, you should select "Ready to Deploy" from the status list above, or unexpected things may happen. ',
'mac_address' => 'MAC Address',
'manufacturer' => 'Manufacturer',
'model' => 'Model',
'months' => 'months',
@@ -23,6 +24,7 @@ return array(
'order' => 'Order Number',
'qr' => 'QR Code',
'requestable' => 'Users may request this asset',
'select_statustype' => 'Select Status Type',
'serial' => 'Serial',
'status' => 'Status',
'supplier' => 'Supplier',
+7 -1
View File
@@ -1,11 +1,17 @@
<?php
return array(
'archived' => 'Archived',
'asset' => 'Asset',
'checkin' => 'Checkin Asset',
'checkout' => 'Checkout Asset to User',
'clone' => 'Clone Asset',
'deployable' => 'Deployable',
'deleted' => 'This asset has been deleted. <a href="/hardware/:asset_id/restore">Click here to restore it</a>.',
'edit' => 'Edit Asset',
'pending' => 'Pending Asset',
'requestable' => 'Requestable',
'restore' => 'Restore Asset',
'pending' => 'Pending',
'undeployable' => 'Undeployable',
'view' => 'View Asset',
);
+7 -1
View File
@@ -2,7 +2,8 @@
return array(
'undeployable' => '<strong>Warning: </strong> This asset has been marked as currently undeployable. If this status has changed, please update the asset status.',
'undeployable' => '<strong>Warning: </strong> This asset has been marked as currently undeployable.
If this status has changed, please update the asset status.',
'does_not_exist' => 'Asset does not exist.',
'assoc_users' => 'This asset is currently checked out to a user and cannot be deleted. Please check the asset in first, and then try deleting again. ',
@@ -16,6 +17,11 @@ return array(
'success' => 'Asset updated successfully.'
),
'restore' => array(
'error' => 'Asset was not restored, please try again',
'success' => 'Asset restored successfully.'
),
'delete' => array(
'confirm' => 'Are you sure you wish to delete this asset?',
'error' => 'There was an issue deleting the asset. Please try again.',
+7
View File
@@ -0,0 +1,7 @@
<?php
return array(
'show_mac_address' => 'Show MAC address field in assets in this model',
);
+10 -5
View File
@@ -1,10 +1,15 @@
<?php
return array(
'name' => 'Status Name',
'title' => 'Status Labels',
'update' => 'Update Status Label',
'create' => 'Create Status Label',
'about' => 'About Status Labels',
'info' => 'Status labels are used to describe the various reasons why an asset <strong><em>cannot</em></strong> be deployed. It could be broken, out for diagnostics, out for repair, lost or stolen, etc. Status labels allow your team to show the progression.',
'archived' => 'Archived',
'create' => 'Create Status Label',
'deployable' => 'Deployable',
'info' => 'Status labels are used to describe the various states your assets could be in. They may be out for repair, lost/stolen, etc. You can create new status labels for deployable, pending and archived assets.',
'name' => 'Status Name',
'pending' => 'Pending',
'status_type' => 'Status Type',
'title' => 'Status Labels',
'undeployable' => 'Undeployable',
'update' => 'Update Status Label',
);
+1
View File
@@ -7,6 +7,7 @@ return array(
'admin' => 'Admin',
'all_assets' => 'All Assets',
'all' => 'All',
'archived' => 'Archived',
'asset_models' => 'Asset Models',
'asset' => 'Asset',
'asset_report' => 'Asset Report',
+2
View File
@@ -15,6 +15,7 @@ return array(
'expires' => 'Luput',
'fully_depreciated' => 'Susut Nilai Penuh',
'help_checkout' => 'Jika anda mahu agihkan harta ini dengan segera, anda sepatunya pilih "Sedia Untuk Agihan" Dari senarai status diatas, atau sesuatu perkara yang tidak dijangka mungkin akan berlaku. ',
'mac_address' => 'MAC Address',
'manufacturer' => 'Pengeluar',
'model' => 'Model',
'months' => 'bulan',
@@ -23,6 +24,7 @@ return array(
'order' => 'Nombor Pesanan',
'qr' => 'Kod QR',
'requestable' => 'Pengguna dibenarkan untuk memohon harta ini',
'select_statustype' => 'Select Status Type',
'serial' => 'Siri',
'status' => 'Status',
'supplier' => 'Pembekal',
+7 -1
View File
@@ -1,11 +1,17 @@
<?php
return array(
'archived' => 'Archived',
'asset' => 'Harta',
'checkin' => 'Terima Harta',
'checkout' => 'Agih Harta Kepada Pengguna',
'clone' => 'Pendua Harta',
'deployable' => 'Deployable',
'deleted' => 'This asset has been deleted. <a href="/hardware/:asset_id/restore">Click here to restore it</a>.',
'edit' => 'Kemaskini Harta',
'pending' => 'Harta Tergantung',
'requestable' => 'Requestable',
'restore' => 'Restore Asset',
'pending' => 'Pending',
'undeployable' => 'Undeployable',
'view' => 'Papar Harta',
);
+7 -1
View File
@@ -2,7 +2,8 @@
return array(
'undeployable' => '<strong>Amaran: </strong> Harta ini sekarang ditanda sebagai tidak boleh agih. Jika statusnya telah berubah, sila kemaskini staus harta.',
'undeployable' => '<strong>Warning: </strong> This asset has been marked as currently undeployable.
If this status has changed, please update the asset status.',
'does_not_exist' => 'Harta tidak wujud.',
'assoc_users' => 'Harta ini sekarang telah diagihkan kepada pengguna dan tidak boleh dihapuskan. Sila semak status harta ini dahulu, dan kemudian cuba semula. ',
@@ -16,6 +17,11 @@ return array(
'success' => 'Harta berjaya dikemaskini.'
),
'restore' => array(
'error' => 'Asset was not restored, please try again',
'success' => 'Asset restored successfully.'
),
'delete' => array(
'confirm' => 'Anda pasti anda ingin hapuskan harta ini?',
'error' => 'Ada isu semasa menghapuskan harta. Sila cuba lagi.',
+7
View File
@@ -0,0 +1,7 @@
<?php
return array(
'show_mac_address' => 'Show MAC address field in assets in this model',
);
+10 -5
View File
@@ -1,10 +1,15 @@
<?php
return array(
'name' => 'Nama Status',
'title' => 'Label Status',
'update' => 'Kemaskini Label Status',
'create' => 'Cipata Label Status',
'about' => 'Mengenai Label Status',
'info' => 'Label status digunakan untuk menggambarkan perbagai alasan kenapa harta <strong><em>tidak boleh</em></strong> di agihkan. Munking rosak, diagnos yang lari, sedang dibaiki, hilang, dicuri, dll. Label status boleh memaparkan situasi.',
'archived' => 'Archived',
'create' => 'Cipata Label Status',
'deployable' => 'Deployable',
'info' => 'Status labels are used to describe the various states your assets could be in. They may be out for repair, lost/stolen, etc. You can create new status labels for deployable, pending and archived assets.',
'name' => 'Nama Status',
'pending' => 'Pending',
'status_type' => 'Status Type',
'title' => 'Label Status',
'undeployable' => 'Undeployable',
'update' => 'Kemaskini Label Status',
);
+1
View File
@@ -7,6 +7,7 @@ return array(
'admin' => 'Pentadbir',
'all_assets' => 'Semua Harta',
'all' => 'Semua',
'archived' => 'Archived',
'asset_models' => 'Model Harta',
'asset' => 'Harta',
'asset_report' => 'Laporan Harta',

Some files were not shown because too many files have changed in this diff Show More