Skip to content
Extraits de code Groupes Projets
Valider a1a154ca rédigé par Brieuc Dubois's avatar Brieuc Dubois
Parcourir les fichiers

Fix tutor registration

parent 22ce6c83
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -491,10 +491,6 @@
</div>
<style lang="postcss">
/* input:not([type='radio']) {
@apply w-full;
} */
.label-text-alt {
@apply opacity-50 ml-8;
}
......
......@@ -8,14 +8,10 @@
import { get } from 'svelte/store';
import Timeslots from '$lib/components/users/timeslots.svelte';
import User, { users } from '$lib/types/user';
import {
getUsersAPI,
patchUserAPI,
createUserContactAPI,
getUserContactsAPI
} from '$lib/api/users';
import { getUsersAPI, patchUserAPI, getUserContactsAPI } from '$lib/api/users';
import { Icon, Envelope, Key, UserCircle, Calendar, QuestionMarkCircle } from 'svelte-hero-icons';
import Typingtest from '$lib/components/tests/typingtest.svelte';
import { formatToUTCDate } from '$lib/utils/date';
let current_step = 0;
......@@ -57,12 +53,6 @@
let calcom_link = '';
let timeslots = 0n;
$: filteredUsers = $users.filter((user) => {
if (user.availability === 0n) return false;
if (timeslots === 0n) return true;
return user.availability & timeslots;
});
async function onRegister() {
if (nickname == '' || email == '' || password == '' || confirmPassword == '') {
......@@ -360,7 +350,7 @@
id="birthyear"
name="birthyear"
required
bind:value={birthdate}
on:change={(e) => (birthdate = formatToUTCDate(new Date(e.target.value, 1, 1)))}
>
<option disabled selected value="">{$t('register.birthyear')}</option>
{#each Array.from({ length: 82 }, (_, i) => i + 1931).reverse() as year}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter