diff --git a/resources/views/hardware/checkin.blade.php b/resources/views/hardware/checkin.blade.php index 9d2a790c44..f7ba4cc173 100755 --- a/resources/views/hardware/checkin.blade.php +++ b/resources/views/hardware/checkin.blade.php @@ -46,14 +46,25 @@ @endif -
- {{ Form::label('name', trans('admin/hardware/form.name'), array('class' => 'col-md-3 control-label')) }} -
- - {!! $errors->first('name', ' :message') !!} + + @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
diff --git a/resources/views/hardware/checkout.blade.php b/resources/views/hardware/checkout.blade.php index 1ee1c9d249..afefca8c09 100755 --- a/resources/views/hardware/checkout.blade.php +++ b/resources/views/hardware/checkout.blade.php @@ -46,6 +46,15 @@ {!! $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'])