@@ -7,12 +7,12 @@ <h2 class="text-2xl font-bold mb-4 dark:text-white">{{ 'USAGE_SPECS._list' | tra
77 </ div >
88
99 < div class ="flex flex-row w-full justify-end ">
10- < button type ="button " (click) ="goToCreate() " class ="ml-2 mr-8 mb-4 text-white bg-primary-100 hover:bg-primary-50 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-full text-sm p-2.5 text-center inline-flex items-center align-middle me-2 ">
10+ < button data-cy =" createUsageSpec " type ="button " (click) ="goToCreate() " class ="ml-2 mr-8 mb-4 text-white bg-primary-100 hover:bg-primary-50 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-full text-sm p-2.5 text-center inline-flex items-center align-middle me-2 ">
1111 < p class ="pl-2 pr-2 "> {{ 'USAGE_SPECS._add_new' | translate }}</ p >
1212 < svg class ="w-[18px] h-[18px] text-white " aria-hidden ="true " xmlns ="http://www.w3.org/2000/svg " width ="24 " height ="24 " fill ="none " viewBox ="0 0 24 24 ">
1313 < path stroke ="currentColor " stroke-linecap ="round " stroke-linejoin ="round " stroke-width ="2 " d ="M5 12h14m-7 7V5 "/>
1414 </ svg >
15- </ button >
15+ </ button >
1616 </ div >
1717
1818 </ div >
@@ -30,7 +30,7 @@ <h2 class="text-2xl font-bold mb-4 dark:text-white">{{ 'USAGE_SPECS._list' | tra
3030} @else {
3131 < div class ="bg-secondary-50 dark:bg-secondary-100 border dark:border-gray-800 mt-8 p-4 rounded-lg ">
3232 < div class ="relative overflow-x-auto shadow-md sm:rounded-lg w-full bg-white dark:bg-secondary-300 ">
33- < table class ="w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-200 ">
33+ < table data-cy =" usageSpecTable " class ="w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-200 ">
3434 < thead class ="text-xs text-gray-700 uppercase bg-gray-100 dark:bg-secondary-200 dark:text-white ">
3535 < tr >
3636 < th scope ="col " class ="px-6 py-3 ">
@@ -46,18 +46,18 @@ <h2 class="text-2xl font-bold mb-4 dark:text-white">{{ 'USAGE_SPECS._list' | tra
4646 </ thead >
4747 < tbody >
4848 @for (usage of usageSpecs; track usage.id) {
49- < tr class ="border-b hover:bg-gray-200 dark:bg-secondary-300 dark:border-gray-700 dark:hover:bg-secondary-200 ">
49+ < tr data-cy =" usageSpecRow " class ="border-b hover:bg-gray-200 dark:bg-secondary-300 dark:border-gray-700 dark:hover:bg-secondary-200 ">
5050 < td [ngClass] ="{
5151 'break-all': hasLongWord(usage.name, 20),
5252 'break-words': !hasLongWord(usage.name, 20)
5353 } " class ="px-6 py-4 text-wrap break-words ">
5454 {{usage.name}}
5555 </ td >
5656 < td class ="hidden md:table-cell px-6 py-4 ">
57- {{usage.description}}
57+ {{usage.description}}
5858 </ td >
5959 < td class ="px-6 py-4 ">
60- < button type ="button " (click) ="goToUpdate(usage) " class ="text-white bg-primary-100 hover:bg-primary-50 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-full text-sm p-2.5 text-center inline-flex items-center me-2 ">
60+ < button data-cy =" usageSpecEdit " type ="button " (click) ="goToUpdate(usage) " class ="text-white bg-primary-100 hover:bg-primary-50 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-full text-sm p-2.5 text-center inline-flex items-center me-2 ">
6161 < svg class ="w-[18px] h-[18px] text-white " aria-hidden ="true " xmlns ="http://www.w3.org/2000/svg " width ="24 " height ="24 " fill ="currentColor " viewBox ="0 0 24 24 ">
6262 < path fill-rule ="evenodd " d ="M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z " clip-rule ="evenodd "/>
6363 </ svg >
0 commit comments