Working on live surveys
This commit is contained in:
parent
567e170cfd
commit
a57e032e59
19 changed files with 1014 additions and 48 deletions
|
|
@ -2,6 +2,8 @@
|
|||
import { user } from '../stores/user';
|
||||
import SurveyList from '../components/SurveyList.svelte';
|
||||
import ValidateSubmissions from '../components/ValidateSubmissions.svelte';
|
||||
|
||||
let direct = null;
|
||||
</script>
|
||||
|
||||
<div class="card bg-light">
|
||||
|
|
@ -20,6 +22,12 @@
|
|||
</div>
|
||||
{/if}
|
||||
|
||||
{#if direct}
|
||||
<div class="alert alert-warning" role="alert">
|
||||
<strong>Rejoins le cours maintenant !</strong> Il y a actuellement un questionnaire en direct : {direct.title}. <a href="surveys/{direct.id}/live">Clique ici pour le rejoindre</a>.
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<p class="lead">Tu as fait les rendus suivants :</p>
|
||||
</div>
|
||||
<div class="d-none d-md-block col-md-auto">
|
||||
|
|
@ -38,6 +46,6 @@
|
|||
Vous devez <a href="auth/CRI" target="_self">vous identifier</a> pour accéder au contenu.
|
||||
</p>
|
||||
{/if}
|
||||
<SurveyList />
|
||||
<SurveyList bind:direct={direct} />
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Reference in a new issue