diff --git a/public/js/map.js b/public/js/map.js new file mode 100644 index 0000000..ae168ad --- /dev/null +++ b/public/js/map.js @@ -0,0 +1,7 @@ + + +// initialize the map on the "map" div with a given center and zoom +var map = L.map('map', { + center: [51.505, -0.09], + zoom: 13 +}); diff --git a/src/Form/UserAppType.php b/src/Form/UserAppType.php index dbd2033..3af7796 100644 --- a/src/Form/UserAppType.php +++ b/src/Form/UserAppType.php @@ -13,7 +13,6 @@ class UserAppType extends AbstractType { $builder ->add('nickname') - ->add('roles') ->add('password') ->add('firstName') ->add('lastName') diff --git a/templates/degree/edit.html.twig b/templates/degree/edit.html.twig index 48cd886..d559be7 100644 --- a/templates/degree/edit.html.twig +++ b/templates/degree/edit.html.twig @@ -17,7 +17,6 @@ -
-{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/templates/degree/show.html.twig b/templates/degree/show.html.twig index a660d66..d48dd3c 100644 --- a/templates/degree/show.html.twig +++ b/templates/degree/show.html.twig @@ -22,18 +22,21 @@
- - + Retour à la liste des diplômes - - - Modifier ce diplôme - +
+ + Modifier ce diplôme + + + Supprimer + +
- - - {{ include('degree/_delete_form.html.twig') }} {% endblock %} diff --git a/templates/user_app/_delete_form.html.twig b/templates/user_app/_delete_form.html.twig index 804fbbf..02fe3c5 100644 --- a/templates/user_app/_delete_form.html.twig +++ b/templates/user_app/_delete_form.html.twig @@ -2,3 +2,4 @@ +a \ No newline at end of file diff --git a/templates/user_app/edit.html.twig b/templates/user_app/edit.html.twig index 346e18e..7a4559e 100644 --- a/templates/user_app/edit.html.twig +++ b/templates/user_app/edit.html.twig @@ -1,13 +1,49 @@ {% extends 'base.html.twig' %} -{% block title %}Edit UserApp{% endblock %} +{% block title %}Modifier l'utilisateur{% endblock %} {% block body %} -

Edit UserApp

+
+

Modifier l'utilisateur

- {{ include('user_app/_form.html.twig', {'button_label': 'Update'}) }} +
+ {{ form_start(form) }} - back to list +
+ {{ form_row(form.nickname, {'attr': {'class': 'w-full p-3 border rounded-md'}}) }} + {{ form_row(form.firstName, {'attr': {'class': 'w-full p-3 border rounded-md'}}) }} + {{ form_row(form.lastName, {'attr': {'class': 'w-full p-3 border rounded-md'}}) }} + {{ form_row(form.tel, {'attr': {'class': 'w-full p-3 border rounded-md'}}) }} + {{ form_row(form.address, {'attr': {'class': 'w-full p-3 border rounded-md'}}) }} + {{ form_row(form.mail, {'attr': {'class': 'w-full p-3 border rounded-md'}}) }} + {{ form_row(form.password, {'attr': {'class': 'w-full p-3 border rounded-md'}}) }} +
- {{ include('user_app/_delete_form.html.twig') }} +
+ {{ form_widget(form) }} +
+ + + + {{ form_end(form) }} +
+ +
+ + Retour à la liste des utilisateurs + + + +
+
{% endblock %} diff --git a/templates/user_app/index.html.twig b/templates/user_app/index.html.twig index b2c562e..031bab2 100644 --- a/templates/user_app/index.html.twig +++ b/templates/user_app/index.html.twig @@ -1,49 +1,56 @@ {% extends 'base.html.twig' %} -{% block title %}UserApp index{% endblock %} +{% block title %}Liste des utilisateurs{% endblock %} {% block body %} -

UserApp index

+
+

Liste des Utilisateurs

- - - - - - - - - - - - - - - - - {% for user_app in user_apps %} - - - - - - - - - - - - - {% else %} - - - - {% endfor %} - -
IdNicknameRolesPasswordFirstNameLastNameTelAddressMailactions
{{ user_app.id }}{{ user_app.nickname }}{{ user_app.roles ? user_app.roles|json_encode : '' }}{{ user_app.password }}{{ user_app.firstName }}{{ user_app.lastName }}{{ user_app.tel }}{{ user_app.address }}{{ user_app.mail }} - show - edit -
no records found
+
+ + + + + + + + + + + + + {% for user_app in user_apps %} + + + + + + + + + {% else %} + + + + {% endfor %} + +
IDNicknameFirstNameLastNameMailActions
{{ user_app.id }}{{ user_app.nickname }}{{ user_app.firstName }}{{ user_app.lastName }}{{ user_app.mail }} + + Voir + - Create new + + Modifier + + +
+ + + +
+
Aucun utilisateur trouvé
+
+
{% endblock %} diff --git a/templates/user_app/show.html.twig b/templates/user_app/show.html.twig index 931539c..a2b03bd 100644 --- a/templates/user_app/show.html.twig +++ b/templates/user_app/show.html.twig @@ -1,54 +1,58 @@ {% extends 'base.html.twig' %} -{% block title %}UserApp{% endblock %} +{% block title %}Détail de l'utilisateur{% endblock %} {% block body %} -

UserApp

+
+

Détail de l'utilisateur

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Id{{ user_app.id }}
Nickname{{ user_app.nickname }}
Roles{{ user_app.roles ? user_app.roles|json_encode : '' }}
Password{{ user_app.password }}
FirstName{{ user_app.firstName }}
LastName{{ user_app.lastName }}
Tel{{ user_app.tel }}
Address{{ user_app.address }}
Mail{{ user_app.mail }}
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ID{{ user_app.id }}
Nom{{ user_app.lastName }}
Prénom{{ user_app.firstName }}
Téléphone{{ user_app.tel }}
Adresse{{ user_app.address }}
E-mail{{ user_app.mail }}
+
- back to list +
+ + Retour à la liste des utilisateurs + - edit +
+ + Modifier cet utilisateur + - {{ include('user_app/_delete_form.html.twig') }} + + Supprimer + +
+
+
{% endblock %}