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

Fix previous merge.

parent 764f64a6
Branches
Tags
No related merge requests found
......@@ -408,4 +408,4 @@
{/each}
</ul>
</div>
</div>
</section>
......@@ -122,7 +122,7 @@
</p>
<a
class="text-gray-700 underline text-xs hover:text-le-bleu"
href=""
href="TODO"
>
Cliquez pour contribuer.
</a>
......@@ -195,6 +195,7 @@
</li>
{/each}
</ul>
</section>
<!-- Caractéristiques avancées-->
<section class="my-4">
......@@ -238,38 +239,6 @@
</section>
{/if}
{#if editable}
<section>
<h1>Valeur</h1>
<ul>
{#each Object.keys(entitySituation ?? {}) as itemName}
<li>
{itemName} :
{#if variable.possible_values !== undefined}
<select
on:blur={({ target }) => changeValue(itemName, target.value)}
on:change={({ target }) => changeValue(itemName, target.value)}
value={entitySituationComplement?.[itemName]?.[variable.name] ??
variable.default_value}
>
{#each Object.entries(variable.possible_values) as [symbol, label]}
<option value={symbol}>{label}</option>
{/each}
</select>
{:else}
<input
on:change={({ target }) => changeValue(itemName, target.value)}
type="number"
value={entitySituationComplement?.[itemName]?.[variable.name] ??
variable.default_value}
/>
{/if}
</li>
{/each}
</ul>
</section>
{/if}
{#if variable.referring_variables !== undefined}
<section>
<h1>Variables dépendantes</h1>
......
......@@ -47,7 +47,6 @@
<title>{variable.name} | Variables | {$session.title}</title>
</svelte:head>
<<<<<<< src/routes/variables/[variable]/index.svelte
<main class="flex items-center justify-center fond">
<div class="bg-white max-w-screen-md p-10 ">
<VariableView
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment