Skip to content
Snippets Groups Projects
Commit f9ad5f8c authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Add references to parameters.

parent b736abdd
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,8 @@
$: billLatestInstantSplit = billLatestInstant.split("-")
$: billReferences = billParameter.reference?.[billLatestInstant]
$: billScaleAtInstant = billLatestInstantScaleCouple[1]
$: lawScaleAtInstant = lawLatestInstantScaleCouple?.[1]
......@@ -96,10 +98,28 @@
/>
</div>
<div class="bg-gray-100 rounded-b p-2">
<p class=" text-sm mb-3">
<p class=" text-sm">
Barème depuis {billLatestInstantSplit[1]}/{billLatestInstantSplit[0]}
</p>
<div class="flex items-baseline text-gray-600 text-xs">
{#if billReferences !== undefined && billReferences.length > 0}
<ul class="text-sm">
{#each billReferences as { href, note, title }}
<li>
{#if href === undefined}{title}{:else}<a
class="link"
{href}
target="_blank">{title ?? "Source"}</a
>{/if}
{#if note}
<p>{note}</p>
{/if}
</li>
{/each}
</ul>
{/if}
<div class="flex mt-3 items-baseline text-gray-600 text-xs">
<div class="flex items-center">
<div class="flex text-gray-600 text-sm">
<div class="bg-gray-400 rounded-sm flex px-1 text-white">
......
......@@ -45,6 +45,8 @@
$: billLatestInstantSplit = billLatestInstant.split("-")
$: billReferences = billParameter.reference?.[billLatestInstant]
$: billValue = billLatestInstantValueCouple[1]
$: lawValue = lawLatestInstantValueCouple?.[1]
......@@ -106,6 +108,23 @@
{#if valueError !== null}<p class="text-red-500">{valueError}</p>{/if}
</div>
{#if billReferences !== undefined && billReferences.length > 0}
<ul class="bg-gray-100 mx-2 text-sm">
{#each billReferences as { href, note, title }}
<li>
{#if href === undefined}{title}{:else}<a
class="link"
{href}
target="_blank">{title ?? "Source"}</a
>{/if}
{#if note}
<p>{note}</p>
{/if}
</li>
{/each}
</ul>
{/if}
<div class="bg-gray-100 flex items-baseline text-gray-600 text-xs p-2">
<div class="flex items-center">
<div class="flex text-gray-600 text-sm">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment