Implement label only flag
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2022-01-21 13:06:37 +01:00
parent b98e23d060
commit 01b05aaed0
9 changed files with 311 additions and 11 deletions

View file

@ -198,7 +198,11 @@
<CardBody>
<form on:submit|preventDefault={submitFlags}>
{#each flags as flag ((flag.type?flag.type:"i") + flag.id)}
{#if flag.type == "mcq"}
{#if !flag.type && !flag.id}
<div class="form-group mb-3">
<label class="{flag.variant?('text-'+flag.variant):''}">{flag.label}</label>
</div>
{:else if flag.type == "mcq"}
<FlagMCQ
exercice_id={exercice.id}
{flag}