diff --git a/resources/views/partials/forms/edit/asset-select.blade.php b/resources/views/partials/forms/edit/asset-select.blade.php index 86dba8206fe5..763d7b248822 100644 --- a/resources/views/partials/forms/edit/asset-select.blade.php +++ b/resources/views/partials/forms/edit/asset-select.blade.php @@ -5,7 +5,7 @@ @if ($category_id = old($fieldname, (isset($item)) ? $item->{$fieldname} : '')) - @else diff --git a/resources/views/partials/forms/edit/company-select.blade.php b/resources/views/partials/forms/edit/company-select.blade.php index 9aaa5cafdf1a..4e84f2573d19 100644 --- a/resources/views/partials/forms/edit/company-select.blade.php +++ b/resources/views/partials/forms/edit/company-select.blade.php @@ -5,30 +5,27 @@ {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
+ @else
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
{!! $errors->first($fieldname, '
:message
') !!} diff --git a/resources/views/partials/forms/edit/department-select.blade.php b/resources/views/partials/forms/edit/department-select.blade.php index c695d04ef420..3ef25e77d499 100644 --- a/resources/views/partials/forms/edit/department-select.blade.php +++ b/resources/views/partials/forms/edit/department-select.blade.php @@ -5,7 +5,7 @@
@if ($location_id = old('location_id', (isset($user)) ? $user->location_id : '')) - @else diff --git a/resources/views/partials/forms/edit/location-select.blade.php b/resources/views/partials/forms/edit/location-select.blade.php index 6752657cb556..87ea85e87bcd 100644 --- a/resources/views/partials/forms/edit/location-select.blade.php +++ b/resources/views/partials/forms/edit/location-select.blade.php @@ -3,14 +3,13 @@ {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
- + @if($location_id = old($fieldname, (isset($item)) ? $item->{$fieldname} : '')) + + @endif +
diff --git a/resources/views/partials/forms/edit/manufacturer-select.blade.php b/resources/views/partials/forms/edit/manufacturer-select.blade.php index ba7d4e59d63a..7192ceddf5cd 100644 --- a/resources/views/partials/forms/edit/manufacturer-select.blade.php +++ b/resources/views/partials/forms/edit/manufacturer-select.blade.php @@ -6,7 +6,7 @@
- @if ($model_id = old($fieldname, ($item->{$fieldname} ?? request($fieldname) ?? ''))) - - @else - - @endif - +
diff --git a/resources/views/partials/forms/edit/status-select.blade.php b/resources/views/partials/forms/edit/status-select.blade.php index bd3c8dec2c22..c19719046532 100644 --- a/resources/views/partials/forms/edit/status-select.blade.php +++ b/resources/views/partials/forms/edit/status-select.blade.php @@ -4,15 +4,12 @@ {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
- + @if($status_id = old($fieldname, (isset($item)) ? $item->{$fieldname} : '')) + + @endif
diff --git a/resources/views/partials/forms/edit/supplier-select.blade.php b/resources/views/partials/forms/edit/supplier-select.blade.php index 35c5165e59a1..6b5041c816d7 100644 --- a/resources/views/partials/forms/edit/supplier-select.blade.php +++ b/resources/views/partials/forms/edit/supplier-select.blade.php @@ -4,13 +4,11 @@
diff --git a/resources/views/partials/forms/edit/user-select.blade.php b/resources/views/partials/forms/edit/user-select.blade.php index d9cba4b75fd3..877ced0b3128 100644 --- a/resources/views/partials/forms/edit/user-select.blade.php +++ b/resources/views/partials/forms/edit/user-select.blade.php @@ -5,7 +5,7 @@