@@ -331,7 +331,7 @@ <h1 class="h3 mb-0">Dashboard</h1>
331331 < p class ="text-muted mb-0 "> Welcome back! Here's what's happening.</ p >
332332 </ div >
333333 < div class ="d-flex gap-2 ">
334- < button type ="button " class ="btn btn-primary ">
334+ < button type ="button " class ="btn btn-primary " data-bs-toggle =" modal " data-bs-target =" #newItemModal " >
335335 < i class ="bi bi-plus-lg me-2 "> </ i >
336336 New Item
337337 </ button >
@@ -725,5 +725,107 @@ <h6 class="mt-4">Icon Animations</h6>
725725 }
726726 } ) ;
727727 </ script >
728+
729+ <!-- New Item Modal -->
730+ < div class ="modal fade " id ="newItemModal " tabindex ="-1 " aria-labelledby ="newItemModalLabel " aria-hidden ="true ">
731+ < div class ="modal-dialog modal-dialog-centered ">
732+ < div class ="modal-content ">
733+ < div class ="modal-header border-0 pb-0 ">
734+ < h5 class ="modal-title " id ="newItemModalLabel ">
735+ < i class ="bi bi-plus-circle text-primary me-2 "> </ i >
736+ Quick Add
737+ </ h5 >
738+ < button type ="button " class ="btn-close " data-bs-dismiss ="modal " aria-label ="Close "> </ button >
739+ </ div >
740+ < div class ="modal-body " x-data ="quickAddForm() ">
741+ < p class ="text-muted small mb-4 "> Create a new item quickly from the dashboard.</ p >
742+
743+ <!-- Item Type Selection -->
744+ < div class ="mb-4 ">
745+ < label class ="form-label fw-semibold "> What would you like to add?</ label >
746+ < div class ="btn-group w-100 " role ="group ">
747+ < button type ="button " class ="btn btn-outline-primary btn-sm "
748+ :class ="{ 'active': itemType === 'task' } "
749+ @click ="itemType = 'task' ">
750+ < i class ="bi bi-check2-square "> </ i > Task
751+ </ button >
752+ < button type ="button " class ="btn btn-outline-success btn-sm "
753+ :class ="{ 'active': itemType === 'note' } "
754+ @click ="itemType = 'note' ">
755+ < i class ="bi bi-sticky "> </ i > Note
756+ </ button >
757+ < button type ="button " class ="btn btn-outline-info btn-sm "
758+ :class ="{ 'active': itemType === 'event' } "
759+ @click ="itemType = 'event' ">
760+ < i class ="bi bi-calendar-event "> </ i > Event
761+ </ button >
762+ < button type ="button " class ="btn btn-outline-warning btn-sm "
763+ :class ="{ 'active': itemType === 'reminder' } "
764+ @click ="itemType = 'reminder' ">
765+ < i class ="bi bi-bell "> </ i > Reminder
766+ </ button >
767+ </ div >
768+ </ div >
769+
770+ <!-- Title -->
771+ < div class ="mb-3 ">
772+ < label for ="itemTitle " class ="form-label fw-semibold "> Title</ label >
773+ < input type ="text " class ="form-control " id ="itemTitle " x-model ="title "
774+ placeholder ="Enter a title... " autofocus >
775+ </ div >
776+
777+ <!-- Description -->
778+ < div class ="mb-3 ">
779+ < label for ="itemDescription " class ="form-label fw-semibold "> Description</ label >
780+ < textarea class ="form-control " id ="itemDescription " rows ="3 " x-model ="description "
781+ placeholder ="Add some details... "> </ textarea >
782+ </ div >
783+
784+ <!-- Priority (shown for tasks) -->
785+ < div class ="mb-3 " x-show ="itemType === 'task' " x-transition >
786+ < label class ="form-label fw-semibold d-block "> Priority</ label >
787+ < div class ="btn-group " role ="group " aria-label ="Priority selection ">
788+ < input type ="radio " class ="btn-check " name ="priorityRadio " id ="priorityLow " value ="low " x-model ="priority " autocomplete ="off ">
789+ < label class ="btn btn-outline-success btn-sm " for ="priorityLow ">
790+ < i class ="bi bi-flag "> </ i > Low
791+ </ label >
792+ < input type ="radio " class ="btn-check " name ="priorityRadio " id ="priorityMedium " value ="medium " x-model ="priority " autocomplete ="off ">
793+ < label class ="btn btn-outline-warning btn-sm " for ="priorityMedium ">
794+ < i class ="bi bi-flag-fill "> </ i > Medium
795+ </ label >
796+ < input type ="radio " class ="btn-check " name ="priorityRadio " id ="priorityHigh " value ="high " x-model ="priority " autocomplete ="off ">
797+ < label class ="btn btn-outline-danger btn-sm " for ="priorityHigh ">
798+ < i class ="bi bi-flag-fill "> </ i > High
799+ </ label >
800+ </ div >
801+ </ div >
802+
803+ <!-- Date (shown for events/reminders) -->
804+ < div class ="mb-3 " x-show ="itemType === 'event' || itemType === 'reminder' " x-transition >
805+ < label for ="itemDate " class ="form-label fw-semibold "> Date & Time</ label >
806+ < input type ="datetime-local " class ="form-control " id ="itemDate " x-model ="dateTime ">
807+ </ div >
808+
809+ <!-- Assign to (shown for tasks) -->
810+ < div class ="mb-3 " x-show ="itemType === 'task' " x-transition >
811+ < label for ="assignTo " class ="form-label fw-semibold "> Assign to</ label >
812+ < select class ="form-select " id ="assignTo " x-model ="assignee ">
813+ < option value =""> Select team member...</ option >
814+ < option value ="john "> John Doe</ option >
815+ < option value ="jane "> Jane Smith</ option >
816+ < option value ="mike "> Mike Johnson</ option >
817+ < option value ="sarah "> Sarah Williams</ option >
818+ </ select >
819+ </ div >
820+ </ div >
821+ < div class ="modal-footer border-0 pt-0 ">
822+ < button type ="button " class ="btn btn-light " data-bs-dismiss ="modal "> Cancel</ button >
823+ < button type ="button " class ="btn btn-primary " @click ="saveItem() " data-bs-dismiss ="modal ">
824+ < i class ="bi bi-check-lg me-1 "> </ i > Create Item
825+ </ button >
826+ </ div >
827+ </ div >
828+ </ div >
829+ </ div >
728830</ body >
729831</ html >
0 commit comments