3030<!-- FILTERS -->
3131< div class ="w-full h-fit mb-4 flex flex-col ">
3232 < div class ="flex w-full flex-col items-center lg:flex-row justify-between ">
33+ < div class ="p-8 w-full ">
34+ < div class ="flex flex-row mb-1 ">
35+ < fa-icon [icon] ="faSwatchbook " class ="fa-base text-primary-100 align-middle mr-2 "> </ fa-icon >
36+ < h2 class ="text-base dark:text-white font-bold "> {{ 'PRODUCT_ORDERS._filter_action' | translate }}</ h2 >
37+ </ div >
38+ < button id ="dropdownActionButton " data-dropdown-toggle ="dropdownAction " (click) ="$event.stopPropagation(); "
39+ class ="text-black border border-primary-100sa dark:text-white w-full justify-between bg-white dark:bg-secondary-200 hover:bg-gray-100 dark:hover:bg-secondary-300 focus:ring-2 focus:outline-none focus:ring-primary-100 font-medium rounded-lg text-sm p-2.5 text-center inline-flex items-center "
40+ type ="button ">
41+ @if(actionFilters.length > 0){
42+ {{actionFilters.join(', ')}}
43+ } @else {
44+ {{ 'PRODUCT_ORDERS._filter_action' | translate }}
45+ }
46+ < svg class ="w-4 h-4 ml-2 " aria-hidden ="true " fill ="none " stroke ="currentColor " viewBox ="0 0 24 24 "
47+ xmlns ="http://www.w3.org/2000/svg ">
48+ < path stroke-linecap ="round " stroke-linejoin ="round " stroke-width ="2 " d ="M19 9l-7 7-7-7 "> </ path >
49+ </ svg >
50+ </ button >
51+
52+ < div id ="dropdownAction " class ="z-20 hidden w-fit md:w-1/5 p-3 bg-white rounded-lg border dark:bg-secondary-200 ">
53+ < ul class ="space-y-2 text-sm " aria-labelledby ="dropdownActionButton ">
54+ < li class ="flex items-center ">
55+ < input id ="actionAdd " type ="checkbox " [checked] ="actionFilters.includes('add') " (change) ="onActionFilterChange('add') "
56+ class ="w-4 h-4 bg-gray-100 checked:bg-primary-100 dark:checked:bg-primary-100 border-gray-300 rounded focus:ring-primary-100 dark:focus:ring-primary-100 dark:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500 " />
57+ < label for ="actionAdd " class ="ml-2 text-sm font-medium text-gray-900 dark:text-gray-100 ">
58+ {{ 'PRODUCT_ORDERS._action_add' | translate }}
59+ </ label >
60+ </ li >
61+ < li class ="flex items-center ">
62+ < input id ="actionModify " type ="checkbox " [checked] ="actionFilters.includes('modify') " (change) ="onActionFilterChange('modify') "
63+ class ="w-4 h-4 bg-gray-100 checked:bg-primary-100 dark:checked:bg-primary-100 border-gray-300 rounded focus:ring-primary-100 dark:focus:ring-primary-100 dark:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500 " />
64+ < label for ="actionModify " class ="ml-2 text-sm font-medium text-gray-900 dark:text-gray-100 ">
65+ {{ 'PRODUCT_ORDERS._action_modify' | translate }}
66+ </ label >
67+ </ li >
68+ < li class ="flex items-center ">
69+ < input id ="actionDelete " type ="checkbox " [checked] ="actionFilters.includes('delete') " (change) ="onActionFilterChange('delete') "
70+ class ="w-4 h-4 bg-gray-100 checked:bg-primary-100 dark:checked:bg-primary-100 border-gray-300 rounded focus:ring-primary-100 dark:focus:ring-primary-100 dark:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500 " />
71+ < label for ="actionDelete " class ="ml-2 text-sm font-medium text-gray-900 dark:text-gray-100 ">
72+ {{ 'PRODUCT_ORDERS._action_delete' | translate }}
73+ </ label >
74+ </ li >
75+ </ ul >
76+ </ div >
77+ </ div >
3378 < div class ="p-8 w-full ">
3479 < div class ="flex flex-row mb-1 ">
3580 < fa-icon [icon] ="faSwatchbook " class ="fa-base text-primary-100 align-middle mr-2 "> </ fa-icon >
@@ -38,7 +83,11 @@ <h2 class="text-base dark:text-white font-bold">{{ 'PRODUCT_ORDERS._filter_state
3883 < button id ="dropdownStateButton " data-dropdown-toggle ="dropdown " (click) ="$event.stopPropagation(); "
3984 class ="text-black border border-primary-100sa dark:text-white w-full justify-between bg-white dark:bg-secondary-200 hover:bg-gray-100 dark:hover:bg-secondary-300 focus:ring-2 focus:outline-none focus:ring-primary-100 font-medium rounded-lg text-sm p-2.5 text-center inline-flex items-center "
4085 type ="button ">
41- {{ 'PRODUCT_ORDERS._filter_state' | translate }}
86+ @if(filters.length > 0){
87+ {{filters.join(', ')}}
88+ } @else {
89+ {{ 'PRODUCT_ORDERS._filter_state' | translate }}
90+ }
4291 < svg class ="w-4 h-4 ml-2 " aria-hidden ="true " fill ="none " stroke ="currentColor " viewBox ="0 0 24 24 "
4392 xmlns ="http://www.w3.org/2000/svg ">
4493 < path stroke-linecap ="round " stroke-linejoin ="round " stroke-width ="2 " d ="M19 9l-7 7-7-7 "> </ path >
@@ -354,6 +403,9 @@ <h3 class="text-base dark:text-gray-200">
354403 < th scope ="col " class ="px-6 py-3 text-center align-middle ">
355404 {{ 'PRODUCT_ORDERS._state' | translate }}
356405 </ th >
406+ < th scope ="col " class ="px-6 py-3 text-center align-middle ">
407+ {{ 'PRODUCT_ORDERS._items_action' | translate }}
408+ </ th >
357409 < th scope ="col " class ="px-6 py-3 text-center align-middle ">
358410 {{ 'PRODUCT_ORDERS._actions' | translate }}
359411 </ th >
@@ -410,6 +462,15 @@ <h3 class="text-base dark:text-gray-200">
410462 < span class ="bg-amber-500 dark:bg-amber-900 text-amber-900 dark:text-amber-100 text-xs font-medium me-2 px-2.5 py-0.5 rounded border border-amber-950 "> Unchecked</ span >
411463 }
412464 </ td >
465+ < td class ="px-6 py-4 text-center align-middle ">
466+ @if(item.productOrderItem.action === 'add'){
467+ < span class ="bg-blue-100 dark:bg-secondary-100 text-blue-600 text-xs font-medium me-2 px-2.5 py-0.5 rounded border border-blue-400 w-fit "> {{item.productOrderItem.action}}</ span >
468+ } @else if(item.productOrderItem.action === 'delete') {
469+ < span class ="bg-blue-100 dark:bg-secondary-100 text-red-500 text-xs font-medium me-2 px-2.5 py-0.5 rounded border border-red-500 w-fit "> {{item.productOrderItem.action}}</ span >
470+ } @else if(item.productOrderItem.action === 'modify') {
471+ < span class ="bg-blue-100 dark:bg-secondary-100 text-yellow-500 text-xs font-medium me-2 px-2.5 py-0.5 rounded border border-yellow-500 "> {{item.productOrderItem.action}}</ span >
472+ }
473+ </ td >
413474 < td class ="px-6 py-4 text-center align-middle flex justify-center ">
414475 @if (!hasProcurementAutomaticTerm(item)) {
415476 @if (!item.productOrderItem.state && role == sellerRole) {
0 commit comments