diff --git a/app/Http/Controllers/Assets/AssetsController.php b/app/Http/Controllers/Assets/AssetsController.php index 9feecbd64016bd001f4842c8c69612fbfb788bf9..bf8ca1c93d105c506ae2b15d5cc9d7702a22d14d 100755 --- a/app/Http/Controllers/Assets/AssetsController.php +++ b/app/Http/Controllers/Assets/AssetsController.php @@ -119,7 +119,7 @@ class AssetsController extends Controller $asset = new Asset(); $asset->model()->associate(AssetModel::find($request->input('model_id'))); $asset->name = $request->input('name'); - + // Check for a corresponding serial if (($serials) && (array_key_exists($a, $serials))) { $asset->serial = $serials[$a]; @@ -154,27 +154,26 @@ class AssetsController extends Controller $asset->location_id = $request->input('rtd_location_id', null); } - // Create the image (if one was chosen.) - if ($request->has('image')) { - $asset = $request->handleImages($asset); - } + // Create the image (if one was chosen.) + if ($request->has('image')) { + $asset = $request->handleImages($asset); + } + // Update custom fields in the database. + // Validation for these fields is handled through the AssetRequest form request + $model = AssetModel::find($request->get('model_id')); - // Update custom fields in the database. - // Validation for these fields is handled through the AssetRequest form request - $model = AssetModel::find($request->get('model_id')); - - if (($model) && ($model->fieldset)) { - foreach ($model->fieldset->fields as $field) { - if ($field->field_encrypted=='1') { - if (Gate::allows('admin')) { - $asset->{$field->convertUnicodeDbSlug()} = \Crypt::encrypt($request->input($field->convertUnicodeDbSlug())); + if (($model) && ($model->fieldset)) { + foreach ($model->fieldset->fields as $field) { + if ($field->field_encrypted=='1') { + if (Gate::allows('admin')) { + $asset->{$field->convertUnicodeDbSlug()} = \Crypt::encrypt($request->input($field->convertUnicodeDbSlug())); + } + } else { + $asset->{$field->convertUnicodeDbSlug()} = $request->input($field->convertUnicodeDbSlug()); } - } else { - $asset->{$field->convertUnicodeDbSlug()} = $request->input($field->convertUnicodeDbSlug()); } } - } // Validate the asset before saving if ($asset->isValid() && $asset->save()) { @@ -202,8 +201,6 @@ class AssetsController extends Controller } if ($success) { - $asset->checkOut($target, Auth::user(), date('Y-m-d H:i:s'), '', 'Checked out on asset creation', e($request->get('name')), $location); - } // Redirect to the asset listing page return redirect()->route('hardware.index') ->with('success', trans('admin/hardware/message.create.success')); @@ -317,7 +314,7 @@ class AssetsController extends Controller unlink(public_path().'/uploads/assets/'.$asset->image); $asset->image = ''; } catch (\Exception $e) { - \Log::debug($e); + \Log::info($e); } } @@ -356,18 +353,6 @@ class AssetsController extends Controller if ($asset->save()) { - - // Update any assigned assets with the new location_id from the parent asset - - Asset::where('assigned_type', '\\App\\Models\\Asset')->where('assigned_to', $asset->id) - ->update(['location_id' => $asset->location_id]); - - // Redirect to the new asset page - \Session::flash('success', trans('admin/hardware/message.update.success')); - return response()->json(['redirect_url' => route("hardware.show", $assetId)]); - } - \Input::flash(); - \Session::flash('errors', $asset->getErrors()); return redirect()->route("hardware.show", $assetId) ->with('success', trans('admin/hardware/message.update.success')); } @@ -413,63 +398,22 @@ class AssetsController extends Controller /** - * Searches the assets table by tag, and redirects if it finds one. - * - * This is used by the top search box in Snipe-IT, but as of 4.9.x - * can also be used as a url segment. - * - * https://yoursnipe.com/hardware/bytag/?assetTag=foo - * - * OR - * - * https://yoursnipe.com/hardware/bytag/foo - * - * The latter is useful if you're doing home-grown barcodes, or - * some other automation where you don't always know the internal ID of - * an asset and don't want to query for it. + * Searches the assets table by asset tag, and redirects if it finds one * * @author [A. Gianotto] [<snipe@snipe.net>] - * @param string $tag * @since [v3.0] * @return Redirect */ - public function getAssetByTag(Request $request, $tag = null) + public function getAssetByTag(Request $request) { - $topsearch = ($request->get('topsearch')=="true"); - // We need this part to determine whether a url query parameter has been passed, OR - // whether it's the url fragment we need to look at - $tag = ($request->get('assetTag')) ? $request->get('assetTag') : $tag; - - if (!$asset = Asset::where('asset_tag', '=', $tag)->first()) { + if (!$asset = Asset::where('asset_tag', '=', $request->get('assetTag'))->first()) { return redirect()->route('hardware.index')->with('error', trans('admin/hardware/message.does_not_exist')); } $this->authorize('view', $asset); return redirect()->route('hardware.show', $asset->id)->with('topsearch', $topsearch); } - - - /** - * Searches the assets table by serial, and redirects if it finds one - * - * @author [A. Gianotto] [<snipe@snipe.net>] - * @param string $serial - * @since [v4.9.1] - * @return Redirect - */ - public function getAssetBySerial(Request $request, $serial = null) - { - - $serial = ($request->get('serial')) ? $request->get('serial') : $serial; - if (!$asset = Asset::where('serial', '=', $serial)->first()) { - return redirect()->route('hardware.index')->with('error', trans('admin/hardware/message.does_not_exist')); - } - $this->authorize('view', $asset); - return redirect()->route('hardware.show', $asset->id); - } - - /** * Return a QR code for the asset * @@ -520,7 +464,6 @@ class AssetsController extends Controller $barcode_file = public_path().'/uploads/barcodes/'.str_slug($settings->alt_barcode).'-'.str_slug($asset->asset_tag).'.png'; if (isset($asset->id, $asset->asset_tag)) { - if (file_exists($barcode_file)) { $header = ['Content-type' => 'image/png']; return response()->file($barcode_file, $header); @@ -529,14 +472,14 @@ class AssetsController extends Controller $barcode_width = ($settings->labels_width - $settings->labels_display_sgutter) * 96.000000000001; $barcode = new \Com\Tecnick\Barcode\Barcode(); + $barcode_obj = $barcode->getBarcodeObj($settings->alt_barcode,$asset->asset_tag,($barcode_width < 300 ? $barcode_width : 300),50); - try { + file_put_contents($barcode_file, $barcode_obj->getPngData()); return response($barcode_obj->getPngData())->header('Content-type', 'image/png'); } } } - $barcode_obj = $barcode->getBarcodeObj($settings->alt_barcode,$asset->asset_tag,($barcode_width < 300 ? $barcode_width : 300),50); /** * Return a label for an individual asset. @@ -545,25 +488,21 @@ class AssetsController extends Controller * @param int $assetId * @return View */ - file_put_contents($barcode_file, $barcode_obj->getPngData()); + public function getLabel($assetId = null) { if (isset($assetId)) { $asset = Asset::find($assetId); - return response($barcode_obj->getPngData())->header('Content-type', 'image/png'); - - + $this->authorize('view', $asset); + return view('hardware/labels') + ->with('assets', Asset::find($asset)) ->with('settings', Setting::getSettings()) - \Log::debug('This usually happens because the asset tags are of a format that is not compatible with the selected barcode type.'); - $img = file_get_contents(public_path().'/uploads/barcodes/invalid_barcode.gif'); - return response($img)->header('Content-type', 'image/gif'); - } - - - } + ->with('bulkedit', false) + ->with('count', 0); } } + /** * Returns a view that presents a form to clone an asset. * @@ -844,6 +783,7 @@ class AssetsController extends Controller Storage::putFileAs($path, $upload, $file_name); } + $asset->logAudit($request->input('note'), $request->input('location_id'), $file_name); return redirect()->to("hardware")->with('success', trans('admin/hardware/message.audit.success')); } @@ -862,4 +802,4 @@ class AssetsController extends Controller return view('hardware/requested', compact('requestedItems')); } -} +} \ No newline at end of file diff --git a/resources/views/accessories/checkin.blade.php b/resources/views/accessories/checkin.blade.php index d908fe571dace4b545aabf6f47fae33dd55a43ab..79105b6b6eaa34ed77381e0af746554b94c2e660 100755 --- a/resources/views/accessories/checkin.blade.php +++ b/resources/views/accessories/checkin.blade.php @@ -48,7 +48,7 @@ <div class="form-group {{ $errors->has('note') ? 'error' : '' }}"> <label for="note" class="col-md-2 control-label">{{ trans('admin/hardware/form.notes') }}</label> <div class="col-md-7"> - <textarea class="col-md-6 form-control" id="note" name="note">{{ Input::old('note', $accessory->note) }}</textarea> + <textarea class="col-md-6 form-control" id="note" name="note">{{ old('note', $accessory->note) }}</textarea> {!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/accessories/checkout.blade.php b/resources/views/accessories/checkout.blade.php index 801c79c4152c8f0e920c1aaaa57ef5fecfd363b1..695f31b608e9bec56a9a8fe45dbc9947d44d0614 100755 --- a/resources/views/accessories/checkout.blade.php +++ b/resources/views/accessories/checkout.blade.php @@ -83,7 +83,7 @@ <div class="form-group {{ $errors->has('note') ? 'error' : '' }}"> <label for="note" class="col-md-3 control-label">{{ trans('admin/hardware/form.notes') }}</label> <div class="col-md-7"> - <textarea class="col-md-6 form-control" id="note" name="note">{{ Input::old('note', $accessory->note) }}</textarea> + <textarea class="col-md-6 form-control" id="note" name="note">{{ old('note', $accessory->note) }}</textarea> {!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/account/profile.blade.php b/resources/views/account/profile.blade.php index 6b562e75bca79e24a9e9ec7845023694155eb2df..59c7cb64e3377b24119f9bba67c534a5d43ccf13 100755 --- a/resources/views/account/profile.blade.php +++ b/resources/views/account/profile.blade.php @@ -20,7 +20,7 @@ <label for="first_name" class="col-md-3 control-label">{{ trans('general.first_name') }} </label> <div class="col-md-8 required"> - <input class="form-control" type="text" name="first_name" id="first_name" value="{{ Input::old('first_name', $user->first_name) }}" /> + <input class="form-control" type="text" name="first_name" id="first_name" value="{{ old('first_name', $user->first_name) }}" /> {!! $errors->first('first_name', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -31,7 +31,7 @@ {{ trans('general.last_name') }} </label> <div class="col-md-8 required"> - <input class="form-control" type="text" name="last_name" id="last_name" value="{{ Input::old('last_name', $user->last_name) }}" /> + <input class="form-control" type="text" name="last_name" id="last_name" value="{{ old('last_name', $user->last_name) }}" /> {!! $errors->first('last_name', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -49,7 +49,7 @@ <div class="col-md-9"> @if (!config('app.lock_passwords')) - {!! Form::locales('locale', Input::old('locale', $user->locale), 'select2') !!} + {!! Form::locales('locale', old('locale', $user->locale), 'select2') !!} {!! $errors->first('locale', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} @else <p class="help-block">{{ trans('general.feature_disabled') }}</p> @@ -62,7 +62,7 @@ <div class="form-group {{ $errors->has('phone') ? 'has-error' : '' }}"> <label class="col-md-3 control-label" for="phone">{{ trans('admin/users/table.phone') }}</label> <div class="col-md-4"> - <input class="form-control" type="text" name="phone" id="phone" value="{{ Input::old('phone', $user->phone) }}" /> + <input class="form-control" type="text" name="phone" id="phone" value="{{ old('phone', $user->phone) }}" /> {!! $errors->first('phone', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> @@ -73,7 +73,7 @@ <div class="form-group {{ $errors->has('website') ? ' has-error' : '' }}"> <label for="website" class="col-md-3 control-label">{{ trans('general.website') }}</label> <div class="col-md-8"> - <input class="form-control" type="text" name="website" id="website" value="{{ Input::old('website', $user->website) }}" /> + <input class="form-control" type="text" name="website" id="website" value="{{ old('website', $user->website) }}" /> {!! $errors->first('website', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -84,7 +84,7 @@ <small>(Private)</small> </label> <div class="col-md-8"> - <input class="form-control" type="text" name="gravatar" id="gravatar" value="{{ Input::old('gravatar', $user->gravatar) }}" /> + <input class="form-control" type="text" name="gravatar" id="gravatar" value="{{ old('gravatar', $user->gravatar) }}" /> {!! $errors->first('gravatar', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} <p> <img src="//secure.gravatar.com/avatar/{{ md5(strtolower(trim($user->gravatar))) }}" width="30" height="30" alt="{{ $user->present()->fullName() }} avatar image"> diff --git a/resources/views/asset_maintenances/edit.blade.php b/resources/views/asset_maintenances/edit.blade.php index df82f56d85cab65e9172b641de1cc68fecbf9499..40440e5617b9026b53a60c0068bd7e3905d4088a 100644 --- a/resources/views/asset_maintenances/edit.blade.php +++ b/resources/views/asset_maintenances/edit.blade.php @@ -51,7 +51,7 @@ {{ trans('admin/asset_maintenances/form.title') }} </label> <div class="col-md-7{{ (\App\Helpers\Helper::checkIfRequired($item, 'title')) ? ' required' : '' }}"> - <input class="form-control" type="text" name="title" id="title" value="{{ Input::old('title', $item->title) }}" /> + <input class="form-control" type="text" name="title" id="title" value="{{ old('title', $item->title) }}" /> {!! $errors->first('title', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -62,7 +62,7 @@ <div class="input-group col-md-3{{ (\App\Helpers\Helper::checkIfRequired($item, 'start_date')) ? ' required' : '' }}"> <div class="input-group date" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-autoclose="true"> - <input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="start_date" id="start_date" value="{{ Input::old('start_date', $item->start_date) }}"> + <input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="start_date" id="start_date" value="{{ old('start_date', $item->start_date) }}"> <span class="input-group-addon"><i class="fa fa-calendar" aria-hidden="true"></i></span> </div> {!! $errors->first('start_date', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} @@ -77,7 +77,7 @@ <div class="input-group col-md-3{{ (\App\Helpers\Helper::checkIfRequired($item, 'completion_date')) ? ' required' : '' }}"> <div class="input-group date" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-autoclose="true"> - <input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="completion_date" id="completion_date" value="{{ Input::old('completion_date', $item->completion_date) }}"> + <input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="completion_date" id="completion_date" value="{{ old('completion_date', $item->completion_date) }}"> <span class="input-group-addon"><i class="fa fa-calendar" aria-hidden="true"></i></span> </div> {!! $errors->first('completion_date', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} @@ -107,7 +107,7 @@ {{ $snipeSettings->default_currency }} @endif </span> - <input class="col-md-2 form-control" type="text" name="cost" id="cost" value="{{ Input::old('cost', \App\Helpers\Helper::formatCurrencyOutput($item->cost)) }}" /> + <input class="col-md-2 form-control" type="text" name="cost" id="cost" value="{{ old('cost', \App\Helpers\Helper::formatCurrencyOutput($item->cost)) }}" /> {!! $errors->first('cost', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -117,7 +117,7 @@ <div class="form-group {{ $errors->has('notes') ? ' has-error' : '' }}"> <label for="notes" class="col-md-3 control-label">{{ trans('admin/asset_maintenances/form.notes') }}</label> <div class="col-md-7"> - <textarea class="col-md-6 form-control" id="notes" name="notes">{{ Input::old('notes', $item->notes) }}</textarea> + <textarea class="col-md-6 form-control" id="notes" name="notes">{{ old('notes', $item->notes) }}</textarea> {!! $errors->first('notes', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/categories/edit.blade.php b/resources/views/categories/edit.blade.php index b217a879f83777512f909f2c6c5d59b5b125e3f5..611023cd453627e25861a11bf959c3b1776df892 100755 --- a/resources/views/categories/edit.blade.php +++ b/resources/views/categories/edit.blade.php @@ -14,7 +14,7 @@ <div class="form-group {{ $errors->has('category_type') ? ' has-error' : '' }}"> <label for="category_type" class="col-md-3 control-label">{{ trans('general.type') }}</label> <div class="col-md-7 required"> - {{ Form::select('category_type', $category_types , Input::old('category_type', $item->category_type), array('class'=>'select2', 'style'=>'min-width:350px', 'aria-label'=>'category_type', $item->itemCount() > 0 ? 'disabled' : '')) }} + {{ Form::select('category_type', $category_types , old('category_type', $item->category_type), array('class'=>'select2', 'style'=>'min-width:350px', 'aria-label'=>'category_type', $item->itemCount() > 0 ? 'disabled' : '')) }} {!! $errors->first('category_type', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -23,7 +23,7 @@ <div class="form-group {{ $errors->has('eula_text') ? 'error' : '' }}"> <label for="eula_text" class="col-md-3 control-label">{{ trans('admin/categories/general.eula_text') }}</label> <div class="col-md-7"> - {{ Form::textarea('eula_text', Input::old('eula_text', $item->eula_text), array('class' => 'form-control', 'aria-label'=>'eula_text')) }} + {{ Form::textarea('eula_text', old('eula_text', $item->eula_text), array('class' => 'form-control', 'aria-label'=>'eula_text')) }} <p class="help-block">{!! trans('admin/categories/general.eula_text_help') !!} </p> <p class="help-block">{!! trans('admin/settings/general.eula_markdown') !!} </p> diff --git a/resources/views/components/checkin.blade.php b/resources/views/components/checkin.blade.php index bb7095b7f6101998492d3f6c10ae332e1f4ed6c7..4dfb10410326d433e6ae4894492fb1daf0d949d3 100644 --- a/resources/views/components/checkin.blade.php +++ b/resources/views/components/checkin.blade.php @@ -39,7 +39,7 @@ <div class="form-group {{ $errors->has('checkin_qty') ? 'error' : '' }}"> <label for="checkin_qty" class="col-md-2 control-label">{{ trans('general.qty') }}</label> <div class="col-md-3"> - <input type="text" class="form-control" name="checkin_qty" aria-label="checkin_qty" value="{{ Input::old('assigned_qty', $component_assets->assigned_qty) }}"> + <input type="text" class="form-control" name="checkin_qty" aria-label="checkin_qty" value="{{ old('assigned_qty', $component_assets->assigned_qty) }}"> </div> <div class="col-md-9 col-md-offset-2"> <p class="help-block">Must be {{ $component_assets->assigned_qty }} or less.</p> @@ -52,7 +52,7 @@ <div class="form-group {{ $errors->has('note') ? 'error' : '' }}"> <label for="note" class="col-md-2 control-label">{{ trans('admin/hardware/form.notes') }}</label> <div class="col-md-7"> - <textarea class="col-md-6 form-control" id="note" name="note">{{ Input::old('note', $component->note) }}</textarea> + <textarea class="col-md-6 form-control" id="note" name="note">{{ old('note', $component->note) }}</textarea> {!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/components/checkout.blade.php b/resources/views/components/checkout.blade.php index 67e092eadaa775bc0a0adcdfddb6ab8895efb5b0..d1338f4f8c58142b7e852a9623413c3294ef6086 100644 --- a/resources/views/components/checkout.blade.php +++ b/resources/views/components/checkout.blade.php @@ -42,7 +42,7 @@ <label for="assigned_qty" class="col-md-3 control-label">{{ trans('general.qty') }} <i class='icon-asterisk'></i></label> <div class="col-md-9"> - <input class="form-control" type="text" name="assigned_qty" id="assigned_qty" style="width: 70px;" value="{{ Input::old('assigned_qty') }}" /> + <input class="form-control" type="text" name="assigned_qty" id="assigned_qty" style="width: 70px;" value="{{ old('assigned_qty') }}" /> {!! $errors->first('assigned_qty', '<br><span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/consumables/checkout.blade.php b/resources/views/consumables/checkout.blade.php index 94ec45c85c2ed53e6a3fb302f19300696389ee2e..de96f9c85984224188355e11eb8e76ccafc6d47e 100644 --- a/resources/views/consumables/checkout.blade.php +++ b/resources/views/consumables/checkout.blade.php @@ -70,7 +70,7 @@ <div class="form-group {{ $errors->has('note') ? 'error' : '' }}"> <label for="note" class="col-md-3 control-label">{{ trans('admin/hardware/form.notes') }}</label> <div class="col-md-7"> - <textarea class="col-md-6 form-control" id="note" name="note">{{ Input::old('note', $consumable->note) }}</textarea> + <textarea class="col-md-6 form-control" id="note" name="note">{{ old('note', $consumable->note) }}</textarea> {!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/custom_fields/fields/edit.blade.php b/resources/views/custom_fields/fields/edit.blade.php index 40fc1f69f4c0eeeda57b576dcc935df97b734ec8..e3e4bd1151f7390bf4f4a6f68da441be0794ea01 100644 --- a/resources/views/custom_fields/fields/edit.blade.php +++ b/resources/views/custom_fields/fields/edit.blade.php @@ -39,7 +39,7 @@ {{ trans('admin/custom_fields/general.field_name') }} </label> <div class="col-md-6 required"> - {{ Form::text('name', Input::old('name', $field->name), array('class' => 'form-control', 'aria-label'=>'name')) }} + {{ Form::text('name', old('name', $field->name), array('class' => 'form-control', 'aria-label'=>'name')) }} {!! $errors->first('name', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -51,7 +51,7 @@ </label> <div class="col-md-6 required"> - {!! Form::customfield_elements('element', Input::old('element', $field->element), 'field_element select2 form-control') !!} + {!! Form::customfield_elements('element', old('element', $field->element), 'field_element select2 form-control') !!} {!! $errors->first('element', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> @@ -63,7 +63,7 @@ {{ trans('admin/custom_fields/general.field_values') }} </label> <div class="col-md-6 required"> - {!! Form::textarea('field_values', Input::old('name', $field->field_values), ['style' => 'width: 100%', 'rows' => 4, 'class' => 'form-control', 'aria-label'=>'field_values']) !!} + {!! Form::textarea('field_values', old('name', $field->field_values), ['style' => 'width: 100%', 'rows' => 4, 'class' => 'form-control', 'aria-label'=>'field_values']) !!} {!! $errors->first('field_values', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} <p class="help-block">{{ trans('admin/custom_fields/general.field_values_help') }}</p> </div> @@ -86,7 +86,7 @@ {{ trans('admin/custom_fields/general.field_custom_format') }} </label> <div class="col-md-6 required"> - {{ Form::text('custom_format', Input::old('custom_format', (($field->format!='') && (stripos($field->format,'regex')===0)) ? $field->format : ''), array('class' => 'form-control', 'id' => 'custom_format','aria-label'=>'custom_format', 'placeholder'=>'regex:/^[0-9]{15}$/')) }} + {{ Form::text('custom_format', old('custom_format', (($field->format!='') && (stripos($field->format,'regex')===0)) ? $field->format : ''), array('class' => 'form-control', 'id' => 'custom_format','aria-label'=>'custom_format', 'placeholder'=>'regex:/^[0-9]{15}$/')) }} <p class="help-block">{!! trans('admin/custom_fields/general.field_custom_format_help') !!}</p> {!! $errors->first('custom_format', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} @@ -100,7 +100,7 @@ Help Text </label> <div class="col-md-6"> - {{ Form::text('help_text', Input::old('help_text', $field->help_text), array('class' => 'form-control', 'aria-label'=>'help_text')) }} + {{ Form::text('help_text', old('help_text', $field->help_text), array('class' => 'form-control', 'aria-label'=>'help_text')) }} <p class="help-block">This is optional text that will appear below the form elements while editing an asset to provide context on the field.</p> {!! $errors->first('help_text', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> @@ -110,7 +110,7 @@ <div class="form-group {{ $errors->has('show_in_email') ? ' has-error' : '' }}" id="show_in_email"> <div class="col-md-8 col-md-offset-4"> <label for="show_in_email"> - <input type="checkbox" name="show_in_email" aria-label="show_in_email" value="1" class="minimal"{{ (Input::old('show_in_email') || $field->show_in_email) ? ' checked="checked"' : '' }}> + <input type="checkbox" name="show_in_email" aria-label="show_in_email" value="1" class="minimal"{{ (old('show_in_email') || $field->show_in_email) ? ' checked="checked"' : '' }}> {{ trans('admin/custom_fields/general.show_in_email') }} </label> </div> diff --git a/resources/views/custom_fields/fieldsets/edit.blade.php b/resources/views/custom_fields/fieldsets/edit.blade.php index 562813e3016817c38ae7ae66262d53ca780de195..6c8cc5aa9ce7c0b2e33259bc0dcb06b0866510b5 100644 --- a/resources/views/custom_fields/fieldsets/edit.blade.php +++ b/resources/views/custom_fields/fieldsets/edit.blade.php @@ -29,7 +29,7 @@ <i class='fa fa-asterisk'></i> </label> <div class="col-md-6"> - <input class="form-control" type="text" name="name" id="name" value="{{ Input::old('name') }}" /> + <input class="form-control" type="text" name="name" id="name" value="{{ old('name') }}" /> {!! $errors->first('name', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/custom_fields/fieldsets/view.blade.php b/resources/views/custom_fields/fieldsets/view.blade.php index f201d90deae0ab35fc90041d71238d5003b600dc..21ba1b4a015b3c825708bf8a81a9e38d3c73d50d 100644 --- a/resources/views/custom_fields/fieldsets/view.blade.php +++ b/resources/views/custom_fields/fieldsets/view.blade.php @@ -86,7 +86,7 @@ <div class="form-group col-md-2" style="vertical-align: middle;"> <label for="required"> - {{ Form::checkbox('required', 'on', Input::old('required'), array('class' => 'minimal', 'aria-label'=>'required')) }} + {{ Form::checkbox('required', 'on', old('required'), array('class' => 'minimal', 'aria-label'=>'required')) }} {{ trans('admin/custom_fields/general.required') }} </label> diff --git a/resources/views/groups/edit.blade.php b/resources/views/groups/edit.blade.php index 78849e8aedab13cccb5337adb8ca2704ce7e84d4..2ece7f61c5a5d1877969e1626b7022ba05c878e4 100755 --- a/resources/views/groups/edit.blade.php +++ b/resources/views/groups/edit.blade.php @@ -60,7 +60,7 @@ <div class="form-group {{ $errors->has('name') ? ' has-error' : '' }}"> <label for="name" class="col-md-3 control-label">{{ trans('admin/groups/titles.group_name') }}</label> <div class="col-md-6 required"> - <input class="form-control" type="text" name="name" id="name" value="{{ Input::old('name', $group->name) }}" /> + <input class="form-control" type="text" name="name" id="name" value="{{ old('name', $group->name) }}" /> {!! $errors->first('name', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/hardware/audit.blade.php b/resources/views/hardware/audit.blade.php index dd80eef4ac44b7e6afa258bf9568bb56443f94f9..6823fcd8d66c6ca6617fe045e85d88484a4aa1de 100644 --- a/resources/views/hardware/audit.blade.php +++ b/resources/views/hardware/audit.blade.php @@ -73,7 +73,7 @@ {{ Form::label('name', trans('general.next_audit_date'), array('class' => 'col-md-3 control-label')) }} <div class="col-md-9"> <div class="input-group date col-md-5" data-provide="datepicker" data-date-format="yyyy-mm-dd"> - <input type="text" class="form-control" placeholder="{{ trans('general.next_audit_date') }}" name="next_audit_date" id="next_audit_date" value="{{ Input::old('next_audit_date', $next_audit_date) }}"> + <input type="text" class="form-control" placeholder="{{ trans('general.next_audit_date') }}" name="next_audit_date" id="next_audit_date" value="{{ old('next_audit_date', $next_audit_date) }}"> <span class="input-group-addon"><i class="fa fa-calendar" aria-hidden="true"></i></span> </div> {!! $errors->first('next_audit_date', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} @@ -85,7 +85,7 @@ <div class="form-group {{ $errors->has('note') ? 'error' : '' }}"> {{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }} <div class="col-md-8"> - <textarea class="col-md-6 form-control" id="note" name="note">{{ Input::old('note', $asset->note) }}</textarea> + <textarea class="col-md-6 form-control" id="note" name="note">{{ old('note', $asset->note) }}</textarea> {!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/hardware/bulk-checkout.blade.php b/resources/views/hardware/bulk-checkout.blade.php index e18823f3be94c5119e7894c374d19b2decbe3bd2..9cf1d9d11a887836ef2d9c63373e4a27061280bf 100644 --- a/resources/views/hardware/bulk-checkout.blade.php +++ b/resources/views/hardware/bulk-checkout.blade.php @@ -39,7 +39,7 @@ {{ Form::label('checkout_at', trans('admin/hardware/form.checkout_date'), array('class' => 'col-md-3 control-label')) }} <div class="col-md-8"> <div class="input-group date col-md-5" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-date-end-date="0d"> - <input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="checkout_at" id="checkout_at" value="{{ Input::old('checkout_at') }}"> + <input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="checkout_at" id="checkout_at" value="{{ old('checkout_at') }}"> <span class="input-group-addon"><i class="fa fa-calendar" aria-hidden="true"></i></span> </div> {!! $errors->first('checkout_at', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} @@ -51,7 +51,7 @@ {{ Form::label('expected_checkin', trans('admin/hardware/form.expected_checkin'), array('class' => 'col-md-3 control-label')) }} <div class="col-md-8"> <div class="input-group date col-md-5" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-date-start-date="0d"> - <input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="expected_checkin" id="expected_checkin" value="{{ Input::old('expected_checkin') }}"> + <input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="expected_checkin" id="expected_checkin" value="{{ old('expected_checkin') }}"> <span class="input-group-addon"><i class="fa fa-calendar" aria-hidden="true"></i></span> </div> {!! $errors->first('expected_checkin', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} @@ -63,7 +63,7 @@ <div class="form-group {{ $errors->has('note') ? 'error' : '' }}"> {{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }} <div class="col-md-8"> - <textarea class="col-md-6 form-control" id="note" name="note">{{ Input::old('note') }}</textarea> + <textarea class="col-md-6 form-control" id="note" name="note">{{ old('note') }}</textarea> {!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/hardware/bulk.blade.php b/resources/views/hardware/bulk.blade.php index 30804be0ba7ab9efcd1c32f1a21aafa61e59bf93..857720dc64321b55fc6ce2bfb479819114d18a0d 100755 --- a/resources/views/hardware/bulk.blade.php +++ b/resources/views/hardware/bulk.blade.php @@ -32,7 +32,7 @@ <div class="form-group {{ $errors->has('purchase_date') ? ' has-error' : '' }}"> <label for="purchase_date" class="col-md-3 control-label">{{ trans('admin/hardware/form.date') }}</label> <div class="input-group col-md-3"> - <input type="date" class="datepicker form-control" data-date-format="yyyy-mm-dd" placeholder="Select Date" name="purchase_date" id="purchase_date" value="{{ Input::old('purchase_date') }}" arial-label="purchase_date"> + <input type="date" class="datepicker form-control" data-date-format="yyyy-mm-dd" placeholder="Select Date" name="purchase_date" id="purchase_date" value="{{ old('purchase_date') }}" arial-label="purchase_date"> <span class="input-group-addon"><i class="fa fa-calendar" aria-hidden="true"></i></span> {!! $errors->first('purchase_date', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> @@ -44,7 +44,7 @@ {{ trans('admin/hardware/form.status') }} </label> <div class="col-md-7"> - {{ Form::select('status_id', $statuslabel_list , Input::old('status_id'), array('class'=>'select2', 'style'=>'width:350px', 'aria-label'=>'status_id')) }} + {{ Form::select('status_id', $statuslabel_list , old('status_id'), array('class'=>'select2', 'style'=>'width:350px', 'aria-label'=>'status_id')) }} {!! $errors->first('status_id', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -60,12 +60,12 @@ <div class="col-md-9"> <label for="update_real_loc"> - {{ Form::radio('update_real_loc', '1', Input::old('update_real_loc'), ['class'=>'minimal', 'aria-label'=>'update_real_loc']) }} + {{ Form::radio('update_real_loc', '1', old('update_real_loc'), ['class'=>'minimal', 'aria-label'=>'update_real_loc']) }} Update default location AND actual location </label> <br> <label for="update_default_loc"> - {{ Form::radio('update_real_loc', '0', Input::old('update_real_loc'), ['class'=>'minimal', 'aria-label'=>'update_default_loc']) }} + {{ Form::radio('update_real_loc', '0', old('update_real_loc'), ['class'=>'minimal', 'aria-label'=>'update_default_loc']) }} Update only default location </label> @@ -81,7 +81,7 @@ </label> <div class="input-group col-md-3"> <span class="input-group-addon">{{ $snipeSettings->default_currency }}</span> - <input type="text" class="form-control" maxlength="10" placeholder="{{ trans('admin/hardware/form.cost') }}" name="purchase_cost" id="purchase_cost" value="{{ Input::old('purchase_cost') }}"> + <input type="text" class="form-control" maxlength="10" placeholder="{{ trans('admin/hardware/form.cost') }}" name="purchase_cost" id="purchase_cost" value="{{ old('purchase_cost') }}"> {!! $errors->first('purchase_cost', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -97,7 +97,7 @@ {{ trans('admin/hardware/form.order') }} </label> <div class="col-md-7"> - <input class="form-control" type="text" maxlength="20" name="order_number" id="order_number" value="{{ Input::old('order_number') }}" /> + <input class="form-control" type="text" maxlength="20" name="order_number" id="order_number" value="{{ old('order_number') }}" /> {!! $errors->first('order_number', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -109,7 +109,7 @@ </label> <div class="col-md-3"> <div class="input-group"> - <input class="col-md-3 form-control" maxlength="4" type="text" name="warranty_months" id="warranty_months" value="{{ Input::old('warranty_months') }}" /> + <input class="col-md-3 form-control" maxlength="4" type="text" name="warranty_months" id="warranty_months" value="{{ old('warranty_months') }}" /> <span class="input-group-addon">{{ trans('admin/hardware/form.months') }}</span> {!! $errors->first('warranty_months', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> diff --git a/resources/views/hardware/checkin.blade.php b/resources/views/hardware/checkin.blade.php index 488967b5b5a4e938492c2e0ca419c2d0ee03194b..1223996b8436e27b08c1b0806a6eb110d3eecaed 100755 --- a/resources/views/hardware/checkin.blade.php +++ b/resources/views/hardware/checkin.blade.php @@ -92,7 +92,7 @@ <div class="col-md-8"> <div class="input-group col-md-5 required"> <div class="input-group date" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-autoclose="true"> - <input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="checkin_at" id="checkin_at" value="{{ Input::old('checkin_at', date('Y-m-d')) }}"> + <input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="checkin_at" id="checkin_at" value="{{ old('checkin_at', date('Y-m-d')) }}"> <span class="input-group-addon"><i class="fa fa-calendar" aria-hidden="true"></i></span> </div> {!! $errors->first('checkin_at', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} @@ -108,7 +108,7 @@ <div class="col-md-8"> <textarea class="col-md-6 form-control" id="note" - name="note">{{ Input::old('note', $asset->note) }}</textarea> + name="note">{{ old('note', $asset->note) }}</textarea> {!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/hardware/checkout.blade.php b/resources/views/hardware/checkout.blade.php index ddd3e57b403476bee8a022c8c550480df1d5befc..c65c7a1099f7706b9c1af10d38adb4f340e48028 100755 --- a/resources/views/hardware/checkout.blade.php +++ b/resources/views/hardware/checkout.blade.php @@ -47,7 +47,7 @@ <div class="form-group {{ $errors->has('name') ? 'error' : '' }}"> {{ Form::label('name', trans('admin/hardware/form.name'), array('class' => 'col-md-3 control-label')) }} <div class="col-md-8"> - <input class="form-control" type="text" name="name" id="name" value="{{ Input::old('name', $asset->name) }}" tabindex="1"> + <input class="form-control" type="text" name="name" id="name" value="{{ old('name', $asset->name) }}" tabindex="1"> {!! $errors->first('name', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -90,7 +90,7 @@ {{ Form::label('checkout_at', trans('admin/hardware/form.checkout_date'), array('class' => 'col-md-3 control-label')) }} <div class="col-md-8"> <div class="input-group date col-md-7" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-date-end-date="0d"> - <input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="checkout_at" id="checkout_at" value="{{ Input::old('checkout_at') }}"> + <input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="checkout_at" id="checkout_at" value="{{ old('checkout_at') }}"> <span class="input-group-addon"><i class="fa fa-calendar" aria-hidden="true"></i></span> </div> {!! $errors->first('checkout_at', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} @@ -102,7 +102,7 @@ {{ Form::label('expected_checkin', trans('admin/hardware/form.expected_checkin'), array('class' => 'col-md-3 control-label')) }} <div class="col-md-8"> <div class="input-group date col-md-7" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-date-start-date="0d"> - <input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="expected_checkin" id="expected_checkin" value="{{ Input::old('expected_checkin') }}"> + <input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="expected_checkin" id="expected_checkin" value="{{ old('expected_checkin') }}"> <span class="input-group-addon"><i class="fa fa-calendar" aria-hidden="true"></i></span> </div> {!! $errors->first('expected_checkin', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} @@ -113,7 +113,7 @@ <div class="form-group {{ $errors->has('note') ? 'error' : '' }}"> {{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }} <div class="col-md-8"> - <textarea class="col-md-6 form-control" id="note" name="note">{{ Input::old('note', $asset->note) }}</textarea> + <textarea class="col-md-6 form-control" id="note" name="note">{{ old('note', $asset->note) }}</textarea> {!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/hardware/quickscan.blade.php b/resources/views/hardware/quickscan.blade.php index 4a32c5702263ff85c252d3f53210c276229f0b9f..1227c2dd791ce0a25d0da9be353268b323f02310 100644 --- a/resources/views/hardware/quickscan.blade.php +++ b/resources/views/hardware/quickscan.blade.php @@ -61,7 +61,7 @@ {{ Form::label('next_audit_date', trans('general.next_audit_date'), array('class' => 'col-md-3 control-label')) }} <div class="col-md-9"> <div class="input-group date col-md-5" data-provide="datepicker" data-date-format="yyyy-mm-dd"> - <input type="text" class="form-control" placeholder="{{ trans('general.next_audit_date') }}" name="next_audit_date" id="next_audit_date" value="{{ Input::old('next_audit_date', $next_audit_date) }}"> + <input type="text" class="form-control" placeholder="{{ trans('general.next_audit_date') }}" name="next_audit_date" id="next_audit_date" value="{{ old('next_audit_date', $next_audit_date) }}"> <span class="input-group-addon"><i class="fa fa-calendar" aria-hidden="true"></i></span> </div> {!! $errors->first('next_audit_date', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} @@ -73,7 +73,7 @@ <div class="form-group {{ $errors->has('note') ? 'error' : '' }}"> {{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }} <div class="col-md-8"> - <textarea class="col-md-6 form-control" id="note" name="note">{{ Input::old('note') }}</textarea> + <textarea class="col-md-6 form-control" id="note" name="note">{{ old('note') }}</textarea> {!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/licenses/checkin.blade.php b/resources/views/licenses/checkin.blade.php index fb6a395073ad41d4c84b0387e7decaad6295ae5d..d0fac872c505a9951a172c11003967313cbeafd4 100755 --- a/resources/views/licenses/checkin.blade.php +++ b/resources/views/licenses/checkin.blade.php @@ -52,7 +52,7 @@ <div class="form-group {{ $errors->has('note') ? 'error' : '' }}"> <label for="note" class="col-md-2 control-label">{{ trans('admin/hardware/form.notes') }}</label> <div class="col-md-7"> - <textarea class="col-md-6 form-control" id="note" name="note">{{ Input::old('note', $licenseSeat->note) }}</textarea> + <textarea class="col-md-6 form-control" id="note" name="note">{{ old('note', $licenseSeat->note) }}</textarea> {!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/licenses/checkout.blade.php b/resources/views/licenses/checkout.blade.php index b801465286004d5e1af42c5e2eda122a753ce69b..85f8ebaddc67e51ee83fd168578855612c1cbe28 100755 --- a/resources/views/licenses/checkout.blade.php +++ b/resources/views/licenses/checkout.blade.php @@ -58,7 +58,7 @@ <div class="form-group {{ $errors->has('note') ? 'error' : '' }}"> <label for="note" class="col-md-3 control-label">{{ trans('admin/hardware/form.notes') }}</label> <div class="col-md-7"> - <textarea class="col-md-6 form-control" id="note" name="note">{{ Input::old('note') }}</textarea> + <textarea class="col-md-6 form-control" id="note" name="note">{{ old('note') }}</textarea> {!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/licenses/edit.blade.php b/resources/views/licenses/edit.blade.php index 3aeef9a4479a4acc5c8143a498c107070e26d6a4..36dd4e457d2195f671344c00f2626e1576252962 100755 --- a/resources/views/licenses/edit.blade.php +++ b/resources/views/licenses/edit.blade.php @@ -16,7 +16,7 @@ <div class="form-group {{ $errors->has('serial') ? ' has-error' : '' }}"> <label for="serial" class="col-md-3 control-label">{{ trans('admin/licenses/form.license_key') }}</label> <div class="col-md-7{{ (\App\Helpers\Helper::checkIfRequired($item, 'serial')) ? ' required' : '' }}"> - <textarea class="form-control" type="text" name="serial" id="serial">{{ Input::old('serial', $item->serial) }}</textarea> + <textarea class="form-control" type="text" name="serial" id="serial">{{ old('serial', $item->serial) }}</textarea> {!! $errors->first('serial', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -40,7 +40,7 @@ <div class="form-group {{ $errors->has('license_name') ? ' has-error' : '' }}"> <label for="license_name" class="col-md-3 control-label">{{ trans('admin/licenses/form.to_name') }}</label> <div class="col-md-7"> - <input class="form-control" type="text" name="license_name" id="license_name" value="{{ Input::old('license_name', $item->license_name) }}" /> + <input class="form-control" type="text" name="license_name" id="license_name" value="{{ old('license_name', $item->license_name) }}" /> {!! $errors->first('license_name', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -49,7 +49,7 @@ <div class="form-group {{ $errors->has('license_email') ? ' has-error' : '' }}"> <label for="license_email" class="col-md-3 control-label">{{ trans('admin/licenses/form.to_email') }}</label> <div class="col-md-7"> - <input class="form-control" type="text" name="license_email" id="license_email" value="{{ Input::old('license_email', $item->license_email) }}" /> + <input class="form-control" type="text" name="license_email" id="license_email" value="{{ old('license_email', $item->license_email) }}" /> {!! $errors->first('license_email', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -58,7 +58,7 @@ <div class="form-group {{ $errors->has('reassignable') ? ' has-error' : '' }}"> <label for="reassignable" class="col-md-3 control-label">{{ trans('admin/licenses/form.reassignable') }}</label> <div class="col-md-7 input-group"> - {{ Form::Checkbox('reassignable', '1', Input::old('reassignable', $item->id ? $item->reassignable : '1'),array('class' => 'minimal', 'aria-label'=>'reassignable')) }} + {{ Form::Checkbox('reassignable', '1', old('reassignable', $item->id ? $item->reassignable : '1'),array('class' => 'minimal', 'aria-label'=>'reassignable')) }} {{ trans('general.yes') }} </div> </div> @@ -75,7 +75,7 @@ <div class="input-group col-md-3"> <div class="input-group date" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-autoclose="true"> - <input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="expiration_date" id="expiration_date" value="{{ Input::old('expiration_date', $item->expiration_date) }}"> + <input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="expiration_date" id="expiration_date" value="{{ old('expiration_date', $item->expiration_date) }}"> <span class="input-group-addon"><i class="fa fa-calendar" aria-hidden="true"></i></span> </div> {!! $errors->first('expiration_date', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} @@ -89,7 +89,7 @@ <div class="input-group col-md-3"> <div class="input-group date" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-autoclose="true"> - <input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="termination_date" id="termination_date" value="{{ Input::old('termination_date', $item->termination_date) }}"> + <input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="termination_date" id="termination_date" value="{{ old('termination_date', $item->termination_date) }}"> <span class="input-group-addon"><i class="fa fa-calendar" aria-hidden="true"></i></span> </div> {!! $errors->first('termination_date', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} @@ -101,7 +101,7 @@ <div class="form-group {{ $errors->has('purchase_order') ? ' has-error' : '' }}"> <label for="purchase_order" class="col-md-3 control-label">{{ trans('admin/licenses/form.purchase_order') }}</label> <div class="col-md-3"> - <input class="form-control" type="text" name="purchase_order" id="purchase_order" value="{{ Input::old('purchase_order', $item->purchase_order) }}" /> + <input class="form-control" type="text" name="purchase_order" id="purchase_order" value="{{ old('purchase_order', $item->purchase_order) }}" /> {!! $errors->first('purchase_order', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -112,7 +112,7 @@ <div class="form-group {{ $errors->has('maintained') ? ' has-error' : '' }}"> <label for="maintained" class="col-md-3 control-label">{{ trans('admin/licenses/form.maintained') }}</label> <div class="checkbox col-md-7"> - {{ Form::Checkbox('maintained', '1', Input::old('maintained', $item->maintained),array('class' => 'minimal', 'aria-label'=>'maintained')) }} + {{ Form::Checkbox('maintained', '1', old('maintained', $item->maintained),array('class' => 'minimal', 'aria-label'=>'maintained')) }} {{ trans('general.yes') }} </div> </div> diff --git a/resources/views/locations/edit.blade.php b/resources/views/locations/edit.blade.php index e0e56ad17190243e9dff77cf82b539bcfe9a1ba5..53787c93bcc473b3cbf96dc645d04dea93105e4a 100755 --- a/resources/views/locations/edit.blade.php +++ b/resources/views/locations/edit.blade.php @@ -23,7 +23,7 @@ {{ trans('admin/locations/table.currency') }} </label> <div class="col-md-9{{ (\App\Helpers\Helper::checkIfRequired($item, 'currency')) ? ' required' : '' }}"> - {{ Form::text('currency', Input::old('currency', $item->currency), array('class' => 'form-control','placeholder' => 'USD', 'maxlength'=>'3', 'style'=>'width: 60px;', 'aria-label'=>'currency')) }} + {{ Form::text('currency', old('currency', $item->currency), array('class' => 'form-control','placeholder' => 'USD', 'maxlength'=>'3', 'style'=>'width: 60px;', 'aria-label'=>'currency')) }} {!! $errors->first('currency', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> @@ -37,7 +37,7 @@ {{ trans('admin/locations/table.ldap_ou') }} </label> <div class="col-md-7{{ (\App\Helpers\Helper::checkIfRequired($item, 'ldap_ou')) ? ' required' : '' }}"> - {{ Form::text('ldap_ou', Input::old('ldap_ou', $item->ldap_ou), array('class' => 'form-control')) }} + {{ Form::text('ldap_ou', old('ldap_ou', $item->ldap_ou), array('class' => 'form-control')) }} {!! $errors->first('ldap_ou', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> @@ -49,7 +49,7 @@ <label class="col-md-3 control-label" for="image_delete">{{ trans('general.image_delete') }}</label> <div class="col-md-9"> <label for="image_delete"> - {{ Form::checkbox('image_delete', '1', Input::old('image_delete'), array('class' => 'minimal', 'aria-label'=>'required')) }} + {{ Form::checkbox('image_delete', '1', old('image_delete'), array('class' => 'minimal', 'aria-label'=>'required')) }} </label> <br> <img src="{{ url('/') }}/uploads/locations/{{ $item->image }}" alt="Image for {{ $item->name }}"> diff --git a/resources/views/manufacturers/edit.blade.php b/resources/views/manufacturers/edit.blade.php index c62345c8ba0ffa8ca2bc499936048b64657a4635..154b9fbed05e0c831dbefd232b81d8168624d8ba 100755 --- a/resources/views/manufacturers/edit.blade.php +++ b/resources/views/manufacturers/edit.blade.php @@ -15,7 +15,7 @@ <label for="url" class="col-md-3 control-label">{{ trans('admin/manufacturers/table.url') }} </label> <div class="col-md-6"> - <input class="form-control" type="text" name="url" id="url" value="{{ Input::old('url', $item->url) }}" /> + <input class="form-control" type="text" name="url" id="url" value="{{ old('url', $item->url) }}" /> {!! $errors->first('url', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -25,7 +25,7 @@ <label for="support_url" class="col-md-3 control-label">{{ trans('admin/manufacturers/table.support_url') }} </label> <div class="col-md-6"> - <input class="form-control" type="text" name="support_url" id="support_url" value="{{ Input::old('support_url', $item->support_url) }}" /> + <input class="form-control" type="text" name="support_url" id="support_url" value="{{ old('support_url', $item->support_url) }}" /> {!! $errors->first('support_url', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -35,7 +35,7 @@ <label for="support_phone" class="col-md-3 control-label">{{ trans('admin/manufacturers/table.support_phone') }} </label> <div class="col-md-6"> - <input class="form-control" type="text" name="support_phone" id="support_phone" value="{{ Input::old('support_phone', $item->support_phone) }}" /> + <input class="form-control" type="text" name="support_phone" id="support_phone" value="{{ old('support_phone', $item->support_phone) }}" /> {!! $errors->first('support_phone', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -45,7 +45,7 @@ <label for="support_email" class="col-md-3 control-label">{{ trans('admin/manufacturers/table.support_email') }} </label> <div class="col-md-6"> - <input class="form-control" type="email" name="support_email" id="support_email" value="{{ Input::old('support_email', $item->support_email) }}" /> + <input class="form-control" type="email" name="support_email" id="support_email" value="{{ old('support_email', $item->support_email) }}" /> {!! $errors->first('support_email', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -56,7 +56,7 @@ <label class="col-md-3 control-label" for="image_delete">{{ trans('general.image_delete') }}</label> <div class="col-md-5"> <label for="image_delete"> - {{ Form::checkbox('image_delete', '1', Input::old('image_delete'), array('class' => 'minimal', 'aria-label'=>'required')) }} + {{ Form::checkbox('image_delete', '1', old('image_delete'), array('class' => 'minimal', 'aria-label'=>'required')) }} </label> <br> <img src="{{ url('/') }}/uploads/manufacturers/{{ $item->image }}" alt="Image for {{ $item->name }}"> diff --git a/resources/views/modals/upload-file.blade.php b/resources/views/modals/upload-file.blade.php index efb3d018b8d92330c9ec70924798e7f07b190cf6..8d856465252d6e5b729a2698aac1677d3c0bff41 100644 --- a/resources/views/modals/upload-file.blade.php +++ b/resources/views/modals/upload-file.blade.php @@ -31,7 +31,7 @@ </div> <div class="col-md-12"> - {{ Form::textarea('notes', Input::old('notes', Input::old('notes')), ['class' => 'form-control','placeholder' => 'Notes (Optional)', 'rows'=>3, 'aria-label' => 'file']) }} + {{ Form::textarea('notes', old('notes', old('notes')), ['class' => 'form-control','placeholder' => 'Notes (Optional)', 'rows'=>3, 'aria-label' => 'file']) }} </div> </div> diff --git a/resources/views/models/bulk-edit.blade.php b/resources/views/models/bulk-edit.blade.php index a636a6accf9fc20904e1eb2dd0e83ea57b9929cb..c4cfb800e1355072b2aa40dc1c1e129d26ff2624 100644 --- a/resources/views/models/bulk-edit.blade.php +++ b/resources/views/models/bulk-edit.blade.php @@ -39,7 +39,7 @@ {{ trans('admin/models/general.fieldset') }} </label> <div class="col-md-7"> - {{ Form::select('fieldset_id', $fieldset_list , Input::old('fieldset_id', 'NC'), array('class'=>'select2 js-fieldset-field', 'style'=>'width:350px')) }} + {{ Form::select('fieldset_id', $fieldset_list , old('fieldset_id', 'NC'), array('class'=>'select2 js-fieldset-field', 'style'=>'width:350px')) }} {!! $errors->first('fieldset_id', '<span class="alert-msg" aria-hidden="true"><br><i class="fa fa-times"></i> :message</span>') !!} </div> </div> @@ -51,7 +51,7 @@ {{ trans('general.depreciation') }} </label> <div class="col-md-7"> - {{ Form::select('depreciation_id', $depreciation_list , Input::old('depreciation_id', 'NC'), array('class'=>'select2', 'style'=>'width:350px')) }} + {{ Form::select('depreciation_id', $depreciation_list , old('depreciation_id', 'NC'), array('class'=>'select2', 'style'=>'width:350px')) }} {!! $errors->first('depreciation_id', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/models/custom_fields_form.blade.php b/resources/views/models/custom_fields_form.blade.php index b365389190d82be38be5f3c1fba07941d244cfac..638cf62ced1d224060f5e7eff803c1a9188ee108 100644 --- a/resources/views/models/custom_fields_form.blade.php +++ b/resources/views/models/custom_fields_form.blade.php @@ -36,7 +36,7 @@ <div class="input-group col-md-4" style="padding-left: 0px;"> <div class="input-group date" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-autoclose="true"> - <input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="{{ $field->db_column_name() }}" id="{{ $field->db_column_name() }}" value="{{ Input::old($field->db_column_name(),(isset($item) ? \App\Helpers\Helper::gracefulDecrypt($field, $item->{$field->db_column_name()}) : "")) }}"> + <input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="{{ $field->db_column_name() }}" id="{{ $field->db_column_name() }}" value="{{ old($field->db_column_name(),(isset($item) ? \App\Helpers\Helper::gracefulDecrypt($field, $item->{$field->db_column_name()}) : "")) }}"> <span class="input-group-addon"><i class="fa fa-calendar" aria-hidden="true"></i></span> </div> </div> diff --git a/resources/views/models/edit.blade.php b/resources/views/models/edit.blade.php index c62e0c49f18d0c0d0c73abd3d4645ea9ee5e034d..810282ef9dc235c21d0faa795c7d5e2adbdc6372 100755 --- a/resources/views/models/edit.blade.php +++ b/resources/views/models/edit.blade.php @@ -38,7 +38,7 @@ <div class="form-group {{ $errors->has('custom_fieldset') ? ' has-error' : '' }}"> <label for="custom_fieldset" class="col-md-3 control-label">{{ trans('admin/models/general.fieldset') }}</label> <div class="col-md-7"> - {{ Form::select('custom_fieldset', \App\Helpers\Helper::customFieldsetList(),Input::old('custom_fieldset', $item->fieldset_id), array('class'=>'select2 js-fieldset-field', 'style'=>'width:350px', 'aria-label'=>'custom_fieldset')) }} + {{ Form::select('custom_fieldset', \App\Helpers\Helper::customFieldsetList(),old('custom_fieldset', $item->fieldset_id), array('class'=>'select2 js-fieldset-field', 'style'=>'width:350px', 'aria-label'=>'custom_fieldset')) }} {!! $errors->first('custom_fieldset', '<span class="alert-msg" aria-hidden="true"><br><i class="fa fa-times"></i> :message</span>') !!} <label class="m-l-xs"> {{ Form::checkbox('add_default_values', 1, Request::old('add_default_values'), ['class' => 'js-default-values-toggler']) }} @@ -63,7 +63,7 @@ <label class="col-md-3 control-label" for="image_delete">{{ trans('general.image_delete') }}</label> <div class="col-md-5"> <label for="image_delete"> - {{ Form::checkbox('image_delete', '1', Input::old('image_delete'), array('class' => 'minimal', 'aria-label'=>'required')) }} + {{ Form::checkbox('image_delete', '1', old('image_delete'), array('class' => 'minimal', 'aria-label'=>'required')) }} </label> <br> <img src="{{ url('/') }}/uploads/models/{{ $item->image }}" alt="Image for {{ $item->name }}"> diff --git a/resources/views/partials/forms/edit/address.blade.php b/resources/views/partials/forms/edit/address.blade.php index b7534b46a7b717fbe2525d9731eab632c209988f..c027d4edd75583b9135c8b638d60919330a96696 100644 --- a/resources/views/partials/forms/edit/address.blade.php +++ b/resources/views/partials/forms/edit/address.blade.php @@ -1,7 +1,7 @@ <div class="form-group {{ $errors->has('address') ? ' has-error' : '' }}"> {{ Form::label('address', trans('general.address'), array('class' => 'col-md-3 control-label')) }} <div class="col-md-7"> - {{Form::text('address', Input::old('address', $item->address), array('class' => 'form-control', 'aria-label'=>'address')) }} + {{Form::text('address', old('address', $item->address), array('class' => 'form-control', 'aria-label'=>'address')) }} {!! $errors->first('address', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -9,7 +9,7 @@ <div class="form-group {{ $errors->has('address2') ? ' has-error' : '' }}"> <label class="sr-only " for="address2">{{ trans('general.address') }}</label> <div class="col-md-7 col-md-offset-3"> - {{Form::text('address2', Input::old('address2', $item->address2), array('class' => 'form-control', 'aria-label'=>'address2')) }} + {{Form::text('address2', old('address2', $item->address2), array('class' => 'form-control', 'aria-label'=>'address2')) }} {!! $errors->first('address2', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -17,7 +17,7 @@ <div class="form-group {{ $errors->has('city') ? ' has-error' : '' }}"> {{ Form::label('city', trans('general.city'), array('class' => 'col-md-3 control-label')) }} <div class="col-md-7"> - {{Form::text('city', Input::old('city', $item->city), array('class' => 'form-control', 'aria-label'=>'city')) }} + {{Form::text('city', old('city', $item->city), array('class' => 'form-control', 'aria-label'=>'city')) }} {!! $errors->first('city', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -25,7 +25,7 @@ <div class="form-group {{ $errors->has('state') ? ' has-error' : '' }}"> {{ Form::label('state', trans('general.state'), array('class' => 'col-md-3 control-label')) }} <div class="col-md-7"> - {{Form::text('state', Input::old('state', $item->state), array('class' => 'form-control', 'aria-label'=>'state')) }} + {{Form::text('state', old('state', $item->state), array('class' => 'form-control', 'aria-label'=>'state')) }} {!! $errors->first('state', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} {{Form::text('state', Request::old('state', $item->state), array('class' => 'form-control')) }} {!! $errors->first('state', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!} @@ -35,7 +35,7 @@ <div class="form-group {{ $errors->has('country') ? ' has-error' : '' }}"> {{ Form::label('country', trans('general.country'), array('class' => 'col-md-3 control-label')) }} <div class="col-md-5"> - {!! Form::countries('country', Input::old('country', $item->country), 'select2') !!} + {!! Form::countries('country', old('country', $item->country), 'select2') !!} {!! $errors->first('country', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -43,7 +43,7 @@ <div class="form-group {{ $errors->has('zip') ? ' has-error' : '' }}"> {{ Form::label('zip', trans('general.zip'), array('class' => 'col-md-3 control-label')) }} <div class="col-md-7"> - {{Form::text('zip', Input::old('zip', $item->zip), array('class' => 'form-control')) }} + {{Form::text('zip', old('zip', $item->zip), array('class' => 'form-control')) }} {!! $errors->first('zip', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/partials/forms/edit/asset-select.blade.php b/resources/views/partials/forms/edit/asset-select.blade.php index cccb211f64d181c4cdbd349465adbc3de2ce47d2..91b53b6ce612b844e4286d00b677a34da83d7281 100644 --- a/resources/views/partials/forms/edit/asset-select.blade.php +++ b/resources/views/partials/forms/edit/asset-select.blade.php @@ -4,7 +4,7 @@ <div class="col-md-7{{ ((isset($required) && ($required =='true'))) ? ' required' : '' }}"> <select class="js-data-ajax select2" data-endpoint="hardware" data-placeholder="{{ trans('general.select_asset') }}" aria-label="{{ $fieldname }}" name="{{ $fieldname }}" style="width: 100%" id="{{ (isset($select_id)) ? $select_id : 'assigned_asset_select' }}"{{ (isset($multiple)) ? ' multiple' : '' }}{!! (!empty($asset_status_type)) ? ' data-asset-status-type="' . $asset_status_type . '"' : '' !!}> - @if ((!isset($unselect)) && ($asset_id = Input::old($fieldname, (isset($asset) ? $asset->id : (isset($item) ? $item->{$fieldname} : ''))))) + @if ((!isset($unselect)) && ($asset_id = old($fieldname, (isset($asset) ? $asset->id : (isset($item) ? $item->{$fieldname} : ''))))) <option value="{{ $asset_id }}" selected="selected" role="option" aria-selected="true" role="option"> {{ (\App\Models\Asset::find($asset_id)) ? \App\Models\Asset::find($asset_id)->present()->fullName : '' }} </option> diff --git a/resources/views/partials/forms/edit/category-select.blade.php b/resources/views/partials/forms/edit/category-select.blade.php index 210a0b44c5930543ab7312b1b920f7243fd71d91..10f0f8c0c76fefb16f25012c216bbcbbf79c7503 100644 --- a/resources/views/partials/forms/edit/category-select.blade.php +++ b/resources/views/partials/forms/edit/category-select.blade.php @@ -5,7 +5,7 @@ <div class="col-md-7{{ ((isset($required)) && ($required=='true')) ? ' required' : '' }}"> <select class="js-data-ajax" data-endpoint="categories/{{ (isset($category_type)) ? $category_type : 'assets' }}" data-placeholder="{{ trans('general.select_category') }}" name="{{ $fieldname }}" style="width: 100%" id="category_select_id" aria-label="{{ $fieldname }}"> - @if ($category_id = Input::old($fieldname, (isset($item)) ? $item->{$fieldname} : '')) + @if ($category_id = old($fieldname, (isset($item)) ? $item->{$fieldname} : '')) <option value="{{ $category_id }}" selected="selected" role="option" aria-selected="true" role="option"> {{ (\App\Models\Category::find($category_id)) ? \App\Models\Category::find($category_id)->name : '' }} </option> diff --git a/resources/views/partials/forms/edit/category.blade.php b/resources/views/partials/forms/edit/category.blade.php index 0e82cbaa2d950bb6899a04f0012ce3b20e856fdd..0b9988cdc4d0cfad9920d3dc3f96e2a4a3c1b0e5 100644 --- a/resources/views/partials/forms/edit/category.blade.php +++ b/resources/views/partials/forms/edit/category.blade.php @@ -2,7 +2,7 @@ <div class="form-group {{ $errors->has('category_id') ? ' has-error' : '' }}"> <label for="category_id" class="col-md-3 control-label">{{ trans('general.category') }}</label> <div class="col-md-7 col-sm-12{{ (\App\Helpers\Helper::checkIfRequired($item, 'category_id')) ? ' required' : '' }}"> - {{ Form::select('category_id', $category_list , Input::old('category_id', $item->category_id), array('class'=>'select2', 'style'=>'width:100%')) }} + {{ Form::select('category_id', $category_list , old('category_id', $item->category_id), array('class'=>'select2', 'style'=>'width:100%')) }} {!! $errors->first('category_id', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/partials/forms/edit/company-select.blade.php b/resources/views/partials/forms/edit/company-select.blade.php index 6cdbc0579ee88586c7d20ba1b6e82035df29b611..551ba3a64f19ec4c15faf79885a4e3655e9ef230 100644 --- a/resources/views/partials/forms/edit/company-select.blade.php +++ b/resources/views/partials/forms/edit/company-select.blade.php @@ -5,7 +5,7 @@ {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} <div class="col-md-7"> <select class="js-data-ajax" data-endpoint="companies" data-placeholder="{{ trans('general.select_company') }}" name="{{ $fieldname }}" style="width: 100%" id="company_select" aria-label="{{ $fieldname }}"> - @if ($company_id = Input::old($fieldname, (isset($item)) ? $item->{$fieldname} : '')) + @if ($company_id = old($fieldname, (isset($item)) ? $item->{$fieldname} : '')) <option value="{{ $company_id }}" selected="selected" role="option" aria-selected="true" role="option"> {{ (\App\Models\Company::find($company_id)) ? \App\Models\Company::find($company_id)->name : '' }} </option> diff --git a/resources/views/partials/forms/edit/company.blade.php b/resources/views/partials/forms/edit/company.blade.php index 27e9352a2e52205434e0d4194febf395c998bea5..4857f9ced9091d94016f47fb28deacdf9500d8ae 100644 --- a/resources/views/partials/forms/edit/company.blade.php +++ b/resources/views/partials/forms/edit/company.blade.php @@ -4,7 +4,7 @@ {{ Form::label('company_id', trans('general.company'), array('class' => 'col-md-3 control-label', 'for' => 'company_id')) }} </div> <div class="col-md-7 col-sm-12{{ (\App\Helpers\Helper::checkIfRequired($item, 'company_id')) ? ' required' : '' }}"> - {{ Form::select('company_id', $company_list , Input::old('company_id', $item->company_id), array('class'=>'select2', 'style'=>'width:100%')) }} + {{ Form::select('company_id', $company_list , old('company_id', $item->company_id), array('class'=>'select2', 'style'=>'width:100%')) }} {!! $errors->first('company_id', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/partials/forms/edit/department-select.blade.php b/resources/views/partials/forms/edit/department-select.blade.php index ea63db6932112fa15840ce7f6ce7de32a1e3dbb5..12be93fb74e584d823e217fadb1a4db6afbc049c 100644 --- a/resources/views/partials/forms/edit/department-select.blade.php +++ b/resources/views/partials/forms/edit/department-select.blade.php @@ -4,7 +4,7 @@ <div class="col-md-7"> <select class="js-data-ajax" data-endpoint="departments" data-placeholder="{{ trans('general.select_department') }}" name="{{ $fieldname }}" style="width: 100%" id="department_select" aria-label="{{ $fieldname }}"> - @if ($department_id = Input::old($fieldname, (isset($item)) ? $item->{$fieldname} : '')) + @if ($department_id = old($fieldname, (isset($item)) ? $item->{$fieldname} : '')) <option value="{{ $department_id }}" selected="selected" role="option" aria-selected="true" role="option"> {{ (\App\Models\Department::find($department_id)) ? \App\Models\Department::find($department_id)->name : '' }} </option> diff --git a/resources/views/partials/forms/edit/depreciation.blade.php b/resources/views/partials/forms/edit/depreciation.blade.php index 4768e54ff4389606bfdc4ab43ce067aba44b8f91..7812be2d1f5a1737d53b959d1c7ecfa30c6e00b4 100644 --- a/resources/views/partials/forms/edit/depreciation.blade.php +++ b/resources/views/partials/forms/edit/depreciation.blade.php @@ -2,7 +2,7 @@ <div class="form-group {{ $errors->has('depreciation_id') ? ' has-error' : '' }}"> <label for="depreciation_id" class="col-md-3 control-label">{{ trans('general.depreciation') }}</label> <div class="col-md-7"> - {{ Form::select('depreciation_id', $depreciation_list , Input::old('depreciation_id', $item->depreciation_id), array('class'=>'select2', 'style'=>'width:350px', 'aria-label'=>'depreciation_id')) }} + {{ Form::select('depreciation_id', $depreciation_list , old('depreciation_id', $item->depreciation_id), array('class'=>'select2', 'style'=>'width:350px', 'aria-label'=>'depreciation_id')) }} {!! $errors->first('depreciation_id', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/partials/forms/edit/email.blade.php b/resources/views/partials/forms/edit/email.blade.php index 3d1c832dcb64891e026ade185594f242c50416f6..c2a54429e75975d404546f61721ceeed3030f2cb 100644 --- a/resources/views/partials/forms/edit/email.blade.php +++ b/resources/views/partials/forms/edit/email.blade.php @@ -1,7 +1,7 @@ <div class="form-group {{ $errors->has('email') ? ' has-error' : '' }}"> {{ Form::label('email', trans('admin/suppliers/table.email'), array('class' => 'col-md-3 control-label')) }} <div class="col-md-7"> - {{Form::text('email', Input::old('email', $item->email), array('class' => 'form-control')) }} + {{Form::text('email', old('email', $item->email), array('class' => 'form-control')) }} {!! $errors->first('email', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/partials/forms/edit/item_number.blade.php b/resources/views/partials/forms/edit/item_number.blade.php index 36fb05547db5d55620434aa74ba9c3611ec739a5..082fd815cfda09f770b7cbb82086d44c8b3c4616 100644 --- a/resources/views/partials/forms/edit/item_number.blade.php +++ b/resources/views/partials/forms/edit/item_number.blade.php @@ -2,7 +2,7 @@ <div class="form-group {{ $errors->has('item_no') ? ' has-error' : '' }}"> <label for="item_no" class="col-md-3 control-label">{{ trans('admin/consumables/general.item_no') }}</label> <div class="col-md-7 col-sm-12{{ (\App\Helpers\Helper::checkIfRequired($item, 'item_no')) ? ' required' : '' }}"> - <input class="form-control" type="text" name="item_no" id="item_no" value="{{ Input::old('item_no', $item->item_no) }}" /> + <input class="form-control" type="text" name="item_no" id="item_no" value="{{ old('item_no', $item->item_no) }}" /> {!! $errors->first('item_no', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/partials/forms/edit/location-profile-select.blade.php b/resources/views/partials/forms/edit/location-profile-select.blade.php index 3ff18509f1f533898ced10e483313a2d0733ede7..62ad0c4078701a1f658e3ba30ad8ea184441023f 100644 --- a/resources/views/partials/forms/edit/location-profile-select.blade.php +++ b/resources/views/partials/forms/edit/location-profile-select.blade.php @@ -4,7 +4,7 @@ {{ Form::label('location_id', $translated_name, array('class' => 'col-md-3 control-label')) }} <div class="col-md-7"> <select class="js-data-ajax" data-endpoint="locations" data-placeholder="{{ trans('general.select_location') }}" name="location_id" style="width: 100%" id="location_id_location_select" aria-label="location_id"> - @if ($location_id = Input::old('location_id', (isset($user)) ? $user->location_id : '')) + @if ($location_id = old('location_id', (isset($user)) ? $user->location_id : '')) <option value="{{ $location_id }}" selected="selected" role="option" aria-selected="true" role="option"> {{ (\App\Models\Location::find($location_id)) ? \App\Models\Location::find($location_id)->name : '' }} </option> diff --git a/resources/views/partials/forms/edit/location-select.blade.php b/resources/views/partials/forms/edit/location-select.blade.php index 10953808a7b5f81746cb363d34f5be5b9af553ca..6f75420525ec585a7d2c1d052dca7157fe0fd4b0 100644 --- a/resources/views/partials/forms/edit/location-select.blade.php +++ b/resources/views/partials/forms/edit/location-select.blade.php @@ -4,7 +4,7 @@ {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} <div class="col-md-7{{ ((isset($required) && ($required =='true'))) ? ' required' : '' }}"> <select class="js-data-ajax" data-endpoint="locations" data-placeholder="{{ trans('general.select_location') }}" name="{{ $fieldname }}" style="width: 100%" id="{{ $fieldname }}_location_select" aria-label="{{ $fieldname }}"> - @if ($location_id = Input::old($fieldname, (isset($item)) ? $item->{$fieldname} : '')) + @if ($location_id = old($fieldname, (isset($item)) ? $item->{$fieldname} : '')) <option value="{{ $location_id }}" selected="selected" role="option" aria-selected="true" role="option"> {{ (\App\Models\Location::find($location_id)) ? \App\Models\Location::find($location_id)->name : '' }} </option> diff --git a/resources/views/partials/forms/edit/location.blade.php b/resources/views/partials/forms/edit/location.blade.php index 99e106b435552b4db4e71a78578654b67d3f293d..469ce5829b02735d82413689ff0cfdf9d5c53656 100644 --- a/resources/views/partials/forms/edit/location.blade.php +++ b/resources/views/partials/forms/edit/location.blade.php @@ -2,7 +2,7 @@ <div class="form-group {{ $errors->has('location_id') ? ' has-error' : '' }}"> <label for="location_id" class="col-md-3 control-label">{{ trans('general.location') }}</label> <div class="col-md-7 col-sm-12{{ (\App\Helpers\Helper::checkIfRequired($item, 'location_id')) ? ' required' : '' }}"> - {{ Form::select('location_id', $location_list , Input::old('location_id', $item->location_id), array('class'=>'select2', 'style'=>'width:350px')) }} + {{ Form::select('location_id', $location_list , old('location_id', $item->location_id), array('class'=>'select2', 'style'=>'width:350px')) }} {!! $errors->first('location_id', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/partials/forms/edit/maintenance_type.blade.php b/resources/views/partials/forms/edit/maintenance_type.blade.php index f30d47b9e5b987e31bdb04544e3c0d362ba5a299..653e68c20d2337c3f2841a5e5336ea998c38a7f8 100644 --- a/resources/views/partials/forms/edit/maintenance_type.blade.php +++ b/resources/views/partials/forms/edit/maintenance_type.blade.php @@ -3,7 +3,7 @@ <label for="asset_maintenance_type" class="col-md-3 control-label">{{ trans('admin/asset_maintenances/form.asset_maintenance_type') }} </label> <div class="col-md-7{{ (\App\Helpers\Helper::checkIfRequired($item, 'asset_maintenance_type')) ? ' required' : '' }}"> - {{ Form::select('asset_maintenance_type', $assetMaintenanceType , Input::old('asset_maintenance_type', $item->asset_maintenance_type), ['class'=>'select2', 'style'=>'min-width:350px', 'aria-label'=>'asset_maintenance_type']) }} + {{ Form::select('asset_maintenance_type', $assetMaintenanceType , old('asset_maintenance_type', $item->asset_maintenance_type), ['class'=>'select2', 'style'=>'min-width:350px', 'aria-label'=>'asset_maintenance_type']) }} {!! $errors->first('asset_maintenance_type', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/partials/forms/edit/manufacturer-select.blade.php b/resources/views/partials/forms/edit/manufacturer-select.blade.php index 26c66cadf7477addf1eb5d1d751842ca6796c3bf..fa5a858f5bcede452daaecc11a0e2df4aa8890c5 100644 --- a/resources/views/partials/forms/edit/manufacturer-select.blade.php +++ b/resources/views/partials/forms/edit/manufacturer-select.blade.php @@ -5,7 +5,7 @@ <div class="col-md-7{{ ((isset($required)) && ($required=='true')) ? ' required' : '' }}"> <select class="js-data-ajax" data-endpoint="manufacturers" data-placeholder="{{ trans('general.select_manufacturer') }}" name="{{ $fieldname }}" style="width: 100%" id="manufacturer_select_id" aria-label="{{ $fieldname }}"> - @if ($manufacturer_id = Input::old($fieldname, (isset($item)) ? $item->{$fieldname} : '')) + @if ($manufacturer_id = old($fieldname, (isset($item)) ? $item->{$fieldname} : '')) <option value="{{ $manufacturer_id }}" selected="selected" role="option" aria-selected="true" role="option"> {{ (\App\Models\Manufacturer::find($manufacturer_id)) ? \App\Models\Manufacturer::find($manufacturer_id)->name : '' }} </option> diff --git a/resources/views/partials/forms/edit/manufacturer.blade.php b/resources/views/partials/forms/edit/manufacturer.blade.php index 8760c63fcf5c6540a7fedde796208cd004a04a1e..e3363d8b38b5c1cdd48e407681fb33d876774aef 100644 --- a/resources/views/partials/forms/edit/manufacturer.blade.php +++ b/resources/views/partials/forms/edit/manufacturer.blade.php @@ -2,7 +2,7 @@ <div class="form-group {{ $errors->has('manufacturer_id') ? ' has-error' : '' }}"> <label for="manufacturer_id" class="col-md-3 control-label">{{ trans('general.manufacturer') }}</label> <div class="col-md-7{{ (\App\Helpers\Helper::checkIfRequired($item, 'manufacturer_id')) ? ' required' : '' }}"> - {{ Form::select('manufacturer_id', $manufacturer_list , Input::old('manufacturer_id', $item->manufacturer_id), array('class'=>'select2', 'style'=>'width:100%')) }} + {{ Form::select('manufacturer_id', $manufacturer_list , old('manufacturer_id', $item->manufacturer_id), array('class'=>'select2', 'style'=>'width:100%')) }} {!! $errors->first('manufacturer_id', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/partials/forms/edit/minimum_quantity.blade.php b/resources/views/partials/forms/edit/minimum_quantity.blade.php index 175ec26abdb2eb6fc4248dcd9a475eec5ff66b75..6063fcee34d2ba9950f6c549f2cee8b8fead39a1 100644 --- a/resources/views/partials/forms/edit/minimum_quantity.blade.php +++ b/resources/views/partials/forms/edit/minimum_quantity.blade.php @@ -3,7 +3,7 @@ <label for="min_amt" class="col-md-3 control-label">{{ trans('general.min_amt') }}</label> <div class="col-md-9{{ (\App\Helpers\Helper::checkIfRequired($item, 'min_amt')) ? ' required' : '' }}"> <div class="col-md-2" style="padding-left:0px"> - <input class="form-control col-md-3" type="text" name="min_amt" id="min_amt" aria-label="min_amt" value="{{ Input::old('min_amt', $item->min_amt) }}" /> + <input class="form-control col-md-3" type="text" name="min_amt" id="min_amt" aria-label="min_amt" value="{{ old('min_amt', $item->min_amt) }}" /> </div> <div class="col-md-7" style="margin-left: -15px;"> <a href="#" data-toggle="tooltip" title="{{ trans('general.min_amt_help') }}"><i class="fa fa-info-circle" aria-hidden="true"></i> diff --git a/resources/views/partials/forms/edit/model-select.blade.php b/resources/views/partials/forms/edit/model-select.blade.php index 28fe115e09feeaf705a50b29fad4e35534a0d0ed..638aabe060c247a5a75e3f70958946e2724a3699 100644 --- a/resources/views/partials/forms/edit/model-select.blade.php +++ b/resources/views/partials/forms/edit/model-select.blade.php @@ -5,7 +5,7 @@ <div class="col-md-7{{ ((isset($required) && ($required =='true'))) ? ' required' : '' }}"> <select class="js-data-ajax" data-endpoint="models" data-placeholder="{{ trans('general.select_model') }}" name="{{ $fieldname }}" style="width: 100%" id="model_select_id" aria-label="{{ $fieldname }}"> - @if ($model_id = Input::old($fieldname, (isset($item)) ? $item->{$fieldname} : '')) + @if ($model_id = old($fieldname, (isset($item)) ? $item->{$fieldname} : '')) <option value="{{ $model_id }}" selected="selected"> {{ (\App\Models\AssetModel::find($model_id)) ? \App\Models\AssetModel::find($model_id)->name : '' }} </option> diff --git a/resources/views/partials/forms/edit/model_number.blade.php b/resources/views/partials/forms/edit/model_number.blade.php index cf3ad9e4956751a7e9d0d3a76e79e18df6368cf6..fd652cefee1a1dd0d836d14b077d084b01c4b989 100644 --- a/resources/views/partials/forms/edit/model_number.blade.php +++ b/resources/views/partials/forms/edit/model_number.blade.php @@ -2,7 +2,7 @@ <div class="form-group {{ $errors->has('model_number') ? ' has-error' : '' }}"> <label for="model_number" class="col-md-3 control-label">{{ trans('general.model_no') }}</label> <div class="col-md-7"> - <input class="form-control" type="text" name="model_number" aria-label="model_number" id="model_number" value="{{ Input::old('model_number', $item->model_number) }}" /> + <input class="form-control" type="text" name="model_number" aria-label="model_number" id="model_number" value="{{ old('model_number', $item->model_number) }}" /> {!! $errors->first('model_number', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/partials/forms/edit/name.blade.php b/resources/views/partials/forms/edit/name.blade.php index da84fd965fc886fa9e72eda83077ab7cac93b850..03e19314a1404d6f2f7eb61c7e6a23bed254d187 100644 --- a/resources/views/partials/forms/edit/name.blade.php +++ b/resources/views/partials/forms/edit/name.blade.php @@ -2,7 +2,7 @@ <div class="form-group {{ $errors->has('name') ? ' has-error' : '' }}"> <label for="name" class="col-md-3 control-label">{{ $translated_name }}</label> <div class="col-md-7 col-sm-12{{ (\App\Helpers\Helper::checkIfRequired($item, 'name')) ? ' required' : '' }}"> - <input class="form-control" type="text" name="name" aria-label="name" id="name" value="{{ Input::old('name', $item->name) }}" /> + <input class="form-control" type="text" name="name" aria-label="name" id="name" value="{{ old('name', $item->name) }}" /> {!! $errors->first('name', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/partials/forms/edit/notes.blade.php b/resources/views/partials/forms/edit/notes.blade.php index 325843bf314e3126561943639e50f9e6c46c2819..6c3b414783397cfaa36bf93b2620406eeee00459 100644 --- a/resources/views/partials/forms/edit/notes.blade.php +++ b/resources/views/partials/forms/edit/notes.blade.php @@ -2,7 +2,7 @@ <div class="form-group {{ $errors->has('notes') ? ' has-error' : '' }}"> <label for="notes" class="col-md-3 control-label">{{ trans('admin/hardware/form.notes') }}</label> <div class="col-md-7 col-sm-12"> - <textarea class="col-md-6 form-control" id="notes" aria-label="notes" name="notes">{{ Input::old('notes', $item->notes) }}</textarea> + <textarea class="col-md-6 form-control" id="notes" aria-label="notes" name="notes">{{ old('notes', $item->notes) }}</textarea> {!! $errors->first('notes', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/partials/forms/edit/order_number.blade.php b/resources/views/partials/forms/edit/order_number.blade.php index d5fceea43616b44e3f0e2320832001acdd8710cb..8d6bc35eb48a8359acd7e0b772a10093912f7951 100644 --- a/resources/views/partials/forms/edit/order_number.blade.php +++ b/resources/views/partials/forms/edit/order_number.blade.php @@ -2,7 +2,7 @@ <div class="form-group {{ $errors->has('order_number') ? ' has-error' : '' }}"> <label for="order_number" class="col-md-3 control-label">{{ trans('general.order_number') }}</label> <div class="col-md-7 col-sm-12"> - <input class="form-control" type="text" name="order_number" aria-label="order_number" id="order_number" value="{{ Input::old('order_number', $item->order_number) }}" /> + <input class="form-control" type="text" name="order_number" aria-label="order_number" id="order_number" value="{{ old('order_number', $item->order_number) }}" /> {!! $errors->first('order_number', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/partials/forms/edit/phone.blade.php b/resources/views/partials/forms/edit/phone.blade.php index e7f948bb31c43f8713d9ea41af0822e0086ef07f..3723e590d8189418b407240dbc8ca8506506ef06 100644 --- a/resources/views/partials/forms/edit/phone.blade.php +++ b/resources/views/partials/forms/edit/phone.blade.php @@ -1,7 +1,7 @@ <div class="form-group {{ $errors->has('phone') ? ' has-error' : '' }}"> {{ Form::label('phone', trans('admin/suppliers/table.phone'), array('class' => 'col-md-3 control-label')) }} <div class="col-md-7"> - {{Form::text('phone', Input::old('phone', $item->phone), array('class' => 'form-control', 'aria-label'=>'phone')) }} + {{Form::text('phone', old('phone', $item->phone), array('class' => 'form-control', 'aria-label'=>'phone')) }} {!! $errors->first('phone', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/partials/forms/edit/purchase_cost.blade.php b/resources/views/partials/forms/edit/purchase_cost.blade.php index 2ffd2088d5cb9a559b12a2bb5a4d31943a99af4f..13311019499ea912c5d8af2cee0d0ed68d33acd5 100644 --- a/resources/views/partials/forms/edit/purchase_cost.blade.php +++ b/resources/views/partials/forms/edit/purchase_cost.blade.php @@ -3,7 +3,7 @@ <label for="purchase_cost" class="col-md-3 control-label">{{ trans('general.purchase_cost') }}</label> <div class="col-md-9"> <div class="input-group col-md-4" style="padding-left: 0px;"> - <input class="form-control" type="text" name="purchase_cost" aria-label="purchase_cost" id="purchase_cost" value="{{ Input::old('purchase_cost', \App\Helpers\Helper::formatCurrencyOutput($item->purchase_cost)) }}" /> + <input class="form-control" type="text" name="purchase_cost" aria-label="purchase_cost" id="purchase_cost" value="{{ old('purchase_cost', \App\Helpers\Helper::formatCurrencyOutput($item->purchase_cost)) }}" /> <span class="input-group-addon"> @if (isset($currency_type)) {{ $currency_type }} diff --git a/resources/views/partials/forms/edit/purchase_date.blade.php b/resources/views/partials/forms/edit/purchase_date.blade.php index 97c4b83a3bd5fd7c5167702375a4ff05a7971b97..7d6a383e060d2ac6ed8bf7177c1104452fd18048 100644 --- a/resources/views/partials/forms/edit/purchase_date.blade.php +++ b/resources/views/partials/forms/edit/purchase_date.blade.php @@ -3,7 +3,7 @@ <label for="purchase_date" class="col-md-3 control-label">{{ trans('general.purchase_date') }}</label> <div class="input-group col-md-3"> <div class="input-group date" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-autoclose="true"> - <input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="purchase_date" id="purchase_date" value="{{ Input::old('purchase_date', ($item->purchase_date) ? $item->purchase_date->format('Y-m-d') : '') }}"> + <input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="purchase_date" id="purchase_date" value="{{ old('purchase_date', ($item->purchase_date) ? $item->purchase_date->format('Y-m-d') : '') }}"> <span class="input-group-addon"><i class="fa fa-calendar" aria-hidden="true"></i></span> </div> {!! $errors->first('purchase_date', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} diff --git a/resources/views/partials/forms/edit/quantity.blade.php b/resources/views/partials/forms/edit/quantity.blade.php index 5e61cdc38ab62bbe5d214efd7f67981a03149853..619f0aa6e511b38c868215ce9b4c85d54fcfb976 100644 --- a/resources/views/partials/forms/edit/quantity.blade.php +++ b/resources/views/partials/forms/edit/quantity.blade.php @@ -4,7 +4,7 @@ <label for="qty" class="col-md-3 control-label">{{ trans('general.quantity') }}</label> <div class="col-md-7{{ (\App\Helpers\Helper::checkIfRequired($item, 'qty')) ? ' required' : '' }}"> <div class="col-md-2" style="padding-left:0px"> - <input class="form-control" type="text" name="qty" aria-label="qty" id="qty" value="{{ Input::old('qty', $item->qty) }}" /> + <input class="form-control" type="text" name="qty" aria-label="qty" id="qty" value="{{ old('qty', $item->qty) }}" /> </div> {!! $errors->first('qty', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> diff --git a/resources/views/partials/forms/edit/serial.blade.php b/resources/views/partials/forms/edit/serial.blade.php index d697f5f9caf9ce887951d6a3cb9cf0d1be0f08a9..2e5866e10afb9cdfdbab8a35c6eed08b33f27604 100644 --- a/resources/views/partials/forms/edit/serial.blade.php +++ b/resources/views/partials/forms/edit/serial.blade.php @@ -2,7 +2,7 @@ <div class="form-group {{ $errors->has('serial') ? ' has-error' : '' }}"> <label for="{{ $fieldname }}" class="col-md-3 control-label">{{ trans('admin/hardware/form.serial') }} </label> <div class="col-md-7 col-sm-12{{ (\App\Helpers\Helper::checkIfRequired($item, 'serial')) ? ' required' : '' }}"> - <input class="form-control" type="text" name="serial" id="serial" value="{{ Input::old('serial', $item->serial) }}" /> + <input class="form-control" type="text" name="serial" id="serial" value="{{ old('serial', $item->serial) }}" /> {!! $errors->first('serial', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/partials/forms/edit/status.blade.php b/resources/views/partials/forms/edit/status.blade.php index cffa65a28dfbba3595942eb245792e2039c86481..4c657f5e64aa95dae17628b030336074ef866581 100644 --- a/resources/views/partials/forms/edit/status.blade.php +++ b/resources/views/partials/forms/edit/status.blade.php @@ -2,7 +2,7 @@ <div class="form-group {{ $errors->has('status_id') ? ' has-error' : '' }}"> <label for="status_id" class="col-md-3 control-label">{{ trans('admin/hardware/form.status') }}</label> <div class="col-md-7 col-sm-11{{ (\App\Helpers\Helper::checkIfRequired($item, 'status_id')) ? ' required' : '' }}"> - {{ Form::select('status_id', $statuslabel_list , Input::old('status_id', $item->status_id), array('class'=>'select2 status_id', 'style'=>'width:100%','id'=>'status_select_id', 'aria-label'=>'status_id')) }} + {{ Form::select('status_id', $statuslabel_list , old('status_id', $item->status_id), array('class'=>'select2 status_id', 'style'=>'width:100%','id'=>'status_select_id', 'aria-label'=>'status_id')) }} {!! $errors->first('status_id', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> <div class="col-md-2 col-sm-2 text-left"> diff --git a/resources/views/partials/forms/edit/supplier-select.blade.php b/resources/views/partials/forms/edit/supplier-select.blade.php index 29a44dbcacc4b8142e6586157bd80fd34e4dc8cf..9315b8d5fdd8fc3dd37943f9676c2fbca5e22757 100644 --- a/resources/views/partials/forms/edit/supplier-select.blade.php +++ b/resources/views/partials/forms/edit/supplier-select.blade.php @@ -4,7 +4,7 @@ <div class="col-md-7{{ ((isset($required)) && ($required=='true')) ? ' required' : '' }}"> <select class="js-data-ajax" data-endpoint="suppliers" data-placeholder="{{ trans('general.select_supplier') }}" name="{{ $fieldname }}" style="width: 100%" id="supplier_select" aria-label="{{ $fieldname }}"> - @if ($supplier_id = Input::old($fieldname, (isset($item)) ? $item->{$fieldname} : '')) + @if ($supplier_id = old($fieldname, (isset($item)) ? $item->{$fieldname} : '')) <option value="{{ $supplier_id }}" selected="selected" role="option" aria-selected="true" role="option"> {{ (\App\Models\Supplier::find($supplier_id)) ? \App\Models\Supplier::find($supplier_id)->name : '' }} </option> diff --git a/resources/views/partials/forms/edit/supplier.blade.php b/resources/views/partials/forms/edit/supplier.blade.php index c642c4dd08bcb8ea44b06b98955c05c922b69f30..422c88707b110e7e40bfd17a4b058e092f4883b9 100644 --- a/resources/views/partials/forms/edit/supplier.blade.php +++ b/resources/views/partials/forms/edit/supplier.blade.php @@ -2,7 +2,7 @@ <div class="form-group {{ $errors->has('supplier_id') ? ' has-error' : '' }}"> <label for="supplier_id" class="col-md-3 control-label">{{ trans('general.supplier') }}</label> <div class="col-md-7{{ (\App\Helpers\Helper::checkIfRequired($item, 'supplier_id')) ? ' required' : '' }}"> - {{ Form::select('supplier_id', $supplier_list , Input::old('supplier_id', $item->supplier_id), ['class'=>'select2', 'style'=>'min-width:350px', 'id' => 'supplier_select_id']) }} + {{ Form::select('supplier_id', $supplier_list , old('supplier_id', $item->supplier_id), ['class'=>'select2', 'style'=>'min-width:350px', 'id' => 'supplier_select_id']) }} {!! $errors->first('supplier_id', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> <div class="col-md-1 col-sm-1 text-left"> diff --git a/resources/views/partials/forms/edit/user-select.blade.php b/resources/views/partials/forms/edit/user-select.blade.php index 4ef65f2f86b37b547183c6bb51926385ba8279e7..41d8c031646cdf1f70abb2a95fbecfcd7cdd02eb 100644 --- a/resources/views/partials/forms/edit/user-select.blade.php +++ b/resources/views/partials/forms/edit/user-select.blade.php @@ -4,7 +4,7 @@ <div class="col-md-7{{ ((isset($required)) && ($required=='true')) ? ' required' : '' }}"> <select class="js-data-ajax" data-endpoint="users" data-placeholder="{{ trans('general.select_user') }}" name="{{ $fieldname }}" style="width: 100%" id="assigned_user_select" aria-label="{{ $fieldname }}"> - @if ($user_id = Input::old($fieldname, (isset($item)) ? $item->{$fieldname} : '')) + @if ($user_id = old($fieldname, (isset($item)) ? $item->{$fieldname} : '')) <option value="{{ $user_id }}" selected="selected" role="option" aria-selected="true" role="option"> {{ (\App\Models\User::find($user_id)) ? \App\Models\User::find($user_id)->present()->fullName : '' }} </option> diff --git a/resources/views/reports/custom.blade.php b/resources/views/reports/custom.blade.php index 9d57e3595e5eba1774cf53feb7e2e08f09d1f725..e27254c43554873203a5e19010aa44b096626f09 100644 --- a/resources/views/reports/custom.blade.php +++ b/resources/views/reports/custom.blade.php @@ -273,7 +273,7 @@ <div class="form-group"> <label for="by_status_id" class="col-md-3 control-label">{{ trans('admin/hardware/form.status') }}</label> <div class="col-md-7 col-sm-11"> - {{ Form::select('by_status_id', \App\Helpers\Helper::statusLabelList() , Input::old('by_status_id'), array('class'=>'select2', 'style'=>'width:100%', 'aria-label'=>'by_status_id')) }} + {{ Form::select('by_status_id', \App\Helpers\Helper::statusLabelList() , old('by_status_id'), array('class'=>'select2', 'style'=>'width:100%', 'aria-label'=>'by_status_id')) }} </div> </div> diff --git a/resources/views/settings/alerts.blade.php b/resources/views/settings/alerts.blade.php index 362d2ee01ea347c40e33aee8d3134c01086d6f6a..a59a4a49f158656349b9b4da34c9cef42f34819c 100644 --- a/resources/views/settings/alerts.blade.php +++ b/resources/views/settings/alerts.blade.php @@ -70,7 +70,7 @@ {{ Form::label('alert_email', trans('admin/settings/general.alert_email')) }} </div> <div class="col-md-7"> - {{ Form::text('alert_email', Input::old('alert_email', $setting->alert_email), array('class' => 'form-control','placeholder' => 'admin@yourcompany.com')) }} + {{ Form::text('alert_email', old('alert_email', $setting->alert_email), array('class' => 'form-control','placeholder' => 'admin@yourcompany.com')) }} {!! $errors->first('alert_email', '<span class="alert-msg" aria-hidden="true">:message</span><br>') !!} <p class="help-block">Email addresses or distribution lists you want alerts to be sent to, comma separated</p> @@ -86,7 +86,7 @@ {{ Form::label('admin_cc_email', trans('admin/settings/general.admin_cc_email')) }} </div> <div class="col-md-7"> - {{ Form::text('admin_cc_email', Input::old('admin_cc_email', $setting->admin_cc_email), array('class' => 'form-control','placeholder' => 'admin@yourcompany.com')) }} + {{ Form::text('admin_cc_email', old('admin_cc_email', $setting->admin_cc_email), array('class' => 'form-control','placeholder' => 'admin@yourcompany.com')) }} {!! $errors->first('admin_cc_email', '<span class="alert-msg" aria-hidden="true">:message</span><br>') !!} <p class="help-block">{{ trans('admin/settings/general.admin_cc_email_help') }}</p> @@ -101,7 +101,7 @@ {{ Form::label('alert_interval', trans('admin/settings/general.alert_interval')) }} </div> <div class="col-md-9"> - {{ Form::text('alert_interval', Input::old('alert_interval', $setting->alert_interval), array('class' => 'form-control','placeholder' => '30', 'maxlength'=>'3', 'style'=>'width: 60px;')) }} + {{ Form::text('alert_interval', old('alert_interval', $setting->alert_interval), array('class' => 'form-control','placeholder' => '30', 'maxlength'=>'3', 'style'=>'width: 60px;')) }} {!! $errors->first('alert_interval', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> @@ -112,7 +112,7 @@ {{ Form::label('alert_threshold', trans('admin/settings/general.alert_inv_threshold')) }} </div> <div class="col-md-9"> - {{ Form::text('alert_threshold', Input::old('alert_threshold', $setting->alert_threshold), array('class' => 'form-control','placeholder' => '5', 'maxlength'=>'3', 'style'=>'width: 60px;')) }} + {{ Form::text('alert_threshold', old('alert_threshold', $setting->alert_threshold), array('class' => 'form-control','placeholder' => '5', 'maxlength'=>'3', 'style'=>'width: 60px;')) }} {!! $errors->first('alert_threshold', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> diff --git a/resources/views/settings/asset_tags.blade.php b/resources/views/settings/asset_tags.blade.php index 98dbd66467dd01d964105feedfee731ed0ac2273..9041b093c286c8a2303c1046c69fbc13f4a9ebff 100644 --- a/resources/views/settings/asset_tags.blade.php +++ b/resources/views/settings/asset_tags.blade.php @@ -46,7 +46,7 @@ {{ Form::label('auto_increment_assets', trans('admin/settings/general.asset_ids')) }} </div> <div class="col-md-7"> - {{ Form::checkbox('auto_increment_assets', '1', Input::old('auto_increment_assets', $setting->auto_increment_assets),array('class' => 'minimal', 'aria-label'=>'auto_increment_assets')) }} + {{ Form::checkbox('auto_increment_assets', '1', old('auto_increment_assets', $setting->auto_increment_assets),array('class' => 'minimal', 'aria-label'=>'auto_increment_assets')) }} {{ trans('admin/settings/general.auto_increment_assets') }} </div> </div> @@ -56,7 +56,7 @@ {{ Form::label('next_auto_tag_base', trans('admin/settings/general.next_auto_tag_base')) }} </div> <div class="col-md-7"> - {{ Form::text('next_auto_tag_base', Input::old('next_auto_tag_base', $setting->next_auto_tag_base), array('class' => 'form-control', 'style'=>'width: 150px;', 'aria-label'=>'next_auto_tag_base')) }} + {{ Form::text('next_auto_tag_base', old('next_auto_tag_base', $setting->next_auto_tag_base), array('class' => 'form-control', 'style'=>'width: 150px;', 'aria-label'=>'next_auto_tag_base')) }} {!! $errors->first('next_auto_tag_base', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> @@ -69,10 +69,10 @@ </div> <div class="col-md-7"> @if ($setting->auto_increment_assets == 1) - {{ Form::text('auto_increment_prefix', Input::old('auto_increment_prefix', $setting->auto_increment_prefix), array('class' => 'form-control', 'style'=>'width: 150px;', 'aria-label'=>'auto_increment_prefix')) }} + {{ Form::text('auto_increment_prefix', old('auto_increment_prefix', $setting->auto_increment_prefix), array('class' => 'form-control', 'style'=>'width: 150px;', 'aria-label'=>'auto_increment_prefix')) }} {!! $errors->first('auto_increment_prefix', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} @else - {{ Form::text('auto_increment_prefix', Input::old('auto_increment_prefix', $setting->auto_increment_prefix), array('class' => 'form-control', 'disabled'=>'disabled', 'style'=>'width: 150px;', 'aria-label'=>'auto_increment_prefix')) }} + {{ Form::text('auto_increment_prefix', old('auto_increment_prefix', $setting->auto_increment_prefix), array('class' => 'form-control', 'disabled'=>'disabled', 'style'=>'width: 150px;', 'aria-label'=>'auto_increment_prefix')) }} @endif </div> </div> @@ -83,7 +83,7 @@ {{ Form::label('zerofill_count', trans('admin/settings/general.zerofill_count')) }} </div> <div class="col-md-7"> - {{ Form::text('zerofill_count', Input::old('zerofill_count', $setting->zerofill_count), array('class' => 'form-control', 'style'=>'width: 150px;', 'aria-label'=>'zerofill_count')) }} + {{ Form::text('zerofill_count', old('zerofill_count', $setting->zerofill_count), array('class' => 'form-control', 'style'=>'width: 150px;', 'aria-label'=>'zerofill_count')) }} {!! $errors->first('zerofill_count', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> diff --git a/resources/views/settings/barcodes.blade.php b/resources/views/settings/barcodes.blade.php index 4a916e479c92f0706ee94c9a5288751ccb0c9dba..9bd6be17d0f000d21ec0c32816ea3bc8e50e1645 100644 --- a/resources/views/settings/barcodes.blade.php +++ b/resources/views/settings/barcodes.blade.php @@ -47,7 +47,7 @@ {{ Form::label('qr_code', trans('admin/settings/general.display_qr')) }} </div> <div class="col-md-9"> - {{ Form::checkbox('qr_code', '1', Input::old('qr_code', $setting->qr_code),array('class' => 'minimal', 'aria-label'=>'qr_code')) }} + {{ Form::checkbox('qr_code', '1', old('qr_code', $setting->qr_code),array('class' => 'minimal', 'aria-label'=>'qr_code')) }} {{ trans('general.yes') }} </div> </div> @@ -58,7 +58,7 @@ {{ Form::label('barcode_type', trans('admin/settings/general.barcode_type')) }} </div> <div class="col-md-9"> - {!! Form::barcode_types('barcode_type', Input::old('barcode_type', $setting->barcode_type), 'select2') !!} + {!! Form::barcode_types('barcode_type', old('barcode_type', $setting->barcode_type), 'select2') !!} {!! $errors->first('barcode_type', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -69,7 +69,7 @@ {{ Form::label('alt_barcode_enabled', trans('admin/settings/general.display_alt_barcode')) }} </div> <div class="col-md-9"> - {{ Form::checkbox('alt_barcode_enabled', '1', Input::old('alt_barcode_enabled', $setting->alt_barcode_enabled),array('class' => 'minimal', 'aria-label'=>'alt_barcode_enabled')) }} + {{ Form::checkbox('alt_barcode_enabled', '1', old('alt_barcode_enabled', $setting->alt_barcode_enabled),array('class' => 'minimal', 'aria-label'=>'alt_barcode_enabled')) }} {{ trans('general.yes') }} </div> </div> @@ -80,7 +80,7 @@ {{ Form::label('alt_barcode', trans('admin/settings/general.alt_barcode_type')) }} </div> <div class="col-md-9"> - {!! Form::alt_barcode_types('alt_barcode', Input::old('alt_barcode', $setting->alt_barcode), 'select2') !!} + {!! Form::alt_barcode_types('alt_barcode', old('alt_barcode', $setting->alt_barcode), 'select2') !!} {!! $errors->first('barcode_type', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/settings/branding.blade.php b/resources/views/settings/branding.blade.php index 63085a9cb1032185130ba440048de9b0824784f0..ac510260f5304c80f8f854b8d16189a5db182ba5 100644 --- a/resources/views/settings/branding.blade.php +++ b/resources/views/settings/branding.blade.php @@ -76,7 +76,7 @@ {!! $errors->first('image', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} <label for="clear_logo"> - {{ Form::checkbox('clear_logo', '1', Input::old('clear_logo'),array('class' => 'minimal', 'aria-label'=>'clear_logo')) }} + {{ Form::checkbox('clear_logo', '1', old('clear_logo'),array('class' => 'minimal', 'aria-label'=>'clear_logo')) }} {{ trans('general.delete') }} </label> @endif @@ -90,7 +90,7 @@ {{ Form::label('brand', trans('admin/settings/general.brand')) }} </div> <div class="col-md-9"> - {!! Form::select('brand', array('1'=>'Text','2'=>'Logo','3'=>'Logo + Text'), Input::old('brand', $setting->brand), array('class' => 'form-control select2', 'style'=>'width: 150px ;')) !!} + {!! Form::select('brand', array('1'=>'Text','2'=>'Logo','3'=>'Logo + Text'), old('brand', $setting->brand), array('class' => 'form-control select2', 'style'=>'width: 150px ;')) !!} {!! $errors->first('brand', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> @@ -139,7 +139,7 @@ {{ Form::label('logo_print_assets', trans('admin/settings/general.logo_print_assets')) }} </div> <div class="col-md-9"> - {{ Form::checkbox('logo_print_assets', '1', Input::old('logo_print_assets', $setting->logo_print_assets),array('class' => 'minimal', 'aria-label'=>'logo_print_assets')) }} + {{ Form::checkbox('logo_print_assets', '1', old('logo_print_assets', $setting->logo_print_assets),array('class' => 'minimal', 'aria-label'=>'logo_print_assets')) }} {{ trans('admin/settings/general.logo_print_assets_help') }} </div> @@ -152,7 +152,7 @@ {{ Form::label('show_url_in_emails', trans('admin/settings/general.show_url_in_emails')) }} </div> <div class="col-md-9"> - {{ Form::checkbox('show_url_in_emails', '1', Input::old('show_url_in_emails', $setting->show_url_in_emails),array('class' => 'minimal', 'aria-label'=>'show_url_in_emails')) }} + {{ Form::checkbox('show_url_in_emails', '1', old('show_url_in_emails', $setting->show_url_in_emails),array('class' => 'minimal', 'aria-label'=>'show_url_in_emails')) }} {{ trans('general.yes') }} <p class="help-block">{{ trans('admin/settings/general.show_url_in_emails_help_text') }}</p> </div> @@ -165,7 +165,7 @@ </div> <div class="col-md-2"> <div class="input-group header-color"> - {{ Form::text('header_color', Input::old('header_color', $setting->header_color), array('class' => 'form-control', 'style' => 'width: 100px;','placeholder' => '#FF0000', 'aria-label'=>'header_color')) }} + {{ Form::text('header_color', old('header_color', $setting->header_color), array('class' => 'form-control', 'style' => 'width: 100px;','placeholder' => '#FF0000', 'aria-label'=>'header_color')) }} <div class="input-group-addon"> <i></i> </div> @@ -180,7 +180,7 @@ {{ Form::label('skin', trans('general.skin')) }} </div> <div class="col-md-9"> - {!! Form::skin('skin', Input::old('skin', $setting->skin), 'select2') !!} + {!! Form::skin('skin', old('skin', $setting->skin), 'select2') !!} {!! $errors->first('skin', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> @@ -193,11 +193,11 @@ </div> <div class="col-md-9"> @if (config('app.lock_passwords')===true) - {{ Form::textarea('custom_css', Input::old('custom_css', $setting->custom_css), array('class' => 'form-control','placeholder' => 'Add your custom CSS','disabled'=>'disabled', 'aria-label'=>'custom_css')) }} + {{ Form::textarea('custom_css', old('custom_css', $setting->custom_css), array('class' => 'form-control','placeholder' => 'Add your custom CSS','disabled'=>'disabled', 'aria-label'=>'custom_css')) }} {!! $errors->first('custom_css', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} <p class="help-block">{{ trans('general.lock_passwords') }}</p> @else - {{ Form::textarea('custom_css', Input::old('custom_css', $setting->custom_css), array('class' => 'form-control','placeholder' => 'Add your custom CSS', 'aria-label'=>'custom_css')) }} + {{ Form::textarea('custom_css', old('custom_css', $setting->custom_css), array('class' => 'form-control','placeholder' => 'Add your custom CSS', 'aria-label'=>'custom_css')) }} {!! $errors->first('custom_css', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} @endif <p class="help-block">{!! trans('admin/settings/general.custom_css_help') !!}</p> diff --git a/resources/views/settings/general.blade.php b/resources/views/settings/general.blade.php index ba2a0b193b8aace42e19175eabd4b11980eae777..17d09bc19133fd34289b4bb77e7e8b5b64b0aad4 100644 --- a/resources/views/settings/general.blade.php +++ b/resources/views/settings/general.blade.php @@ -48,7 +48,7 @@ {{ Form::label('full_multiple_companies_support', trans('admin/settings/general.full_multiple_companies_support_text')) }} </div> <div class="col-md-9"> - {{ Form::checkbox('full_multiple_companies_support', '1', Input::old('full_multiple_companies_support', $setting->full_multiple_companies_support),array('class' => 'minimal', 'aria-label'=>'full_multiple_companies_support')) }} + {{ Form::checkbox('full_multiple_companies_support', '1', old('full_multiple_companies_support', $setting->full_multiple_companies_support),array('class' => 'minimal', 'aria-label'=>'full_multiple_companies_support')) }} {{ trans('admin/settings/general.full_multiple_companies_support_text') }} {!! $errors->first('full_multiple_companies_support', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} <p class="help-block"> @@ -94,7 +94,7 @@ {{ Form::label('email_format', trans('general.email_format')) }} </div> <div class="col-md-9"> - {!! Form::username_format('email_format', Input::old('email_format', $setting->email_format), 'select2') !!} + {!! Form::username_format('email_format', old('email_format', $setting->email_format), 'select2') !!} {!! $errors->first('email_format', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> @@ -105,7 +105,7 @@ {{ Form::label('username_format', trans('general.username_format')) }} </div> <div class="col-md-9"> - {!! Form::username_format('username_format', Input::old('username_format', $setting->username_format), 'select2') !!} + {!! Form::username_format('username_format', old('username_format', $setting->username_format), 'select2') !!} {!! $errors->first('username_format', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} <p class="help-block"> @@ -149,7 +149,7 @@ {{ Form::label('per_page', trans('admin/settings/general.per_page')) }} </div> <div class="col-md-9"> - {{ Form::text('per_page', Input::old('per_page', $setting->per_page), array('class' => 'form-control','placeholder' => '5', 'maxlength'=>'3', 'style'=>'width: 60px;')) }} + {{ Form::text('per_page', old('per_page', $setting->per_page), array('class' => 'form-control','placeholder' => '5', 'maxlength'=>'3', 'style'=>'width: 60px;')) }} {!! $errors->first('per_page', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> @@ -172,7 +172,7 @@ {{ Form::label('default_eula_text', trans('admin/settings/general.default_eula_text')) }} </div> <div class="col-md-9"> - {{ Form::textarea('default_eula_text', Input::old('default_eula_text', $setting->default_eula_text), array('class' => 'form-control','placeholder' => 'Add your default EULA text')) }} + {{ Form::textarea('default_eula_text', old('default_eula_text', $setting->default_eula_text), array('class' => 'form-control','placeholder' => 'Add your default EULA text')) }} {!! $errors->first('default_eula_text', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} <p class="help-block">{{ trans('admin/settings/general.default_eula_help_text') }}</p> <p class="help-block">{!! trans('admin/settings/general.eula_markdown') !!}</p> @@ -188,11 +188,11 @@ <div class="col-md-9"> @if (config('app.lock_passwords')) - <textarea class="form-control disabled" name="login_note" placeholder="If you do not have a login or have found a device belonging to this company, please call technical support at 888-555-1212. Thank you." rows="2" aria-label="login_note" readonly>{{ Input::old('login_note', $setting->login_note) }}</textarea> + <textarea class="form-control disabled" name="login_note" placeholder="If you do not have a login or have found a device belonging to this company, please call technical support at 888-555-1212. Thank you." rows="2" aria-label="login_note" readonly>{{ old('login_note', $setting->login_note) }}</textarea> {!! $errors->first('login_note', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} <p class="help-block">{{ trans('general.lock_passwords') }}</p> @else - <textarea class="form-control" name="login_note" aria-label="login_note" placeholder="If you do not have a login or have found a device belonging to this company, please call technical support at 888-555-1212. Thank you." rows="2">{{ Input::old('login_note', $setting->login_note) }}</textarea> + <textarea class="form-control" name="login_note" aria-label="login_note" placeholder="If you do not have a login or have found a device belonging to this company, please call technical support at 888-555-1212. Thank you." rows="2">{{ old('login_note', $setting->login_note) }}</textarea> {!! $errors->first('login_note', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} @endif <p class="help-block">{!! trans('admin/settings/general.login_note_help') !!}</p> @@ -228,11 +228,11 @@ <div class="col-md-9"> @if (config('app.lock_passwords')) - <textarea class="form-control disabled" name="login_note" placeholder="If you do not have a login or have found a device belonging to this company, please call technical support at 888-555-1212. Thank you." rows="2" aria-label="dashboard_message" readonly>{{ Input::old('dashboard_message', $setting->login_note) }}</textarea> + <textarea class="form-control disabled" name="login_note" placeholder="If you do not have a login or have found a device belonging to this company, please call technical support at 888-555-1212. Thank you." rows="2" aria-label="dashboard_message" readonly>{{ old('dashboard_message', $setting->login_note) }}</textarea> {!! $errors->first('dashboard_message', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} <p class="help-block">{{ trans('general.lock_passwords') }}</p> @else - <textarea class="form-control" aria-label="dashboard_message" name="dashboard_message" rows="2">{{ Input::old('login_note', $setting->dashboard_message) }}</textarea> + <textarea class="form-control" aria-label="dashboard_message" name="dashboard_message" rows="2">{{ old('login_note', $setting->dashboard_message) }}</textarea> {!! $errors->first('dashboard_message', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} @endif <p class="help-block"> @@ -279,10 +279,10 @@ trans('admin/settings/general.show_in_model_list')) }} </div> <div class="col-md-9"> - {{ Form::checkbox('show_in_model_list[]', 'image', Input::old('show_in_model_list', $snipeSettings->modellistCheckedValue('image')),array('class' => 'minimal', 'aria-label'=>'show_in_model_list' )) }} {{ trans('general.image') }} <br> - {{ Form::checkbox('show_in_model_list[]', 'category', Input::old('show_in_model_list', $snipeSettings->modellistCheckedValue('category')),array('class' => 'minimal', 'aria-label'=>'show_in_model_list' )) }} {{ trans('general.category') }} <br> - {{ Form::checkbox('show_in_model_list[]', 'manufacturer', Input::old('show_in_model_list', $snipeSettings->modellistCheckedValue('manufacturer')),array('class' => 'minimal', 'aria-label'=>'show_in_model_list' )) }} {{ trans('general.manufacturer') }} <br> - {{ Form::checkbox('show_in_model_list[]', 'model_number', Input::old('show_in_model_list', $snipeSettings->modellistCheckedValue('model_number')),array('class' => 'minimal', 'aria-label'=>'show_in_model_list' )) }} {{ trans('general.model_no') }}<br> + {{ Form::checkbox('show_in_model_list[]', 'image', old('show_in_model_list', $snipeSettings->modellistCheckedValue('image')),array('class' => 'minimal', 'aria-label'=>'show_in_model_list' )) }} {{ trans('general.image') }} <br> + {{ Form::checkbox('show_in_model_list[]', 'category', old('show_in_model_list', $snipeSettings->modellistCheckedValue('category')),array('class' => 'minimal', 'aria-label'=>'show_in_model_list' )) }} {{ trans('general.category') }} <br> + {{ Form::checkbox('show_in_model_list[]', 'manufacturer', old('show_in_model_list', $snipeSettings->modellistCheckedValue('manufacturer')),array('class' => 'minimal', 'aria-label'=>'show_in_model_list' )) }} {{ trans('general.manufacturer') }} <br> + {{ Form::checkbox('show_in_model_list[]', 'model_number', old('show_in_model_list', $snipeSettings->modellistCheckedValue('model_number')),array('class' => 'minimal', 'aria-label'=>'show_in_model_list' )) }} {{ trans('general.model_no') }}<br> </div> </div> diff --git a/resources/views/settings/labels.blade.php b/resources/views/settings/labels.blade.php index a29ffe21e1f75ee29c3dc6136a69afe9711553cd..21396ec5102210c76d4d95dbbf70b10d9d8b0081 100644 --- a/resources/views/settings/labels.blade.php +++ b/resources/views/settings/labels.blade.php @@ -45,7 +45,7 @@ {{ Form::label('labels_per_page', trans('admin/settings/general.labels_per_page')) }} </div> <div class="col-md-9"> - {{ Form::text('labels_per_page', Input::old('labels_per_page', $setting->labels_per_page), ['class' => 'form-control','style' => 'width: 100px;', 'aria-label'=>'labels_per_page']) }} + {{ Form::text('labels_per_page', old('labels_per_page', $setting->labels_per_page), ['class' => 'form-control','style' => 'width: 100px;', 'aria-label'=>'labels_per_page']) }} {!! $errors->first('labels_per_page', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> @@ -56,7 +56,7 @@ </div> <div class="col-md-2 form-group"> <div class="input-group"> - {{ Form::text('labels_fontsize', Input::old('labels_fontsize', $setting->labels_fontsize), ['class' => 'form-control', 'aria-label'=>'labels_fontsize']) }} + {{ Form::text('labels_fontsize', old('labels_fontsize', $setting->labels_fontsize), ['class' => 'form-control', 'aria-label'=>'labels_fontsize']) }} <div class="input-group-addon">{{ trans('admin/settings/general.text_pt') }}</div> </div> </div> @@ -71,13 +71,13 @@ </div> <div class="col-md-3 form-group"> <div class="input-group"> - {{ Form::text('labels_width', Input::old('labels_width', $setting->labels_width), ['class' => 'form-control', 'aria-label'=>'labels_width']) }} + {{ Form::text('labels_width', old('labels_width', $setting->labels_width), ['class' => 'form-control', 'aria-label'=>'labels_width']) }} <div class="input-group-addon">{{ trans('admin/settings/general.width_w') }}</div> </div> </div> <div class="col-md-3 form-group" style="margin-left: 10px"> <div class="input-group"> - {{ Form::text('labels_height', Input::old('labels_height', $setting->labels_height), ['class' => 'form-control', 'aria-label'=>'labels_height']) }} + {{ Form::text('labels_height', old('labels_height', $setting->labels_height), ['class' => 'form-control', 'aria-label'=>'labels_height']) }} <div class="input-group-addon">{{ trans('admin/settings/general.height_h') }}</div> </div> </div> @@ -93,13 +93,13 @@ </div> <div class="col-md-3 form-group"> <div class="input-group"> - {{ Form::text('labels_display_sgutter', Input::old('labels_display_sgutter', $setting->labels_display_sgutter), ['class' => 'form-control', 'aria-label'=>'labels_display_sgutter']) }} + {{ Form::text('labels_display_sgutter', old('labels_display_sgutter', $setting->labels_display_sgutter), ['class' => 'form-control', 'aria-label'=>'labels_display_sgutter']) }} <div class="input-group-addon">{{ trans('admin/settings/general.horizontal') }}</div> </div> </div> <div class="col-md-3 form-group" style="margin-left: 10px"> <div class="input-group"> - {{ Form::text('labels_display_bgutter', Input::old('labels_display_bgutter', $setting->labels_display_bgutter), ['class' => 'form-control', 'aria-label'=>'labels_display_bgutter']) }} + {{ Form::text('labels_display_bgutter', old('labels_display_bgutter', $setting->labels_display_bgutter), ['class' => 'form-control', 'aria-label'=>'labels_display_bgutter']) }} <div class="input-group-addon">{{ trans('admin/settings/general.vertical') }}</div> </div> </div> @@ -115,21 +115,21 @@ </div> <div class="col-md-3 form-group"> <div class="input-group" style="margin-bottom: 15px;"> - {{ Form::text('labels_pmargin_top', Input::old('labels_pmargin_top', $setting->labels_pmargin_top), ['class' => 'form-control', 'aria-label'=>'labels_pmargin_top']) }} + {{ Form::text('labels_pmargin_top', old('labels_pmargin_top', $setting->labels_pmargin_top), ['class' => 'form-control', 'aria-label'=>'labels_pmargin_top']) }} <div class="input-group-addon">{{ trans('admin/settings/general.top') }}</div> </div> <div class="input-group"> - {{ Form::text('labels_pmargin_right', Input::old('labels_pmargin_right', $setting->labels_pmargin_right), ['class' => 'form-control', 'aria-label'=>'labels_pmargin_right']) }} + {{ Form::text('labels_pmargin_right', old('labels_pmargin_right', $setting->labels_pmargin_right), ['class' => 'form-control', 'aria-label'=>'labels_pmargin_right']) }} <div class="input-group-addon">{{ trans('admin/settings/general.right') }}</div> </div> </div> <div class="col-md-3 form-group" style="margin-left: 10px; "> <div class="input-group" style="margin-bottom: 15px;"> - {{ Form::text('labels_pmargin_bottom', Input::old('labels_pmargin_bottom', $setting->labels_pmargin_bottom), ['class' => 'form-control', 'aria-label'=>'labels_pmargin_bottom']) }} + {{ Form::text('labels_pmargin_bottom', old('labels_pmargin_bottom', $setting->labels_pmargin_bottom), ['class' => 'form-control', 'aria-label'=>'labels_pmargin_bottom']) }} <div class="input-group-addon">{{ trans('admin/settings/general.bottom') }}</div> </div> <div class="input-group"> - {{ Form::text('labels_pmargin_left', Input::old('labels_pmargin_left', $setting->labels_pmargin_left), ['class' => 'form-control', 'aria-label'=>'labels_pmargin_left']) }} + {{ Form::text('labels_pmargin_left', old('labels_pmargin_left', $setting->labels_pmargin_left), ['class' => 'form-control', 'aria-label'=>'labels_pmargin_left']) }} <div class="input-group-addon">{{ trans('admin/settings/general.left') }}</div> </div> @@ -146,13 +146,13 @@ </div> <div class="col-md-3 form-group"> <div class="input-group"> - {{ Form::text('labels_pagewidth', Input::old('labels_pagewidth', $setting->labels_pagewidth), ['class' => 'form-control', 'aria-label'=>'labels_pagewidth']) }} + {{ Form::text('labels_pagewidth', old('labels_pagewidth', $setting->labels_pagewidth), ['class' => 'form-control', 'aria-label'=>'labels_pagewidth']) }} <div class="input-group-addon">{{ trans('admin/settings/general.width_w') }}</div> </div> </div> <div class="col-md-3 form-group" style="margin-left: 10px"> <div class="input-group"> - {{ Form::text('labels_pageheight', Input::old('labels_pageheight', $setting->labels_pageheight), ['class' => 'form-control', 'aria-label'=>'labels_pageheight']) }} + {{ Form::text('labels_pageheight', old('labels_pageheight', $setting->labels_pageheight), ['class' => 'form-control', 'aria-label'=>'labels_pageheight']) }} <div class="input-group-addon">{{ trans('admin/settings/general.height_h') }}</div> </div> </div> @@ -169,23 +169,23 @@ <div class="col-md-9"> <div class="checkbox"> <label for="labels_display_name"> - {{ Form::checkbox('labels_display_name', '1', Input::old('labels_display_name', $setting->labels_display_name),['class' => 'minimal', 'aria-label'=>'labels_display_name']) }} + {{ Form::checkbox('labels_display_name', '1', old('labels_display_name', $setting->labels_display_name),['class' => 'minimal', 'aria-label'=>'labels_display_name']) }} {{ trans('admin/hardware/form.name') }} </label> <label for="labels_display_serial"> - {{ Form::checkbox('labels_display_serial', '1', Input::old('labels_display_serial', $setting->labels_display_serial),['class' => 'minimal', 'aria-label'=>'labels_display_serial']) }} + {{ Form::checkbox('labels_display_serial', '1', old('labels_display_serial', $setting->labels_display_serial),['class' => 'minimal', 'aria-label'=>'labels_display_serial']) }} {{ trans('admin/hardware/form.serial') }} </label> <label for="labels_display_tag"> - {{ Form::checkbox('labels_display_tag', '1', Input::old('labels_display_tag', $setting->labels_display_tag),['class' => 'minimal', 'aria-label'=>'labels_display_tag']) }} + {{ Form::checkbox('labels_display_tag', '1', old('labels_display_tag', $setting->labels_display_tag),['class' => 'minimal', 'aria-label'=>'labels_display_tag']) }} {{ trans('admin/hardware/form.tag') }} </label> <label for="labels_display_model"> - {{ Form::checkbox('labels_display_model', '1', Input::old('labels_display_model', $setting->labels_display_model),['class' => 'minimal', 'aria-label'=>'labels_display_model']) }} + {{ Form::checkbox('labels_display_model', '1', old('labels_display_model', $setting->labels_display_model),['class' => 'minimal', 'aria-label'=>'labels_display_model']) }} {{ trans('admin/hardware/form.model') }} </label> <label for="labels_display_company_name"> - {{ Form::checkbox('labels_display_company_name', '1', Input::old('labels_display_company_name', $setting->labels_display_company_name),['class' => 'minimal', 'aria-label'=>'labels_display_company_name']) }} + {{ Form::checkbox('labels_display_company_name', '1', old('labels_display_company_name', $setting->labels_display_company_name),['class' => 'minimal', 'aria-label'=>'labels_display_company_name']) }} {{ trans('admin/companies/table.name') }} </label> diff --git a/resources/views/settings/localization.blade.php b/resources/views/settings/localization.blade.php index 2688fba94c74d1d31148014bfdc89359f5322e56..76063944cfcad3ab159b41afc78aed4c1b62a3ee 100644 --- a/resources/views/settings/localization.blade.php +++ b/resources/views/settings/localization.blade.php @@ -72,7 +72,7 @@ {{ Form::label('default_currency', trans('admin/settings/general.default_currency')) }} </div> <div class="col-md-9"> - {{ Form::text('default_currency', Input::old('default_currency', $setting->default_currency), array('class' => 'form-control','placeholder' => 'USD', 'maxlength'=>'3', 'style'=>'width: 60px;')) }} + {{ Form::text('default_currency', old('default_currency', $setting->default_currency), array('class' => 'form-control','placeholder' => 'USD', 'maxlength'=>'3', 'style'=>'width: 60px;')) }} {!! $errors->first('default_currency', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> diff --git a/resources/views/settings/security.blade.php b/resources/views/settings/security.blade.php index 95869f5a1a986dfc5338427044c2f67beca7a6ee..dfac9eea0793e2b33019a201170853519621267b 100644 --- a/resources/views/settings/security.blade.php +++ b/resources/views/settings/security.blade.php @@ -81,7 +81,7 @@ </div> <div class="col-md-9"> <label for="pwd_secure_uncommon"><span class="sr-only">Prevent common insecure passwords</span> - {{ Form::checkbox('pwd_secure_uncommon', '1', Input::old('pwd_secure_uncommon', $setting->pwd_secure_uncommon),array('class' => 'minimal', 'aria-label'=>'pwd_secure_uncommon')) }} + {{ Form::checkbox('pwd_secure_uncommon', '1', old('pwd_secure_uncommon', $setting->pwd_secure_uncommon),array('class' => 'minimal', 'aria-label'=>'pwd_secure_uncommon')) }} {{ trans('general.yes') }} </label> {!! $errors->first('pwd_secure_uncommon', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} @@ -99,16 +99,16 @@ </div> <div class="col-md-9"> - {{ Form::checkbox("pwd_secure_complexity['letters']", 'letters', Input::old('pwd_secure_uncommon', strpos($setting->pwd_secure_complexity, 'letters')!==false), array('class' => 'minimal', 'aria-label'=>'pwd_secure_complexity')) }} + {{ Form::checkbox("pwd_secure_complexity['letters']", 'letters', old('pwd_secure_uncommon', strpos($setting->pwd_secure_complexity, 'letters')!==false), array('class' => 'minimal', 'aria-label'=>'pwd_secure_complexity')) }} Require at least one letter <br> - {{ Form::checkbox("pwd_secure_complexity['numbers']", 'numbers', Input::old('pwd_secure_uncommon', strpos($setting->pwd_secure_complexity, 'numbers')!==false), array('class' => 'minimal', 'aria-label'=>'pwd_secure_complexity')) }} + {{ Form::checkbox("pwd_secure_complexity['numbers']", 'numbers', old('pwd_secure_uncommon', strpos($setting->pwd_secure_complexity, 'numbers')!==false), array('class' => 'minimal', 'aria-label'=>'pwd_secure_complexity')) }} Require at least one number<br> - {{ Form::checkbox("pwd_secure_complexity['symbols']", 'symbols', Input::old('pwd_secure_uncommon', strpos($setting->pwd_secure_complexity, 'symbols')!==false), array('class' => 'minimal', 'aria-label'=>'pwd_secure_complexity')) }} + {{ Form::checkbox("pwd_secure_complexity['symbols']", 'symbols', old('pwd_secure_uncommon', strpos($setting->pwd_secure_complexity, 'symbols')!==false), array('class' => 'minimal', 'aria-label'=>'pwd_secure_complexity')) }} Require at least one symbol<br> - {{ Form::checkbox("pwd_secure_complexity['case_diff']", 'case_diff', Input::old('pwd_secure_uncommon', strpos($setting->pwd_secure_complexity, 'case_diff')!==false), array('class' => 'minimal', 'aria-label'=>'pwd_secure_complexity')) }} + {{ Form::checkbox("pwd_secure_complexity['case_diff']", 'case_diff', old('pwd_secure_uncommon', strpos($setting->pwd_secure_complexity, 'case_diff')!==false), array('class' => 'minimal', 'aria-label'=>'pwd_secure_complexity')) }} Require at least one uppercase and one lowercase <p class="help-block"> @@ -129,7 +129,7 @@ @if (config('app.lock_passwords')) <p class="help-block">{{ trans('general.feature_disabled') }}</p> @else - {{ Form::checkbox('login_remote_user_enabled', '1', Input::old('login_remote_user_enabled', $setting->login_remote_user_enabled),array('class' => 'minimal', 'aria-label'=>'login_remote_user')) }} + {{ Form::checkbox('login_remote_user_enabled', '1', old('login_remote_user_enabled', $setting->login_remote_user_enabled),array('class' => 'minimal', 'aria-label'=>'login_remote_user')) }} {{ Form::label('login_remote_user_enabled', trans('admin/settings/general.login_remote_user_enabled_text')) }} {!! $errors->first('login_remote_user_enabled', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} <p class="help-block"> @@ -144,7 +144,7 @@ </p> <!-- Custom logout url to redirect to authentication provider --> {{ Form::label('login_remote_user_custom_logout_url', trans('admin/settings/general.login_remote_user_custom_logout_url_text')) }} - {{ Form::text('login_remote_user_custom_logout_url', Input::old('login_remote_user_custom_logout_url', $setting->login_remote_user_custom_logout_url),array('class' => 'form-control', 'aria-label'=>'login_remote_user_custom_logout_url')) }} + {{ Form::text('login_remote_user_custom_logout_url', old('login_remote_user_custom_logout_url', $setting->login_remote_user_custom_logout_url),array('class' => 'form-control', 'aria-label'=>'login_remote_user_custom_logout_url')) }} {!! $errors->first('login_remote_user_custom_logout_url', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} <p class="help-block"> @@ -153,7 +153,7 @@ <!-- Disable other logins mechanism --> <label> - {{ Form::checkbox('login_common_disabled', '1', Input::old('login_common_disabled', $setting->login_common_disabled),array('class' => 'minimal', 'aria-label'=>'login_common_disabled')) }} + {{ Form::checkbox('login_common_disabled', '1', old('login_common_disabled', $setting->login_common_disabled),array('class' => 'minimal', 'aria-label'=>'login_common_disabled')) }} {{ trans('admin/settings/general.login_common_disabled_text') }} </label> {!! $errors->first('login_common_disabled', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} diff --git a/resources/views/setup/user.blade.php b/resources/views/setup/user.blade.php index 3543bde836d349d06f33983bdee39929af5dee4f..f3222002e216b40d3ccf05aa0aa48d11f691d7b8 100644 --- a/resources/views/setup/user.blade.php +++ b/resources/views/setup/user.blade.php @@ -101,7 +101,7 @@ Create a User :: <!-- email format --> <div class="form-group col-lg-6{{ (\App\Helpers\Helper::checkIfRequired(\App\Models\User::class, 'email_format')) ? ' required' : '' }} {{ $errors->has('email_format') ? 'error' : '' }}"> {{ Form::label('email_format', trans('general.email_format')) }} - {!! Form::username_format('email_format', Input::old('email_format', 'filastname'), 'select2') !!} + {!! Form::username_format('email_format', old('email_format', 'filastname'), 'select2') !!} {!! $errors->first('email_format', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> @@ -111,14 +111,14 @@ Create a User :: <!-- first name --> <div class="form-group col-lg-6{{ (\App\Helpers\Helper::checkIfRequired(\App\Models\User::class, 'first_name')) ? ' required' : '' }} {{ $errors->has('first_name') ? 'error' : '' }}"> {{ Form::label('first_name', trans('general.first_name')) }} - {{ Form::text('first_name', Input::old('first_name'), array('class' => 'form-control','placeholder' => 'Jane')) }} + {{ Form::text('first_name', old('first_name'), array('class' => 'form-control','placeholder' => 'Jane')) }} {!! $errors->first('first_name', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> <!-- last name --> <div class="form-group col-lg-6 required {{ $errors->has('last_name') ? 'error' : '' }}"> {{ Form::label('last_name', trans('general.last_name')) }} - {{ Form::text('last_name', Input::old('last_name'), array('class' => 'form-control','placeholder' => 'Smith')) }} + {{ Form::text('last_name', old('last_name'), array('class' => 'form-control','placeholder' => 'Smith')) }} {!! $errors->first('last_name', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> @@ -134,7 +134,7 @@ Create a User :: <!-- username --> <div class="form-group col-lg-6{{ (\App\Helpers\Helper::checkIfRequired(\App\Models\User::class, 'username')) ? ' required' : '' }} {{ $errors->has('username') ? 'error' : '' }}"> {{ Form::label('username', trans('admin/users/table.username')) }} - {{ Form::text('username', Input::old('username'), array('class' => 'form-control','placeholder' => 'jsmith')) }} + {{ Form::text('username', old('username'), array('class' => 'form-control','placeholder' => 'jsmith')) }} {!! $errors->first('username', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> diff --git a/resources/views/suppliers/edit.blade.php b/resources/views/suppliers/edit.blade.php index 59e0d852fc8f6e3c2745e9269331a3632102f5dc..ac85915aa8fe25830aeebb394fa9c002cd88a6a1 100755 --- a/resources/views/suppliers/edit.blade.php +++ b/resources/views/suppliers/edit.blade.php @@ -16,7 +16,7 @@ <div class="form-group {{ $errors->has('contact') ? ' has-error' : '' }}"> {{ Form::label('contact', trans('admin/suppliers/table.contact'), array('class' => 'col-md-3 control-label')) }} <div class="col-md-7"> - {{Form::text('contact', Input::old('contact', $item->contact), array('class' => 'form-control')) }} + {{Form::text('contact', old('contact', $item->contact), array('class' => 'form-control')) }} {!! $errors->first('contact', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -26,7 +26,7 @@ <div class="form-group {{ $errors->has('fax') ? ' has-error' : '' }}"> {{ Form::label('fax', trans('admin/suppliers/table.fax'), array('class' => 'col-md-3 control-label')) }} <div class="col-md-7"> - {{Form::text('fax', Input::old('fax', $item->fax), array('class' => 'form-control')) }} + {{Form::text('fax', old('fax', $item->fax), array('class' => 'form-control')) }} {!! $errors->first('fax', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -36,7 +36,7 @@ <div class="form-group {{ $errors->has('url') ? ' has-error' : '' }}"> {{ Form::label('url', trans('admin/suppliers/table.url'), array('class' => 'col-md-3 control-label')) }} <div class="col-md-7"> - {{Form::text('url', Input::old('url', $item->url), array('class' => 'form-control')) }} + {{Form::text('url', old('url', $item->url), array('class' => 'form-control')) }} {!! $errors->first('url', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/resources/views/users/bulk-edit.blade.php b/resources/views/users/bulk-edit.blade.php index e85767d4138acdd9529f3aadef295d68f61ec526..b62a73b2a2374e4407b1309006ff4e3c0e7181e2 100644 --- a/resources/views/users/bulk-edit.blade.php +++ b/resources/views/users/bulk-edit.blade.php @@ -50,7 +50,7 @@ <div class="form-group {{ $errors->has('locale') ? 'has-error' : '' }}"> <label class="col-md-3 control-label" for="locale">{{ trans('general.language') }}</label> <div class="col-md-8"> - {!! Form::locales('locale', Input::old('locale', $user->locale), 'select2') !!} + {!! Form::locales('locale', old('locale', $user->locale), 'select2') !!} {!! $errors->first('locale', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> @@ -64,8 +64,8 @@ <div class="checkbox"> <label for="activated"> {{ Form::radio('activated', '', true, ['aria-label'=>'activated']) }} Do not change activation status <br> - {{ Form::radio('activated', '1', Input::old('activated'), ['aria-label'=>'activated']) }} User is activated<br> - {{ Form::radio('activated', '0', Input::old('activated'), ['aria-label'=>'activated']) }} User is de-activated + {{ Form::radio('activated', '1', old('activated'), ['aria-label'=>'activated']) }} User is activated<br> + {{ Form::radio('activated', '0', old('activated'), ['aria-label'=>'activated']) }} User is de-activated </label> </div> diff --git a/resources/views/users/edit.blade.php b/resources/views/users/edit.blade.php index 93500ef48e5c67e31e385239b59e34630832a723..85766b4d69e82de3049a3e56cd2aa903b1adbbb4 100755 --- a/resources/views/users/edit.blade.php +++ b/resources/views/users/edit.blade.php @@ -88,7 +88,7 @@ <div class="form-group {{ $errors->has('first_name') ? 'has-error' : '' }}"> <label class="col-md-3 control-label" for="first_name">{{ trans('general.first_name') }}</label> <div class="col-md-8 {{ (\App\Helpers\Helper::checkIfRequired($user, 'first_name')) ? ' required' : '' }}"> - <input class="form-control" type="text" name="first_name" id="first_name" value="{{ Input::old('first_name', $user->first_name) }}" /> + <input class="form-control" type="text" name="first_name" id="first_name" value="{{ old('first_name', $user->first_name) }}" /> {!! $errors->first('first_name', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> @@ -97,7 +97,7 @@ <div class="form-group {{ $errors->has('last_name') ? 'has-error' : '' }}"> <label class="col-md-3 control-label" for="last_name">{{ trans('general.last_name') }} </label> <div class="col-md-8{{ (\App\Helpers\Helper::checkIfRequired($user, 'last_name')) ? ' required' : '' }}"> - <input class="form-control" type="text" name="last_name" id="last_name" value="{{ Input::old('last_name', $user->last_name) }}" /> + <input class="form-control" type="text" name="last_name" id="last_name" value="{{ old('last_name', $user->last_name) }}" /> {!! $errors->first('last_name', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> @@ -234,7 +234,7 @@ <div class="form-group {{ $errors->has('locale') ? 'has-error' : '' }}"> <label class="col-md-3 control-label" for="locale">{{ trans('general.language') }}</label> <div class="col-md-8"> - {!! Form::locales('locale', Input::old('locale', $user->locale), 'select2') !!} + {!! Form::locales('locale', old('locale', $user->locale), 'select2') !!} {!! $errors->first('locale', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> @@ -286,7 +286,7 @@ <div class="form-group {{ $errors->has('phone') ? 'has-error' : '' }}"> <label class="col-md-3 control-label" for="phone">{{ trans('admin/users/table.phone') }}</label> <div class="col-md-4"> - <input class="form-control" type="text" name="phone" id="phone" value="{{ Input::old('phone', $user->phone) }}" /> + <input class="form-control" type="text" name="phone" id="phone" value="{{ old('phone', $user->phone) }}" /> {!! $errors->first('phone', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> @@ -295,7 +295,7 @@ <div class="form-group {{ $errors->has('website') ? ' has-error' : '' }}"> <label for="website" class="col-md-3 control-label">{{ trans('general.website') }}</label> <div class="col-md-8"> - <input class="form-control" type="text" name="website" id="website" value="{{ Input::old('website', $user->website) }}" /> + <input class="form-control" type="text" name="website" id="website" value="{{ old('website', $user->website) }}" /> {!! $errors->first('website', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> @@ -304,7 +304,7 @@ <div class="form-group{{ $errors->has('address') ? ' has-error' : '' }}"> <label class="col-md-3 control-label" for="address">{{ trans('general.address') }}</label> <div class="col-md-4"> - <input class="form-control" type="text" name="address" id="address" value="{{ Input::old('address', $user->address) }}" /> + <input class="form-control" type="text" name="address" id="address" value="{{ old('address', $user->address) }}" /> {!! $errors->first('address', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> @@ -313,7 +313,7 @@ <div class="form-group{{ $errors->has('city') ? ' has-error' : '' }}"> <label class="col-md-3 control-label" for="city">{{ trans('general.city') }}</label> <div class="col-md-4"> - <input class="form-control" type="text" name="city" id="city" aria-label="city" value="{{ Input::old('city', $user->city) }}" /> + <input class="form-control" type="text" name="city" id="city" aria-label="city" value="{{ old('city', $user->city) }}" /> {!! $errors->first('city', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> @@ -322,7 +322,7 @@ <div class="form-group{{ $errors->has('state') ? ' has-error' : '' }}"> <label class="col-md-3 control-label" for="state">{{ trans('general.state') }}</label> <div class="col-md-4"> - <input class="form-control" type="text" name="state" id="state" value="{{ Input::old('state', $user->state) }}" maxlength="3" /> + <input class="form-control" type="text" name="state" id="state" value="{{ old('state', $user->state) }}" maxlength="3" /> {!! $errors->first('state', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> @@ -331,7 +331,7 @@ <div class="form-group{{ $errors->has('country') ? ' has-error' : '' }}"> <label class="col-md-3 control-label" for="country">{{ trans('general.country') }}</label> <div class="col-md-4"> - {!! Form::countries('country', Input::old('country', $user->country), 'select2') !!} + {!! Form::countries('country', old('country', $user->country), 'select2') !!} {!! $errors->first('country', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> @@ -340,7 +340,7 @@ <div class="form-group{{ $errors->has('zip') ? ' has-error' : '' }}"> <label class="col-md-3 control-label" for="zip">{{ trans('general.zip') }}</label> <div class="col-md-4"> - <input class="form-control" type="text" name="zip" id="zip" value="{{ Input::old('zip', $user->zip) }}" maxlength="10" /> + <input class="form-control" type="text" name="zip" id="zip" value="{{ old('zip', $user->zip) }}" maxlength="10" /> {!! $errors->first('zip', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} </div> </div> @@ -448,7 +448,7 @@ <div class="form-group{!! $errors->has('notes') ? ' has-error' : '' !!}"> <label for="notes" class="col-md-3 control-label">{{ trans('admin/users/table.notes') }}</label> <div class="col-md-8"> - <textarea class="form-control" id="notes" name="notes">{{ Input::old('notes', $user->notes) }}</textarea> + <textarea class="form-control" id="notes" name="notes">{{ old('notes', $user->notes) }}</textarea> {!! $errors->first('notes', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} </div> </div> diff --git a/webpack.mix.js b/webpack.mix.js index 0e6f549891c3cd845334dac36f1f268c0dda88ef..806c889e3108db65c0055d59f5f6dd3232278ad1 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -34,7 +34,6 @@ mix './public/js/build' ).sourceMaps() .scripts([ - './node_modules/jquery/jquery.js', './node_modules/jquery-ui/jquery-ui.js', './public/js/build/vue.js', //this is the modularized nifty Vue.js thing we just built, above! './node_modules/tether/dist/js/tether.min.js',