diff --git a/resources/lang/en-US/datepicker.php b/resources/lang/en-US/datepicker.php new file mode 100644 index 0000000000..1abad03a81 --- /dev/null +++ b/resources/lang/en-US/datepicker.php @@ -0,0 +1,78 @@ + 'Today', + 'clear' => 'Clear', + 'days' => [ + 'sunday' => 'Sunday', + 'monday' => 'Monday', + 'tuesday' => 'Tuesday', + 'wednesday' => 'Wednesday', + 'thursday' => 'Thursday', + 'friday' => 'Friday', + 'saturday' => 'Saturday', + ], + + 'short_days' => [ + 'sunday' => 'Sun', + 'monday' => 'Mon', + 'tuesday' => 'Tue', + 'wednesday' => 'Wed', + 'thursday' => 'Thu', + 'friday' => 'Fri', + 'saturday' => 'Sat', + ], + + 'min_days' => [ + 'sunday' => 'Su', + 'monday' => 'Mo', + 'tuesday' => 'Tu', + 'wednesday' => 'We', + 'thursday' => 'Th', + 'friday' => 'Fr', + 'saturday' => 'Sa', + ], + + 'months' => [ + 'january' => 'January', + 'february' => 'February', + 'march' => 'March', + 'april' => 'April', + 'may' => 'May', + 'june' => 'June', + 'july' => 'July', + 'august' => 'August', + 'september' => 'September', + 'october' => 'October', + 'november' => 'November', + 'december' => 'December', + ], + + 'months_short' => [ + 'january' => 'Jan', + 'february' => 'Feb', + 'march' => 'Mar', + 'april' => 'Apr', + 'may' => 'May', + 'june' => 'Jun', + 'july' => 'Jul', + 'august' => 'Aug', + 'september' => 'Sep', + 'october' => 'Oct', + 'november' => 'Nov', + 'december' => 'Dec', + ], + +); diff --git a/resources/views/accessories/edit.blade.php b/resources/views/accessories/edit.blade.php index 8e0503400f..827e117b51 100644 --- a/resources/views/accessories/edit.blade.php +++ b/resources/views/accessories/edit.blade.php @@ -22,7 +22,7 @@ @include ('partials.forms.edit.location-select', ['translated_name' => trans('general.location'), 'fieldname' => 'location_id']) @include ('partials.forms.edit.model_number') @include ('partials.forms.edit.order_number') -@include ('partials.forms.edit.purchase_date') +@include ('partials.forms.edit.datepicker', ['translated_name' => trans('general.purchase_date'),'fieldname' => 'purchase_date']) @include ('partials.forms.edit.purchase_cost', ['currency_type' => $item->location->currency ?? null]) @include ('partials.forms.edit.quantity') @include ('partials.forms.edit.minimum_quantity') diff --git a/resources/views/asset_maintenances/edit.blade.php b/resources/views/asset_maintenances/edit.blade.php index 4dd390ddfa..8e41701c79 100644 --- a/resources/views/asset_maintenances/edit.blade.php +++ b/resources/views/asset_maintenances/edit.blade.php @@ -65,10 +65,12 @@
-
- - -
+ {!! $errors->first('start_date', '') !!}
@@ -80,12 +82,12 @@
-
- - - - -
+ {!! $errors->first('completion_date', '') !!}
diff --git a/resources/views/blade/input/datepicker.blade.php b/resources/views/blade/input/datepicker.blade.php new file mode 100644 index 0000000000..111aa8dbf7 --- /dev/null +++ b/resources/views/blade/input/datepicker.blade.php @@ -0,0 +1,13 @@ +@props([ + 'value' => '', + 'required' => '', + 'end_date' => null, + 'col_size_class' => null, +]) + + +
+ merge(['class' => 'form-control']) }} {{ $required=='1' ? 'required' : '' }}> + + +
\ No newline at end of file diff --git a/resources/views/components/edit.blade.php b/resources/views/components/edit.blade.php index 206418f894..979d68248c 100644 --- a/resources/views/components/edit.blade.php +++ b/resources/views/components/edit.blade.php @@ -26,7 +26,7 @@ @include ('partials.forms.edit.location-select', ['translated_name' => trans('general.location'), 'fieldname' => 'location_id']) @include ('partials.forms.edit.supplier-select', ['translated_name' => trans('general.supplier'), 'fieldname' => 'supplier_id']) @include ('partials.forms.edit.order_number') -@include ('partials.forms.edit.purchase_date') +@include ('partials.forms.edit.datepicker', ['translated_name' => trans('general.purchase_date'),'fieldname' => 'purchase_date']) @include ('partials.forms.edit.purchase_cost') @include ('partials.forms.edit.notes') @include ('partials.forms.edit.image-upload', ['image_path' => app('components_upload_path')]) diff --git a/resources/views/consumables/edit.blade.php b/resources/views/consumables/edit.blade.php index 300a7114d9..e844338fa7 100644 --- a/resources/views/consumables/edit.blade.php +++ b/resources/views/consumables/edit.blade.php @@ -22,7 +22,7 @@ @include ('partials.forms.edit.model_number') @include ('partials.forms.edit.item_number') @include ('partials.forms.edit.order_number') -@include ('partials.forms.edit.purchase_date') +@include ('partials.forms.edit.datepicker', ['translated_name' => trans('general.purchase_date'),'fieldname' => 'purchase_date']) @include ('partials.forms.edit.purchase_cost') @include ('partials.forms.edit.quantity') @include ('partials.forms.edit.minimum_quantity') diff --git a/resources/views/hardware/checkout.blade.php b/resources/views/hardware/checkout.blade.php index ac5c8022ec..60d64221e2 100755 --- a/resources/views/hardware/checkout.blade.php +++ b/resources/views/hardware/checkout.blade.php @@ -110,14 +110,15 @@ {{ trans('admin/hardware/form.checkout_date') }}
-
- - - -
+ + {!! $errors->first('checkout_at', '') !!}
@@ -129,15 +130,12 @@
-
- - - - -
+ {!! $errors->first('expected_checkin', '') !!}
@@ -224,15 +222,4 @@ @section('moar_scripts') @include('partials/assets-assigned') - - @stop diff --git a/resources/views/hardware/edit.blade.php b/resources/views/hardware/edit.blade.php index 28b9a8438a..921a4542fd 100755 --- a/resources/views/hardware/edit.blade.php +++ b/resources/views/hardware/edit.blade.php @@ -114,28 +114,8 @@