From 33a0c2087ad915e7cb6d66850d544ba69d21bcee Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 25 Oct 2016 05:16:41 -0700 Subject: [PATCH] Use datepicker if custom field format is a date --- .../views/models/custom_fields_form.blade.php | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/resources/views/models/custom_fields_form.blade.php b/resources/views/models/custom_fields_form.blade.php index b1728c4d23..33611f065c 100644 --- a/resources/views/models/custom_fields_form.blade.php +++ b/resources/views/models/custom_fields_form.blade.php @@ -27,11 +27,21 @@ @else - @if (($field->field_encrypted=='0') || (Gate::allows('admin'))) - + @if ($field->format=='DATE') + + +
+ + +
@else - - @endif + + @if (($field->field_encrypted=='0') || (Gate::allows('admin'))) + + @else + + @endif + @endif @endif