diff --git a/resources/views/modals/location.blade.php b/resources/views/modals/location.blade.php index 9817e1ddd7..9580f4bbf9 100644 --- a/resources/views/modals/location.blade.php +++ b/resources/views/modals/location.blade.php @@ -9,7 +9,7 @@
- @include('modals.partials.name') + @include('modals.partials.name', ['item' => new \App\Models\Location(), 'required' => 'true'])
diff --git a/resources/views/modals/model.blade.php b/resources/views/modals/model.blade.php index 3b6bd47e5f..fb1650eee7 100644 --- a/resources/views/modals/model.blade.php +++ b/resources/views/modals/model.blade.php @@ -9,8 +9,8 @@ - @include('modals.partials.name') - @include('modals.partials.categories-select') + @include('modals.partials.name', ['required' => 'true']) + @include('modals.partials.categories-select', ['required' => 'true']) @include('modals.partials.manufacturer-select') @include('modals.partials.model-number') @include('modals.partials.fieldset-select') diff --git a/resources/views/modals/partials/categories-select.blade.php b/resources/views/modals/partials/categories-select.blade.php index 9cbc721748..116a0808e9 100644 --- a/resources/views/modals/partials/categories-select.blade.php +++ b/resources/views/modals/partials/categories-select.blade.php @@ -1,8 +1,11 @@ +@php + $required = $required ?? ''; +@endphp
- +
\ No newline at end of file diff --git a/resources/views/modals/partials/name.blade.php b/resources/views/modals/partials/name.blade.php index 92bd7a62b7..6a64ed525f 100644 --- a/resources/views/modals/partials/name.blade.php +++ b/resources/views/modals/partials/name.blade.php @@ -1,7 +1,10 @@ +@php + $required = $required ?? ''; +@endphp
-
+
\ No newline at end of file diff --git a/resources/views/modals/statuslabel.blade.php b/resources/views/modals/statuslabel.blade.php index fba829ae50..e7076f1bbb 100644 --- a/resources/views/modals/statuslabel.blade.php +++ b/resources/views/modals/statuslabel.blade.php @@ -10,13 +10,13 @@
- @include('partials.forms.edit.name', ['item' => new \App\Models\Statuslabel(),'translated_name' => trans('admin/statuslabels/table.name') ]) + @include('partials.forms.edit.name', ['required' => 'true', 'item' => new \App\Models\Statuslabel(),'translated_name' => trans('admin/statuslabels/table.name') ])
-
{{ Form::select('type', $statuslabel_types, '', array('class'=>'select2', 'style'=>'width:100%','id' =>'modal-type')) }}
+
{{ Form::select('type', $statuslabel_types, '', array('class'=>'select2', 'style'=>'width:100%','id' =>'modal-type', 'required',)) }}
diff --git a/resources/views/modals/user.blade.php b/resources/views/modals/user.blade.php index f04689569b..5672119fa1 100644 --- a/resources/views/modals/user.blade.php +++ b/resources/views/modals/user.blade.php @@ -42,16 +42,16 @@ @include ('partials.forms.edit.location-profile-select', ['translated_name' => trans('general.location'), 'fieldname' => 'location_id'])
- @include('partials.forms.edit.name-first', ['class' => 'col-md-8 col-xs-12-pull', 'style' => 'width:67%;']) + @include('partials.forms.edit.name-first', [ 'required' => 'true', 'class' => 'col-md-8 col-xs-12-pull', 'style' => 'width:67%;'])
- @include('partials.forms.edit.name-last', ['class' => 'col-md-8 col-xs-12-pull', 'style' => 'width:67%;']) + @include('partials.forms.edit.name-last', ['required' => 'true', 'class' => 'col-md-8 col-xs-12-pull', 'style' => 'width:67%;'])
@include('partials.forms.edit.email')
- @include('partials.forms.edit.username') + @include('partials.forms.edit.username', [ 'required' => 'true'])
@@ -59,8 +59,8 @@
-
- + @@ -72,8 +72,8 @@
-
- +
+
diff --git a/resources/views/partials/forms/edit/company-select.blade.php b/resources/views/partials/forms/edit/company-select.blade.php index 012e032866..59de71a6ab 100644 --- a/resources/views/partials/forms/edit/company-select.blade.php +++ b/resources/views/partials/forms/edit/company-select.blade.php @@ -20,7 +20,7 @@
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} -
+
@if ($location_id = old('location_id', (isset($user)) ? $user->location_id : ''))