A free open source IT asset/license management system
Only show radio inputs for location in checkin view
Ivan Nieto Vivancof4ca29b4a81d
diff --git a/resources/views/hardware/checkin.blade.php b/resources/views/hardware/checkin.blade.phpindex f7fe067c8a..dd6237b1bd 100755--- a/resources/views/hardware/checkin.blade.php+++ b/resources/views/hardware/checkin.blade.php@@ -73,7 +73,7 @@</div></div>- @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, 'hide_location_radio' => true])<!-- Checkout/Checkin Date --><div class="form-group{{ $errors->has('checkin_at') ? ' has-error' : '' }}">diff --git a/resources/views/partials/forms/edit/location-select.blade.php b/resources/views/partials/forms/edit/location-select.blade.phpindex cdc4bcf670..c0ce9f9b8e 100644--- a/resources/views/partials/forms/edit/location-select.blade.php+++ b/resources/views/partials/forms/edit/location-select.blade.php@@ -30,21 +30,21 @@</div>@endif-<!-- Update actual location -->-<div class="form-group">- <div class="col-md-9 col-md-offset-3">- <label class="form-control">- {{ Form::radio('update_default_location', '1', old('update_default_location'), ['checked'=> 'checked', 'aria-label'=>'update_default_location']) }}- {{ trans('admin/hardware/form.asset_location') }}- </label>- <label class="form-control">- {{ Form::radio('update_default_location', '0', old('update_default_location'), ['aria-label'=>'update_default_location']) }}- {{ trans('admin/hardware/form.asset_location_update_default_current') }}- </label>-- </div>-</div> <!--/form-group-->-+ @if (isset($hide_location_radio))+ <!-- Update actual location -->+ <div class="form-group">+ <div class="col-md-9 col-md-offset-3">+ <label class="form-control">+ {{ Form::radio('update_default_location', '1', old('update_default_location'), ['checked'=> 'checked', 'aria-label'=>'update_default_location']) }}+ {{ trans('admin/hardware/form.asset_location') }}+ </label>+ <label class="form-control">+ {{ Form::radio('update_default_location', '0', old('update_default_location'), ['aria-label'=>'update_default_location']) }}+ {{ trans('admin/hardware/form.asset_location_update_default_current') }}+ </label>+ </div>+ </div> <!--/form-group-->+ @endif</div>