mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-10 16:31:22 +08:00
Fix UI for team automations page [SCI-12343]
This commit is contained in:
parent
c02eb36b50
commit
c2b0c7219f
1 changed files with 22 additions and 26 deletions
|
|
@ -4,32 +4,28 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="teamObject?.teamAutomationGroups">
|
<div v-if="teamObject?.teamAutomationGroups">
|
||||||
<div class="flex flex-col gap-8 mb-4">
|
<div class="flex flex-col gap-8 mb-4 rounded">
|
||||||
<template v-for="(_subGroups, group) in teamObject?.teamAutomationGroups" :key="group">
|
<div v-for="(subGroups, group) in teamObject.teamAutomationGroups" :key="group">
|
||||||
<div>
|
<h2 class="mt-0">{{ i18n.t(`team_automations.groups.${group}`) }}</h2>
|
||||||
<h2 class="mt-0">{{ i18n.t(`team_automations.groups.${group}`) }}</h2>
|
<div class="flex flex-col bg-sn-white gap-4 p-4 w-full">
|
||||||
<template v-for="(subGroupElements, subGroup) in teamObject?.teamAutomationGroups[group]" :key="subGroup">
|
<div v-for="(subGroupElements, subGroup) in subGroups" :key="subGroup">
|
||||||
<table class="bg-sn-white w-full">
|
<h5>{{ i18n.t(`team_automations.sub_groups.${subGroup}`) }}</h5>
|
||||||
<tbody>
|
<div v-for="(subGroupElement, i) in subGroupElements" :key="subGroupElement" class="flex w-full">
|
||||||
<tr class="text-base">
|
<div class="w-1/2 border-0 border-t border-solid border-sn-super-light-grey">
|
||||||
<td colspan=2 class="pl-4"><h5>{{ i18n.t(`team_automations.sub_groups.${subGroup}`) }}</h5></td>
|
<div class="text-base py-3 pl-2">
|
||||||
</tr>
|
{{ i18n.t(`team_automations.sub_group_element.${subGroupElement}`) }}
|
||||||
<template v-for="(subGroupElement, i) in subGroupElements" :key="subGroupElement">
|
</div>
|
||||||
<tr class="text-base">
|
</div>
|
||||||
<td class="py-3 pl-6">{{ i18n.t(`team_automations.sub_group_element.${subGroupElement}`) }}</td>
|
<div class="flex-shrink-0 border-0 border-t border-solid border-sn-super-light-grey flex items-center">
|
||||||
<td class="p-3">
|
<div class="sci-toggle-checkbox-container py-3">
|
||||||
<div class="sci-toggle-checkbox-container">
|
<input v-model="teamAutomationSettings[group][subGroup][subGroupElement]" type="checkbox" class="sci-toggle-checkbox" @change="setTeamAutomationsSettings"/>
|
||||||
<input v-model="teamAutomationSettings[group][subGroup][subGroupElement]" type="checkbox" class="sci-toggle-checkbox" @change="setTeamAutomationsSettings"/>
|
<label class="sci-toggle-checkbox-label"></label>
|
||||||
<label class="sci-toggle-checkbox-label"></label>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
</div>
|
||||||
</template>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</template>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue