diff --git a/.gitignore b/.gitignore index 739e1e8..b8c6a8a 100644 --- a/.gitignore +++ b/.gitignore @@ -21,4 +21,5 @@ /assets/vendor/ ###< symfony/asset-mapper ### .idea + /migrations/ \ No newline at end of file diff --git a/templates/company/edit.html.twig b/templates/company/edit.html.twig index 2ba5039..926a9d7 100644 --- a/templates/company/edit.html.twig +++ b/templates/company/edit.html.twig @@ -1,13 +1,55 @@ {% extends 'base.html.twig' %} -{% block title %}Edit Company{% endblock %} +{% block title %}Modifier l'entreprise{% endblock %} {% block body %} -

Edit Company

+
+

Modifier l'entreprise

- {{ include('company/_form.html.twig', {'button_label': 'Update'}) }} +
+ {{ form_start(form) }} - back to list +
+ +
+ {{ form_widget(form.name, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }} +
+
- {{ include('company/_delete_form.html.twig') }} +
+ +
+ {{ form_widget(form.address, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }} +
+
+ +
+ +
+ {{ form_widget(form.tel, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }} +
+
+ +
+ +
+ {{ form_widget(form.mail, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }} +
+
+ +
+ +
+ + {{ form_end(form) }} +
+ +
+ + Retour à la liste des entreprises + +
+
{% endblock %} diff --git a/templates/company/index.html.twig b/templates/company/index.html.twig index 2c1affd..ae89c2e 100644 --- a/templates/company/index.html.twig +++ b/templates/company/index.html.twig @@ -1,41 +1,50 @@ {% extends 'base.html.twig' %} -{% block title %}Company index{% endblock %} +{% block title %}Liste des Entreprises{% endblock %} {% block body %} -

Company index

+
+

Liste des Entreprises

- - - - - - - - - - - - - {% for company in companies %} - - - - - - - - - {% else %} - - - - {% endfor %} - -
IdNameAddressTelMailactions
{{ company.id }}{{ company.name }}{{ company.address }}{{ company.tel }}{{ company.mail }} - show - edit -
no records found
+
+ + + + + + + + + + {% for company in companies %} + + + + + + {% endfor %} + +
IDNom de l'entrepriseActions
{{ company.id }}{{ company.name }} + + Voir + + + Modifier + +
+ + + +
+
+
- Create new +
+ + Ajouter une nouvelle entreprise + +
+
{% endblock %} diff --git a/templates/company/new.html.twig b/templates/company/new.html.twig index e957106..ef0ab63 100644 --- a/templates/company/new.html.twig +++ b/templates/company/new.html.twig @@ -1,11 +1,47 @@ {% extends 'base.html.twig' %} -{% block title %}New Company{% endblock %} +{% block title %}Nouvelle Entreprise{% endblock %} {% block body %} -

Create new Company

+
+

Créer une nouvelle entreprise

- {{ include('company/_form.html.twig') }} +
+ {{ form_start(form) }} - back to list +
+ + {{ form_widget(form.name, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }} +
+ +
+ + {{ form_widget(form.address, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }} +
+ +
+ + {{ form_widget(form.tel, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }} +
+ +
+ + {{ form_widget(form.mail, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }} +
+ +
+ +
+ + {{ form_end(form) }} +
+ +
+ + Retour à la liste des entreprises + +
+
{% endblock %} diff --git a/templates/company/show.html.twig b/templates/company/show.html.twig index a46b203..2a1dd04 100644 --- a/templates/company/show.html.twig +++ b/templates/company/show.html.twig @@ -1,38 +1,56 @@ {% extends 'base.html.twig' %} -{% block title %}Company{% endblock %} +{% block title %}Détail de l'entreprise{% endblock %} {% block body %} -

Company

+
+

Détail de l'entreprise

- - - - - - - - - - - - - - - - - - - - - - - -
Id{{ company.id }}
Name{{ company.name }}
Address{{ company.address }}
Tel{{ company.tel }}
Mail{{ company.mail }}
+
+ + + + + + + + + + + + + + + + + + + + + + + +
ID{{ company.id }}
Nom{{ company.name }}
Adresse{{ company.address }}
Téléphone{{ company.tel }}
Email{{ company.mail }}
+
- back to list +
+ + Retour à la liste des entreprises + - edit + + Modifier cette entreprise + +
- {{ include('company/_delete_form.html.twig') }} +
+
+ + + +
+
+
{% endblock %} diff --git a/templates/index/index.html.twig b/templates/index/index.html.twig index a5a2a55..8fb84d2 100644 --- a/templates/index/index.html.twig +++ b/templates/index/index.html.twig @@ -44,33 +44,7 @@ Voir tout
- {# Loop over recent offers (replace with dynamic data) - {% for offer in recent_offers %} -
-
-
{{ offer.time_ago }}
-
-

{{ offer.title }}

-

{{ offer.company }}

-
- - {{ offer.category }} - - - {{ offer.type }} - - - {{ offer.salary }} - - - {{ offer.location }} - -
-
-
- -
- {% endfor %}#} +
{% endblock %} diff --git a/templates/user_app/edit.html.twig b/templates/user_app/edit.html.twig index 65b9dd9..6a6b06d 100644 --- a/templates/user_app/edit.html.twig +++ b/templates/user_app/edit.html.twig @@ -3,48 +3,47 @@ {% block title %}Modifier l'utilisateur{% endblock %} {% block body %} -
-

Modifier l'utilisateur

+
+

Modifier l'utilisateur

-
- {{ form_start(form) }} +
+ {{ form_start(form) }} -
- {{ 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'}}) }} -
-
- {{ form_widget(form) }} +
+ {{ 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'}}) }} +
+ +
+ {{ form_widget(form) }} +
+ + + + {{ form_end(form) }}
- - - {{ form_end(form) }} -
- - -{% endblock %} \ No newline at end of file +{% endblock %}