File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
adminforth/spa/src/components Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" rounded-lg shadow-resourseFormShadow dark:shadow-darkResourseFormShadow dark:shadow-2xl" >
3
- <div v-if =" group.groupName && !group.noTitle" class =" text-md font-semibold px-6 py-3 flex flex-1 items-center dark:border-gray-600 text-gray-700 bg-lightFormHeading dark:bg-gray-700 dark:text-gray-400 rounded-t-lg" >
3
+ <div v-if =" group.groupName && !group.noTitle" class =" text-md font-semibold px-6 py-3 flex flex-1 items-center dark:border-darkFormBorder text-gray-700 bg-lightFormHeading dark:bg-darkFormHeading dark:text-gray-400 rounded-t-lg" >
4
4
{{ group.groupName }}
5
5
</div >
6
6
<table class =" w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400" >
7
- <thead v-if =" !allColumnsHaveCustomComponent" class =" text-xs text-gray-700 uppercase dark:text-gray-400 bg-lightFormHeading dark:bg-gray-700 block md:table-row-group " >
7
+ <thead v-if =" !allColumnsHaveCustomComponent" class =" text-xs text-gray-700 uppercase dark:text-gray-400 bg-lightFormHeading dark:bg-darkFormHeading block md:table-row-group " >
8
8
<tr >
9
9
<th scope =" col" :class =" {'rounded-tl-lg': !group.groupName}" class =" px-6 py-3 hidden md:w-52 md:table-cell" >
10
10
{{ $t('Field') }}
19
19
v-for =" (column, i) in group.columns"
20
20
:key =" column.name"
21
21
v-if =" currentValues !== null"
22
- class =" bg-lightForm dark:bg-gray-800 dark:border-gray-700 block md:table-row"
22
+ class =" bg-lightForm dark:bg-darkForm dark:border-darkFormBorder block md:table-row"
23
23
:class =" { 'border-b': i !== group.columns.length - 1}"
24
24
>
25
25
<td class =" px-6 py-4 flex items-center block md:table-cell pb-0 md:pb-4"
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div :class =" `overflow-x-auto ${isRounded ? 'rounded-default' : ''} shadow-resourseFormShadow dark:shadow-darkResourseFormShadow`" >
3
- <div v-if =" groupName && !noTitle" class =" text-md font-semibold px-6 py-3 flex flex-1 items-center dark:border-gray-600 text-gray-700 bg-lightFormHeading dark:bg-gray-700 dark:text-gray-400 rounded-t-lg" >
3
+ <div v-if =" groupName && !noTitle" class =" text-md font-semibold px-6 py-3 flex flex-1 items-center text-gray-700 bg-lightFormHeading dark:bg-darkFormHeading dark:text-gray-400 rounded-t-lg" >
4
4
{{ groupName }}
5
5
</div >
6
6
<table class =" w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400 table-fixed" >
7
- <thead v-if =" !allColumnsHaveCustomComponent" class =" text-gray-700 dark:text-gray-400 bg-lightFormHeading dark:bg-gray-700 block md:table-row-group" >
7
+ <thead v-if =" !allColumnsHaveCustomComponent" class =" text-gray-700 dark:text-gray-400 bg-lightFormHeading dark:bg-darkFormHeading dark:border-darkFormBorder block md:table-row-group" >
8
8
<tr >
9
9
<th scope =" col" class =" px-6 py-3 text-xs uppercase hidden md:w-52 md:table-cell" >
10
10
{{ $t('Field') }}
19
19
v-for =" column in columns"
20
20
:key =" column.name"
21
21
class =" bg-lightForm border-t border-gray-100
22
- dark:bg-gray-800 dark:border-gray-700 block md:table-row"
22
+ dark:bg-darkForm dark:border-darkFormBorder block md:table-row"
23
23
>
24
24
<component
25
25
v-if =" column.components?.showRow"
Original file line number Diff line number Diff line change 27
27
</span >
28
28
29
29
<span v-else-if =" column.type === 'boolean'" >
30
- <span v-if =" record[column.name] === true" class =" bg-green-100 whitespace-nowrap text-green-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-gray-700 dark:text-green-400 border border-green-400" >{{ $t('Yes') }}</span >
31
- <span v-else-if =" record[column.name] === false" class =" bg-red-100 whitespace-nowrap text-red-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-gray-700 dark:text-red-400 border border-red-400" >{{ $t('No') }}</span >
30
+ <span v-if =" record[column.name] === true" class =" af-true-value-icon bg-green-100 whitespace-nowrap text-green-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-gray-700 dark:text-green-400 border border-green-400" >{{ $t('Yes') }}</span >
31
+ <span v-else-if =" record[column.name] === false" class =" af-false-value-icon bg-red-100 whitespace-nowrap text-red-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-gray-700 dark:text-red-400 border border-red-400" >{{ $t('No') }}</span >
32
32
<span v-else class =" bg-gray-100 whitespace-nowrap text-gray-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-gray-700 dark:text-gray-400 border border-gray-400" >{{ $t('Unset') }}</span >
33
33
</span >
34
34
<span
39
39
<span
40
40
v-if =" column.isArray.itemType === 'boolean' && arrayItem"
41
41
:key =" `${column.name}-${arrayItemIndex}`"
42
- class =" bg-green-100 whitespace-nowrap text-green-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-gray-700 dark:text-green-400 border border-green-400" >
42
+ class =" af-true-value-icon bg-green-100 whitespace-nowrap text-green-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-gray-700 dark:text-green-400 border border-green-400" >
43
43
{{ $t('Yes') }}
44
44
</span >
45
45
<span
46
46
v-else-if =" column.isArray.itemType === 'boolean'"
47
47
:key =" `${column.name}-${arrayItemIndex}`"
48
- class =" bg-red-100 whitespace-nowrap text-red-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-gray-700 dark:text-red-400 border border-red-400" >
48
+ class =" af-false-value-icon bg-red-100 whitespace-nowrap text-red-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-gray-700 dark:text-red-400 border border-red-400" >
49
49
{{ $t('No') }}
50
50
</span >
51
51
<span
You can’t perform that action at this time.
0 commit comments