From 5e41e3668eea1b9ec349678477ea986a4009b453 Mon Sep 17 00:00:00 2001 From: Noah Lancien Date: Thu, 11 Jun 2026 12:18:01 +0200 Subject: [PATCH] feat: :sparkles: Added hours to calendar date input --- resources/js/app.js | 12 ++++++------ resources/views/coupon/edit.blade.php | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/resources/js/app.js b/resources/js/app.js index 1549c0b..46ff3a0 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -33,7 +33,7 @@ const changeIcon = $('.marque') const dropDownMarque = $('.marque-select') // FancyBox Communes -// Confirmation +// Confirmation $.fancyConfirm = function( opts ) { opts = $.extend( true, { title : 'Are you sure?', @@ -42,7 +42,7 @@ $.fancyConfirm = function( opts ) { noButton : 'Cancel', callback : $.noop }, opts || {} ); - + $.fancybox.open({ type : 'html', src : @@ -68,7 +68,7 @@ $.fancyConfirm = function( opts ) { afterClose : function( instance, current, e ) { var button = e ? e.target || e.currentTarget : null; var value = button ? $(button).data('value') : 0; - + opts.callback( value ); } } @@ -84,7 +84,7 @@ $.fancyConfirm = function( opts ) { noButton : 'Cancel', callback : $.noop }, opts || {} ); - + $.fancybox.open({ type : 'html', src : @@ -92,7 +92,7 @@ $.fancyConfirm = function( opts ) { '

' + opts.title + '

' + '

' + opts.message + '

' + '

' + - '' + opts.noButton + '' + + '' + opts.noButton + '' + '' + '

' + '', @@ -226,7 +226,7 @@ $(document).ready(function(){ $('.addcalendar').on('click', function(event){ event.preventDefault(); - $('.calendar').append('
'); + $('.calendar').append('
'); }); $('.calendar').on('click', '.removecalendar', function(event){ diff --git a/resources/views/coupon/edit.blade.php b/resources/views/coupon/edit.blade.php index 47991dc..923f20f 100644 --- a/resources/views/coupon/edit.blade.php +++ b/resources/views/coupon/edit.blade.php @@ -101,8 +101,8 @@

{{ __('Calendrier de diffusion') }}

@foreach ($coupon->calendriers()->get() as $calendrier)
- - + +
@endforeach