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

Design du bouton "ajouter un groupe" famille ou foyer fiscal

parent ec693387
No related branches found
No related tags found
1 merge request!25Ui edition cas type
......@@ -479,13 +479,13 @@
</label>
</div>
{/if}
<ul>
<ul class="ml-4">
{#each [...iterGroups(situation, groupEntity)] as [groupId, group], index (`${groupEntity.key_plural}.${index}`)}
<li>
{#if countGroups(situation, groupEntity) > 1}
<div class="flex items-center font-bold mt-4">
<div>
{group.name ?? groupId}
{group.name ?? groupId}&nbsp;:
</div>
<button
class="rounded"
......@@ -495,7 +495,7 @@
type="button"
>
{#if index > 0}
<div class="">
<div class="ml-4">
<!-- Material ui icon : delete -->
<svg
class="fill-current h-5 w-5 text-gray-500 {isGroupEmpty(
......@@ -548,9 +548,23 @@
</ul>
{#if countGroups(situation, groupEntity) > 1}
<button
class="bg-le-bleu hover:bg-blue-900 p-1 rounded shadow-md text-white"
class="text-black hover:text-le-bleu w-64 ml-2"
on:click={() => addGroup(groupEntity.key)}
type="button">+</button
type="button"
>
<div class="mt-2 text-base flex items-center">
<svg
class="fill-current inline mr-1"
xmlns="http://www.w3.org/2000/svg"
height="18px"
viewBox="0 0 24 24"
width="18px"
fill="#000000"
><path d="M0 0h24v24H0z" fill="none" /><path
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"
/></svg
>Ajouter un groupe
</div></button
>
{/if}
</section>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment