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

Add warning when article is not "amendable".

parent f37e8f32
Branches
Tags 0.0.201
No related merge requests found
Pipeline #5801 passed
......@@ -27,9 +27,9 @@
$: ciblesCreation = liens.filter(
(lien) => lien["@sens"] === "cible" && lien["@typelien"] === "CREATION",
)
$: titreTexte = firstValueOfArrayOrSingleton(
article.CONTEXTE.TEXTE.TITRE_TXT,
)?.["#text"]
$: numArticle = metaArticle.NUM
$: texte = article.CONTEXTE.TEXTE
$: titreTexte = firstValueOfArrayOrSingleton(texte.TITRE_TXT)?.["#text"]
export function legifranceUrlFromLegalObject(
type: LegalObjectType,
......@@ -86,6 +86,23 @@
</div>
</div>
{#if numArticle.startsWith("A")}
<span class="bg-red-500">
Cet article fait partie d'un arrêté. Il n'est pas amendable par un
parlementaire.
</span>
{:else if numArticle.startsWith("D")}
<span class="bg-red-500">
Cet article fait partie d'un décret. Il n'est pas amendable par un
parlementaire.
</span>
{:else if numArticle.startsWith("R")}
<span class="bg-red-500">
Cet article fait partie d'un décret pris en Conseil d'État. Il n'est pas
amendable par un parlementaire.
</span>
{/if}
<div class="prose font-serif">
{@html article.BLOC_TEXTUEL.CONTENU}
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment