Création vue vocabList

php
Lucie GOIGOUX 1 year ago
parent cc8dc57ef2
commit 1254b0a81f

@ -35,4 +35,12 @@ class StudentController extends UserController
$vocab = $mdl->getVocabByName($name);
echo $twig->render('manageVocabView.html', ['vocabularies' => $vocab]);
}
public function memoryChoice(): void {
global $twig;
global $user;
$model = new MdlStudent();
$voc = $model->getAll();
echo $twig->render('vocabList.html', ['vocabularies' => $voc, 'userID' => $user->getId(), 'userRole' => $user->getRoles()]);
}
}

@ -2,9 +2,9 @@ body {
display: flex;
justify-content: center;
align-items: center;
height: 90vh;
height: 90%;
background-color: #acc2c2;
margin: 2vh 15vh;
margin: 2% 15%;
overflow: hidden;
}
@ -36,7 +36,7 @@ h1{
cursor: pointer;
transition: transform 0.6s ease;
transform-style: preserve-3d;
min-height: 5vh;
min-height: 5%;
max-width: 100%;
aspect-ratio: 1/1;
}

Loading…
Cancel
Save