From 733921f1f92da58b2e3add440e96875f5afeb729 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 3 Nov 2017 12:17:41 -0700 Subject: [PATCH] Added optional required parameter --- resources/views/consumables/checkout.blade.php | 2 +- resources/views/partials/forms/edit/department-select.blade.php | 2 +- resources/views/partials/forms/edit/user-select.blade.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/consumables/checkout.blade.php b/resources/views/consumables/checkout.blade.php index dc6ba5450e..2c9ce7e07b 100644 --- a/resources/views/consumables/checkout.blade.php +++ b/resources/views/consumables/checkout.blade.php @@ -38,7 +38,7 @@ @endif - @include ('partials.forms.edit.user-select', ['translated_name' => trans('general.select_user'), 'fieldname' => 'assigned_to']) + @include ('partials.forms.edit.user-select', ['translated_name' => trans('general.select_user'), 'fieldname' => 'assigned_to', 'required'=> 'true']) @if ($consumable->category->require_acceptance=='1')
diff --git a/resources/views/partials/forms/edit/department-select.blade.php b/resources/views/partials/forms/edit/department-select.blade.php index 8ade5b0188..d68b9d6253 100644 --- a/resources/views/partials/forms/edit/department-select.blade.php +++ b/resources/views/partials/forms/edit/department-select.blade.php @@ -2,7 +2,7 @@ {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} -
+
@if ($user_id = Input::old($fieldname, (isset($item)) ? $item->{$fieldname} : ''))