1- <!-- DataLib Bulk Rename -->
2- < div data-backdrop ="static " class ="modal fade center "
3- id ="bulkRenameDataLibModal " tabindex ="-1 " role ="dialog "
4- aria-labelledby ="bulkRenameDataLibModalLabel " aria-hidden ="true ">
5- < div class ="modal-dialog nomargintop nomarginbottom modal-l ">
6- < div class ="modal-content ">
7- < div class ="modal-header ">
8- < button type ="button " class ="close " data-dismiss ="modal "
9- aria-label ="Close ">
10- < span aria-hidden ="true "> ×</ span >
11- </ button >
12- < h4 class ="modal-title " id ="bulkRenameDataLibModalLabel ">
13- < span id ="bulkRenameDataLibModalTitle "> Bulk Rename</ span >
14- </ h4 >
15- </ div >
16- < div class ="modal-body ">
17- < form id ="bulkRenameDataLibData " role ="form ">
18- <!-- messages area-->
19- < div id ="DialogMessagesAreaEdit ">
20- < div class ="alert " id ="DialogMessagesAlertBulkRename "
21- style ="display: none; ">
22- < strong > < span class ="alert-description "
23- id ="DialogAlertDescriptionBulkRename "> </ span > </ strong >
24- < button type ="button " class ="close " data-hide ="alert "
25- aria-hidden ="true ">
26- < span
27- class ="glyphicon glyphicon-remove alert-right alert-close pull-right "> </ span >
28- </ button >
29- </ div >
30- </ div >
31- <!-- current name and old name -->
32- < div class ="row ">
33- < div class ="form-group col-xs-6 ">
34- < label id ="lbl_currentname " for ="system " name ='lbl_currentname '> Current Name JSP</ label >
35- < input id ="dl_currentname " name ="currentname " class ="form-control "/>
36- </ div >
37- < div class ="form-group col-xs-6 ">
38- < label id ="lbl_newname " for ="environment " name ='lbl_newname '> New Name JSP</ label >
39- < input id ="dl_newname " name ="newname " class ="form-control "/>
40- </ div >
41- </ div >
42- </ form >
43- </ div >
44- < div class ="modal-footer ">
45- < button type ="button " class ="btn btn-default " data-dismiss ="modal " name ="buttonClose "> Close</ button >
46- < button type ="button " id ="bulkRenameValidate " class ="btn btn-primary " name ="bulkRename "> Rename</ button >
47- </ div >
48- </ div >
49- </ div >
1+ <!-- DataLib Bulk Rename - Alpine.js/Tailwind refactored -->
2+ < div
3+ x-data ="{ open: false } "
4+ x-show ="open "
5+ x-cloak
6+ @bulkrename-modal-open.window ="open = true "
7+ @bulkrename-modal-close.window ="open = false "
8+ class ="crb_modal "
9+ id ="bulkRenameDataLibModal ">
10+
11+ <!-- Overlay -->
12+ < div class ="absolute inset-0 bg-slate-900/60 " @click ="open = false "> </ div >
13+
14+ <!-- Modal Card -->
15+ < div class ="relative bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-700 shadow-2xl flex flex-col transition-all duration-300 z-10 crb_card rounded-2xl "
16+ style ="max-height: calc(100vh - 4rem); margin: 2rem 1rem; width: 520px; "
17+ x-transition:enter ="transition ease-out duration-300 "
18+ x-transition:enter-start ="opacity-0 scale-95 "
19+ x-transition:enter-end ="opacity-100 scale-100 "
20+ x-transition:leave ="transition ease-in duration-200 "
21+ x-transition:leave-start ="opacity-100 scale-100 "
22+ x-transition:leave-end ="opacity-0 scale-95 "
23+ @click.stop >
24+
25+ <!-- HEADER -->
26+ < div class ="flex items-center justify-between px-6 py-3 border-b border-slate-200 dark:border-slate-700 shrink-0 ">
27+ < div class ="flex items-center gap-3 ">
28+ < div class ="h-10 w-10 rounded-xl bg-blue-600/10 flex items-center justify-center ">
29+ < i data-lucide ="replace " class ="w-5 h-5 text-blue-600 "> </ i >
30+ </ div >
31+ < div >
32+ < h2 class ="!text-lg !font-semibold !mb-0 !mt-0 " id ="bulkRenameDataLibModalLabel ">
33+ < span id ="bulkRenameDataLibModalTitle "> Bulk Rename</ span >
34+ </ h2 >
35+ < p class ="text-xs text-slate-500 !mb-0 "> Rename all matching data library entries</ p >
36+ </ div >
37+ </ div >
38+ < div class ="flex items-center gap-1 ">
39+ < button @click ="open = false; window.dispatchEvent(new CustomEvent('bulkrename-modal-close')) "
40+ class ="h-8 w-8 rounded-lg flex items-center justify-center text-slate-400 hover:text-red-600 hover:bg-red-50 dark:hover:bg-red-900/20 transition ">
41+ < i data-lucide ="x " class ="w-4 h-4 "> </ i >
42+ </ button >
43+ </ div >
44+ </ div >
45+
46+ <!-- Messages -->
47+ < div class ="px-6 shrink-0 " id ="DialogMessagesAreaEdit ">
48+ < div class ="alert " id ="DialogMessagesAlertBulkRename " style ="display:none; ">
49+ < strong > < span class ="alert-description " id ="DialogAlertDescriptionBulkRename "> </ span > </ strong >
50+ < button type ="button " class ="close " data-hide ="alert " aria-hidden ="true ">
51+ < span class ="glyphicon glyphicon-remove alert-right alert-close pull-right "> </ span >
52+ </ button >
53+ </ div >
54+ </ div >
55+
56+ <!-- SCROLLABLE BODY -->
57+ < div class ="flex-1 overflow-y-auto px-6 pb-3 min-h-0 ">
58+ < form id ="bulkRenameDataLibData " role ="form " autocomplete ="off ">
59+
60+ <!-- Rename Section -->
61+ < div class ="rounded-lg border border-slate-200 dark:border-slate-700 p-4 mt-3 ">
62+ < div class ="flex items-center gap-2 mb-3 ">
63+ < i data-lucide ="text-cursor-input " class ="w-4 h-4 text-blue-600 "> </ i >
64+ < span class ="text-sm font-semibold text-slate-700 dark:text-slate-300 "> Rename Configuration</ span >
65+ </ div >
66+ < div class ="flex gap-3 ">
67+ < div class ="flex-1 ">
68+ < label class ="block text-xs font-medium text-slate-500 dark:text-slate-400 mb-1 " id ="lbl_currentname " for ="dl_currentname " name ="lbl_currentname "> Current Name</ label >
69+ < input id ="dl_currentname " name ="currentname " placeholder ="Current name... "
70+ class ="w-full h-10 border rounded-md px-3 py-2 text-sm bg-white dark:bg-slate-800 border-slate-300 dark:border-slate-600 text-slate-900 dark:text-slate-300 focus:outline-none focus:ring-1 focus:ring-blue-500 transition-all ">
71+ </ div >
72+ < div class ="flex-1 ">
73+ < label class ="block text-xs font-medium text-slate-500 dark:text-slate-400 mb-1 " id ="lbl_newname " for ="dl_newname " name ="lbl_newname "> New Name</ label >
74+ < input id ="dl_newname " name ="newname " placeholder ="New name... "
75+ class ="w-full h-10 border rounded-md px-3 py-2 text-sm bg-white dark:bg-slate-800 border-slate-300 dark:border-slate-600 text-slate-900 dark:text-slate-300 focus:outline-none focus:ring-1 focus:ring-blue-500 transition-all ">
76+ </ div >
77+ </ div >
78+ </ div >
79+
80+ </ form >
81+ </ div >
82+
83+ <!-- FOOTER -->
84+ < div class ="flex justify-end gap-2 px-6 py-3 shrink-0 ">
85+ < button type ="button " @click ="open = false; window.dispatchEvent(new CustomEvent('bulkrename-modal-close')) " name ="buttonClose "
86+ class ="px-4 py-2 rounded-md border border-slate-300 dark:border-slate-600 text-sm text-slate-700 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-700 transition "> Close</ button >
87+ < button type ="button " id ="bulkRenameValidate " name ="bulkRename "
88+ class ="px-4 py-2 rounded-md bg-sky-400 text-white text-sm hover:bg-sky-500 transition "> Rename</ button >
89+ </ div >
90+ </ div >
5091</ div >
51- <!--end <!-- DataLib Bulk Rename-->
92+
93+ < script >
94+ window . addEventListener ( 'bulkrename-modal-open' , function ( ) {
95+ setTimeout ( function ( ) { if ( window . lucide ) lucide . createIcons ( ) ; } , 50 ) ;
96+ } ) ;
97+ </ script >
0 commit comments