Implement label only flag
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b98e23d060
commit
01b05aaed0
9 changed files with 311 additions and 11 deletions
|
@ -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}
|
||||
|
|
Reference in a new issue