Skip to content
Snippets Groups Projects
Commit 325cf9d8 authored by Dorine Lambinet's avatar Dorine Lambinet
Browse files

Partie composition familiale, retire le picto corbeille quand famille n°1

parent 969e7efa
No related branches found
No related tags found
1 merge request!25Ui edition cas type
......@@ -483,22 +483,26 @@
{#each [...iterGroups(situation, groupEntity)] as [groupId, group], index (`${groupEntity.key_plural}.${index}`)}
<li>
{#if countGroups(situation, groupEntity) > 1}
<div class="">
<div class="flex items-center font-bold mt-4">
<div>
{group.name ?? groupId}
</div>
<button
class="p-1 rounded mt-4 mr-2"
class="rounded"
disabled={!isGroupEmpty(groupEntity, group)}
on:click={() => deleteGroup(groupEntity, groupId, group)}
title="Supprimer le groupe"
type="button"
>
{#if index > 0}
<div class="">
<!-- Material ui icon : delete -->
<svg
class="fill-current h-5 w-5 text-gray-500 {isGroupEmpty(
groupEntity,
group,
)
? 'hover:text-le-jaune-dark'
? 'hover:text-le-bleu'
: ''}"
xmlns="http://www.w3.org/2000/svg"
height="24px"
......@@ -508,6 +512,8 @@
d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"
/></svg
>
</div>
{/if}
</button>
</div>
{/if}
......@@ -520,7 +526,7 @@
? role.key_plural
: role.key)}&nbsp;:
</dt>
<dd class="">
<dd>
<RolePersonsEdit
idPrefix="{groupEntity.key_plural}.{groupId}.{role.key}"
{personById}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment