diff --git a/resources/views/hardware/checkin.blade.php b/resources/views/hardware/checkin.blade.php index 1223996b84..c680949f5e 100755 --- a/resources/views/hardware/checkin.blade.php +++ b/resources/views/hardware/checkin.blade.php @@ -2,126 +2,115 @@ {{-- Page title --}} @section('title') -{{ trans('admin/hardware/general.checkin') }} -@parent + {{ trans('admin/hardware/general.checkin') }} + @parent @stop {{-- Page content --}} @section('content') - + .input-group { + padding-left: 0px !important; + } + -
- -
-
-
-

{{ trans('admin/hardware/form.tag') }} {{ $asset->asset_tag }}

-
+
+ +
+
+
+

{{ trans('admin/hardware/form.tag') }} {{ $asset->asset_tag }}

+
-
-
- @if ($backto=='user') -
- @else - - @endif - {{csrf_field()}} +
+
+ @if ($backto=='user') + + @else + + @endif + {{csrf_field()}} - -
- {{ Form::label('model', trans('admin/hardware/form.model'), array('class' => 'col-md-3 control-label')) }} -
-

- @if (($asset->model) && ($asset->model->name)) - {{ $asset->model->name }} + +

+ {{ Form::label('model', trans('admin/hardware/form.model'), array('class' => 'col-md-3 control-label')) }} +
+

+ @if (($asset->model) && ($asset->model->name)) + {{ $asset->model->name }} - @else - + @else + This asset's model is invalid! The asset should be edited to correct this before attempting to check it in or out. - @endif -

-
-
+ @endif +

+
+
- - - @can('update', $asset) -
- {{ Form::label('name', trans('admin/hardware/form.name'), array('class' => 'col-md-3 control-label')) }} -
- first('name', '') !!} -
-
- @else - @if ($asset->name!='') -
- {{ Form::label('name', trans('admin/hardware/form.name'), array('class' => 'col-md-3 control-label')) }} -
-

{{ $asset->name }}

-
-
- @endif - @endcan + +
+ {{ Form::label('name', trans('admin/hardware/form.name'), array('class' => 'col-md-3 control-label')) }} +
+ + {!! $errors->first('name', '') !!} +
+
- -
- {{ Form::label('status_id', trans('admin/hardware/form.status'), array('class' => 'col-md-3 control-label')) }} -
- {{ Form::select('status_id', $statusLabel_list, '', array('class'=>'select2', 'style'=>'width:100%','id' =>'modal-statuslabel_types', 'aria-label'=>'status_id')) }} - {!! $errors->first('status_id', '') !!} -
-
+ +
+ {{ Form::label('status_id', trans('admin/hardware/form.status'), array('class' => 'col-md-3 control-label')) }} +
+ {{ Form::select('status_id', $statusLabel_list, '', array('class'=>'select2', 'style'=>'width:100%','id' =>'modal-statuslabel_types', 'aria-label'=>'status_id')) }} + {!! $errors->first('status_id', '') !!} +
+
- @include ('partials.forms.edit.location-select', ['translated_name' => trans('general.location'), 'fieldname' => 'location_id', 'help_text' => ($asset->defaultLoc) ? 'You can choose to check this asset in to a location other than the default location of '.$asset->defaultLoc->name.' if one is set.' : null]) + @include ('partials.forms.edit.location-select', ['translated_name' => trans('general.location'), 'fieldname' => 'location_id', 'help_text' => ($asset->defaultLoc) ? 'You can choose to check this asset in to a location other than the default location of '.$asset->defaultLoc->name.' if one is set.' : null]) - -
- {{ Form::label('checkin_at', trans('admin/hardware/form.checkin_date'), array('class' => 'col-md-3 control-label')) }} -
-
-
- - -
- {!! $errors->first('checkin_at', '') !!} -
-
-
+ +
+ {{ Form::label('checkin_at', trans('admin/hardware/form.checkin_date'), array('class' => 'col-md-3 control-label')) }} +
+
+
+ + +
+ {!! $errors->first('checkin_at', '') !!} +
+
+
- -
+ +
- {{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }} + {{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }} -
+
- {!! $errors->first('note', '') !!} -
-
- - -
-
+ name="note">{{ old('note', $asset->note) }} + {!! $errors->first('note', '') !!} +
+
+ + +
+
-
+
+
-
-@stop +@stop \ No newline at end of file diff --git a/resources/views/hardware/checkout.blade.php b/resources/views/hardware/checkout.blade.php index c65c7a1099..c90570639b 100755 --- a/resources/views/hardware/checkout.blade.php +++ b/resources/views/hardware/checkout.blade.php @@ -2,183 +2,160 @@ {{-- Page title --}} @section('title') - {{ trans('admin/hardware/general.checkout') }} -@parent + {{ trans('admin/hardware/general.checkout') }} + @parent @stop {{-- Page content --}} @section('content') - + .input-group { + padding-left: 0px !important; + } + -
- -
-
-
-
-

{{ trans('admin/hardware/form.tag') }} {{ $asset->asset_tag }}

-
-
- {{csrf_field()}} - -
- {{ Form::label('model', trans('admin/hardware/form.model'), array('class' => 'col-md-3 control-label')) }} -
-

- @if (($asset->model) && ($asset->model->name)) - {{ $asset->model->name }} +

+ +
+
+ +
+

{{ trans('admin/hardware/form.tag') }} {{ $asset->asset_tag }}

+
+
+ {{csrf_field()}} + +
+ {{ Form::label('model', trans('admin/hardware/form.model'), array('class' => 'col-md-3 control-label')) }} +
+

+ @if (($asset->model) && ($asset->model->name)) + {{ $asset->model->name }} - @else - + @else + This asset's model is invalid! The asset should be edited to correct this before attempting to check it in or out. - @endif -

-
-
- - -
- {{ Form::label('name', trans('admin/hardware/form.name'), array('class' => 'col-md-3 control-label')) }} -
- - {!! $errors->first('name', '') !!} -
-
- @endif - - - - @can('update', $asset) -
- {{ Form::label('name', trans('admin/hardware/form.name'), array('class' => 'col-md-3 control-label')) }} -
- - {!! $errors->first('name', ' :message') !!} -
-
- @else - @if ($asset->name!='') -
- {{ Form::label('name', trans('admin/hardware/form.name'), array('class' => 'col-md-3 control-label')) }} -
-

{{ $asset->name }}

-
-
- @endif - @endcan - - @include ('partials.forms.checkout-selector', ['user_select' => 'true','asset_select' => 'true', 'location_select' => 'true']) - - @include ('partials.forms.edit.user-select', ['translated_name' => trans('general.user'), 'fieldname' => 'assigned_user', 'required'=>'true']) - - - @include ('partials.forms.edit.asset-select', ['translated_name' => trans('general.asset'), 'fieldname' => 'assigned_asset', 'unselect' => 'true', 'style' => 'display:none;', 'required'=>'true']) - - @include ('partials.forms.edit.location-select', ['translated_name' => trans('general.location'), 'fieldname' => 'assigned_location', 'style' => 'display:none;', 'required'=>'true']) - - - - -
- {{ Form::label('checkout_at', trans('admin/hardware/form.checkout_date'), array('class' => 'col-md-3 control-label')) }} -
-
- - -
- {!! $errors->first('checkout_at', '') !!} -
-
- - -
- {{ Form::label('expected_checkin', trans('admin/hardware/form.expected_checkin'), array('class' => 'col-md-3 control-label')) }} -
-
- - -
- {!! $errors->first('expected_checkin', '') !!} -
-
- - -
- {{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }} -
- - {!! $errors->first('note', '') !!} -
-
- - @if ($asset->requireAcceptance() || $asset->getEula() || ($snipeSettings->slack_endpoint!='')) -
-
-
- - @if ($asset->requireAcceptance()) - - {{ trans('admin/categories/general.required_acceptance') }} -
- @endif - - @if ($asset->getEula()) - - {{ trans('admin/categories/general.required_eula') }} -
- @endif - - @if ($snipeSettings->slack_endpoint!='') - - A slack message will be sent @endif +

+ + +
+ {{ Form::label('name', trans('admin/hardware/form.name'), array('class' => 'col-md-3 control-label')) }} +
+ + {!! $errors->first('name', '') !!} +
+
+ @include ('partials.forms.checkout-selector', ['user_select' => 'true','asset_select' => 'true', 'location_select' => 'true']) + + @include ('partials.forms.edit.user-select', ['translated_name' => trans('general.user'), 'fieldname' => 'assigned_user', 'required'=>'true']) + + + @include ('partials.forms.edit.asset-select', ['translated_name' => trans('general.asset'), 'fieldname' => 'assigned_asset', 'unselect' => 'true', 'style' => 'display:none;', 'required'=>'true']) + + @include ('partials.forms.edit.location-select', ['translated_name' => trans('general.location'), 'fieldname' => 'assigned_location', 'style' => 'display:none;', 'required'=>'true']) + + + + +
+ {{ Form::label('checkout_at', trans('admin/hardware/form.checkout_date'), array('class' => 'col-md-3 control-label')) }} +
+
+ + +
+ {!! $errors->first('checkout_at', '') !!} +
+
+ + +
+ {{ Form::label('expected_checkin', trans('admin/hardware/form.expected_checkin'), array('class' => 'col-md-3 control-label')) }} +
+
+ + +
+ {!! $errors->first('expected_checkin', '') !!} +
+
+ + +
+ {{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }} +
+ + {!! $errors->first('note', '') !!} +
+
+ + @if ($asset->requireAcceptance() || $asset->getEula() || ($snipeSettings->slack_endpoint!='')) +
+
+
+ + @if ($asset->requireAcceptance()) + + {{ trans('admin/categories/general.required_acceptance') }} +
+ @endif + + @if ($asset->getEula()) + + {{ trans('admin/categories/general.required_eula') }} +
+ @endif + + @if ($snipeSettings->slack_endpoint!='') + + A slack message will be sent + @endif +
+
+
+ @endif + +
+ - @endif + +
+
-
- -
- - - -
@stop @section('moar_scripts') @include('partials/assets-assigned') -@stop +@stop \ No newline at end of file