diff --git a/src/lib/components/variables/VariableReferredScaleParameter.svelte b/src/lib/components/variables/VariableReferredScaleParameter.svelte index 438179ad0dc29d14b7f3a33a8c5cc860fbf9da22..f9875ed8eee528b074403a27fa9c0348408f300b 100644 --- a/src/lib/components/variables/VariableReferredScaleParameter.svelte +++ b/src/lib/components/variables/VariableReferredScaleParameter.svelte @@ -101,61 +101,60 @@ <div class="flex items-baseline text-gray-600 text-xs"> <div class="flex items-center"> <div class="flex"> - <div - class="text-sm tracking-wide px-1 text-gray-600 underline border-r border-gray-700" + <a + class="text-sm tracking-wide px-1 text-gray-600 underline border-r border-gray-700 flex pr-2" + href="/parameters/{billParameter.name}/edit" + target="_blank" > - <div class="flex pr-2"> - {#if billLatestInstant < "2020" || billLatestInstant === "0001-01-01"} - <!-- Inspired from Material Icons name: Warning / with white symbol inside --> - <div class="flex pr-2"> - <svg - aria-hidden="true" - class="block fill-current h-5 w-5 text-white " - viewBox="0 0 24 22" - xmlns="http://www.w3.org/2000/svg" - > - <path - class="text-[#FFAC33]" - d="M0.124322 18.4377C-0.240619 19.1041 0.241623 19.918 1.00142 19.918H20.6259C21.3857 19.918 21.868 19.1041 21.503 18.4377L11.6908 0.519686C11.3113 -0.173228 10.316 -0.173229 9.93658 0.519685L0.124322 18.4377ZM11.8591 16.8375C11.8591 17.3898 11.4114 17.8375 10.8591 17.8375H10.7682C10.2159 17.8375 9.76822 17.3898 9.76822 16.8375V16.627C9.76822 16.0747 10.2159 15.627 10.7682 15.627H10.8591C11.4114 15.627 11.8591 16.0747 11.8591 16.627V16.8375ZM11.8591 12.7416C11.8591 13.2938 11.4114 13.7416 10.8591 13.7416H10.7682C10.2159 13.7416 9.76822 13.2938 9.76822 12.7416V7.3298C9.76822 6.77751 10.2159 6.3298 10.7682 6.3298H10.8591C11.4114 6.3298 11.8591 6.77751 11.8591 7.3298V12.7416Z" - /> - <path - d="M10.7686 17.8378H10.8595C11.4117 17.8378 11.8595 17.3901 11.8595 16.8378V16.6273C11.8595 16.075 11.4117 15.6273 10.8595 15.6273H10.7686C10.2163 15.6273 9.76855 16.075 9.76855 16.6273V16.8378C9.76855 17.3901 10.2163 17.8378 10.7686 17.8378Z" - /> - <path - d="M10.7686 13.7418H10.8595C11.4117 13.7418 11.8595 13.2941 11.8595 12.7418V7.33008C11.8595 6.77779 11.4117 6.33008 10.8595 6.33008H10.7686C10.2163 6.33008 9.76855 6.77779 9.76855 7.33008V12.7418C9.76855 13.2941 10.2163 13.7418 10.7686 13.7418Z" - /> - </svg> - </div> - <span - title="La dernière relecture date de {billLatestInstantSplit[1]}/{billLatestInstantSplit[0]}" - >À vérifier</span - > - {:else} - <!-- Inspired from Material Icons name: New Releases / with white symbol inside --> - <div class="flex pr-2"> - <svg - aria-hidden="true" - class="block h-5 w-5 text-white " - viewBox="0 0 24 23" - xmlns="http://www.w3.org/2000/svg" - > - <path - d="M22 10.5L19.56 7.71L19.9 4.02L16.29 3.2L14.4 0L11 1.46L7.6 0L5.71 3.19L2.1 4L2.44 7.7L0 10.5L2.44 13.29L2.1 16.99L5.71 17.81L7.6 21L11 19.53L14.4 20.99L16.29 17.8L19.9 16.98L19.56 13.29L22 10.5ZM9.09 15.22L5.29 11.41L6.77 9.93L9.09 12.26L14.94 6.39L16.42 7.87L9.09 15.22Z" - fill="#13CC03" - /> - <path - d="M9.09004 15.2187L5.29004 11.4087L6.77004 9.92867L9.09004 12.2587L14.94 6.38867L16.42 7.86867L9.09004 15.2187Z" - fill="white" - /> - </svg> - </div> - <span - title="La dernière relecture date de {billLatestInstantSplit[1]}/{billLatestInstantSplit[0]}" - >Vérifié</span - > - {/if} - </div> - </div> + {#if billLatestInstant < "2020" || billLatestInstant === "0001-01-01"} + <!-- Inspired from Material Icons name: Warning / with white symbol inside --> + + <svg + aria-hidden="true" + class="block fill-current h-5 w-5 text-white " + viewBox="0 0 24 22" + xmlns="http://www.w3.org/2000/svg" + > + <path + class="text-[#FFAC33]" + d="M0.124322 18.4377C-0.240619 19.1041 0.241623 19.918 1.00142 19.918H20.6259C21.3857 19.918 21.868 19.1041 21.503 18.4377L11.6908 0.519686C11.3113 -0.173228 10.316 -0.173229 9.93658 0.519685L0.124322 18.4377ZM11.8591 16.8375C11.8591 17.3898 11.4114 17.8375 10.8591 17.8375H10.7682C10.2159 17.8375 9.76822 17.3898 9.76822 16.8375V16.627C9.76822 16.0747 10.2159 15.627 10.7682 15.627H10.8591C11.4114 15.627 11.8591 16.0747 11.8591 16.627V16.8375ZM11.8591 12.7416C11.8591 13.2938 11.4114 13.7416 10.8591 13.7416H10.7682C10.2159 13.7416 9.76822 13.2938 9.76822 12.7416V7.3298C9.76822 6.77751 10.2159 6.3298 10.7682 6.3298H10.8591C11.4114 6.3298 11.8591 6.77751 11.8591 7.3298V12.7416Z" + /> + <path + d="M10.7686 17.8378H10.8595C11.4117 17.8378 11.8595 17.3901 11.8595 16.8378V16.6273C11.8595 16.075 11.4117 15.6273 10.8595 15.6273H10.7686C10.2163 15.6273 9.76855 16.075 9.76855 16.6273V16.8378C9.76855 17.3901 10.2163 17.8378 10.7686 17.8378Z" + /> + <path + d="M10.7686 13.7418H10.8595C11.4117 13.7418 11.8595 13.2941 11.8595 12.7418V7.33008C11.8595 6.77779 11.4117 6.33008 10.8595 6.33008H10.7686C10.2163 6.33008 9.76855 6.77779 9.76855 7.33008V12.7418C9.76855 13.2941 10.2163 13.7418 10.7686 13.7418Z" + /> + </svg> + <span + class="pl-2" + title="La dernière relecture date du {billLatestInstantSplit[1]}/{billLatestInstantSplit[0]}" + >À vérifier</span + > + {:else} + <!-- Inspired from Material Icons name: New Releases / with white symbol inside --> + <svg + aria-hidden="true" + class="block h-5 w-5 text-white " + viewBox="0 0 24 23" + xmlns="http://www.w3.org/2000/svg" + > + <path + d="M22 10.5L19.56 7.71L19.9 4.02L16.29 3.2L14.4 0L11 1.46L7.6 0L5.71 3.19L2.1 4L2.44 7.7L0 10.5L2.44 13.29L2.1 16.99L5.71 17.81L7.6 21L11 19.53L14.4 20.99L16.29 17.8L19.9 16.98L19.56 13.29L22 10.5ZM9.09 15.22L5.29 11.41L6.77 9.93L9.09 12.26L14.94 6.39L16.42 7.87L9.09 15.22Z" + fill="#13CC03" + /> + <path + d="M9.09004 15.2187L5.29004 11.4087L6.77004 9.92867L9.09004 12.2587L14.94 6.38867L16.42 7.86867L9.09004 15.2187Z" + fill="white" + /> + </svg> + <span + class="pl-2" + title="La dernière relecture date du {billLatestInstantSplit[1]}/{billLatestInstantSplit[0]}" + >Vérifié</span + > + {/if} + </a> <div> <a diff --git a/src/lib/components/variables/VariableReferredValueParameter.svelte b/src/lib/components/variables/VariableReferredValueParameter.svelte index 4a7fe7c92b9f7244dd58148e555ad17a9e9676cc..44abcbe9199564a3f1d359d3a0c0c7618c4a516c 100644 --- a/src/lib/components/variables/VariableReferredValueParameter.svelte +++ b/src/lib/components/variables/VariableReferredValueParameter.svelte @@ -110,62 +110,60 @@ <div class="bg-gray-100 flex items-baseline text-gray-600 text-xs p-2"> <div class="flex items-center"> <div class="flex"> - <div - class="text-gray-600 text-sm tracking-wide px-1 underline border-r border-gray-700" + <a + class="text-sm tracking-wide px-1 text-gray-600 underline border-r border-gray-700 flex pr-2" + href="/parameters/{billParameter.name}/edit" + target="_blank" > - <div class="flex pr-2"> - {#if billLatestInstant < "2020" || billLatestInstant === "0001-01-01"} - <!-- Inspired from Material Icons name: Warning / with white symbol inside --> - <div class="flex pr-2"> - <svg - aria-hidden="true" - class="block fill-current h-5 w-5 text-white " - viewBox="0 0 24 22" - xmlns="http://www.w3.org/2000/svg" - > - <path - class="text-[#FFAC33]" - d="M0.124322 18.4377C-0.240619 19.1041 0.241623 19.918 1.00142 19.918H20.6259C21.3857 19.918 21.868 19.1041 21.503 18.4377L11.6908 0.519686C11.3113 -0.173228 10.316 -0.173229 9.93658 0.519685L0.124322 18.4377ZM11.8591 16.8375C11.8591 17.3898 11.4114 17.8375 10.8591 17.8375H10.7682C10.2159 17.8375 9.76822 17.3898 9.76822 16.8375V16.627C9.76822 16.0747 10.2159 15.627 10.7682 15.627H10.8591C11.4114 15.627 11.8591 16.0747 11.8591 16.627V16.8375ZM11.8591 12.7416C11.8591 13.2938 11.4114 13.7416 10.8591 13.7416H10.7682C10.2159 13.7416 9.76822 13.2938 9.76822 12.7416V7.3298C9.76822 6.77751 10.2159 6.3298 10.7682 6.3298H10.8591C11.4114 6.3298 11.8591 6.77751 11.8591 7.3298V12.7416Z" - /> - <path - d="M10.7686 17.8378H10.8595C11.4117 17.8378 11.8595 17.3901 11.8595 16.8378V16.6273C11.8595 16.075 11.4117 15.6273 10.8595 15.6273H10.7686C10.2163 15.6273 9.76855 16.075 9.76855 16.6273V16.8378C9.76855 17.3901 10.2163 17.8378 10.7686 17.8378Z" - /> - <path - d="M10.7686 13.7418H10.8595C11.4117 13.7418 11.8595 13.2941 11.8595 12.7418V7.33008C11.8595 6.77779 11.4117 6.33008 10.8595 6.33008H10.7686C10.2163 6.33008 9.76855 6.77779 9.76855 7.33008V12.7418C9.76855 13.2941 10.2163 13.7418 10.7686 13.7418Z" - /> - </svg> - </div> - <span - title="La dernière relecture date de {billLatestInstantSplit[1]}/{billLatestInstantSplit[0]}" - >À vérifier</span - > - {:else} - <!-- Inspired from Material Icons name: New Releases / with white symbol inside --> - <div class="flex pr-2"> - <svg - aria-hidden="true" - class="block h-5 w-5 text-white " - viewBox="0 0 24 23" - xmlns="http://www.w3.org/2000/svg" - > - <path - d="M22 10.5L19.56 7.71L19.9 4.02L16.29 3.2L14.4 0L11 1.46L7.6 0L5.71 3.19L2.1 4L2.44 7.7L0 10.5L2.44 13.29L2.1 16.99L5.71 17.81L7.6 21L11 19.53L14.4 20.99L16.29 17.8L19.9 16.98L19.56 13.29L22 10.5ZM9.09 15.22L5.29 11.41L6.77 9.93L9.09 12.26L14.94 6.39L16.42 7.87L9.09 15.22Z" - fill="#13CC03" - /> - <path - d="M9.09004 15.2187L5.29004 11.4087L6.77004 9.92867L9.09004 12.2587L14.94 6.38867L16.42 7.86867L9.09004 15.2187Z" - fill="white" - /> - </svg> - </div> - - <span - title="La dernière relecture date de {billLatestInstantSplit[1]}/{billLatestInstantSplit[0]}" - >Vérifié</span - > - {/if} - </div> - </div> + {#if billLatestInstant < "2020" || billLatestInstant === "0001-01-01"} + <!-- Inspired from Material Icons name: Warning / with white symbol inside --> + + <svg + aria-hidden="true" + class="block fill-current h-5 w-5 text-white " + viewBox="0 0 24 22" + xmlns="http://www.w3.org/2000/svg" + > + <path + class="text-[#FFAC33]" + d="M0.124322 18.4377C-0.240619 19.1041 0.241623 19.918 1.00142 19.918H20.6259C21.3857 19.918 21.868 19.1041 21.503 18.4377L11.6908 0.519686C11.3113 -0.173228 10.316 -0.173229 9.93658 0.519685L0.124322 18.4377ZM11.8591 16.8375C11.8591 17.3898 11.4114 17.8375 10.8591 17.8375H10.7682C10.2159 17.8375 9.76822 17.3898 9.76822 16.8375V16.627C9.76822 16.0747 10.2159 15.627 10.7682 15.627H10.8591C11.4114 15.627 11.8591 16.0747 11.8591 16.627V16.8375ZM11.8591 12.7416C11.8591 13.2938 11.4114 13.7416 10.8591 13.7416H10.7682C10.2159 13.7416 9.76822 13.2938 9.76822 12.7416V7.3298C9.76822 6.77751 10.2159 6.3298 10.7682 6.3298H10.8591C11.4114 6.3298 11.8591 6.77751 11.8591 7.3298V12.7416Z" + /> + <path + d="M10.7686 17.8378H10.8595C11.4117 17.8378 11.8595 17.3901 11.8595 16.8378V16.6273C11.8595 16.075 11.4117 15.6273 10.8595 15.6273H10.7686C10.2163 15.6273 9.76855 16.075 9.76855 16.6273V16.8378C9.76855 17.3901 10.2163 17.8378 10.7686 17.8378Z" + /> + <path + d="M10.7686 13.7418H10.8595C11.4117 13.7418 11.8595 13.2941 11.8595 12.7418V7.33008C11.8595 6.77779 11.4117 6.33008 10.8595 6.33008H10.7686C10.2163 6.33008 9.76855 6.77779 9.76855 7.33008V12.7418C9.76855 13.2941 10.2163 13.7418 10.7686 13.7418Z" + /> + </svg> + <span + class="pl-2" + title="La dernière relecture date du {billLatestInstantSplit[1]}/{billLatestInstantSplit[0]}" + >À vérifier</span + > + {:else} + <!-- Inspired from Material Icons name: New Releases / with white symbol inside --> + <svg + aria-hidden="true" + class="block h-5 w-5 text-white " + viewBox="0 0 24 23" + xmlns="http://www.w3.org/2000/svg" + > + <path + d="M22 10.5L19.56 7.71L19.9 4.02L16.29 3.2L14.4 0L11 1.46L7.6 0L5.71 3.19L2.1 4L2.44 7.7L0 10.5L2.44 13.29L2.1 16.99L5.71 17.81L7.6 21L11 19.53L14.4 20.99L16.29 17.8L19.9 16.98L19.56 13.29L22 10.5ZM9.09 15.22L5.29 11.41L6.77 9.93L9.09 12.26L14.94 6.39L16.42 7.87L9.09 15.22Z" + fill="#13CC03" + /> + <path + d="M9.09004 15.2187L5.29004 11.4087L6.77004 9.92867L9.09004 12.2587L14.94 6.38867L16.42 7.86867L9.09004 15.2187Z" + fill="white" + /> + </svg> + <span + class="pl-2" + title="La dernière relecture date du {billLatestInstantSplit[1]}/{billLatestInstantSplit[0]}" + >Vérifié</span + > + {/if} + </a> <div> <a