first commit
This commit is contained in:
34
templates/base.html.twig
Normal file
34
templates/base.html.twig
Normal file
@@ -0,0 +1,34 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{% block title %}Accueil{% endblock %}</title>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">
|
||||
{% block stylesheets %}{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="{{ path('app_home') }}">MonApp</a>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarNav">
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item"><a class="nav-link" href="{{ path('app_home') }}">Accueil</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="{{ path('app_membre_index') }}">Membres</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="{{ path('app_projet_index') }}">Projets</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="{{ path('app_contribution_index') }}">Contributions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container mt-4">
|
||||
{% block body %}{% endblock %}
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||
{% block javascripts %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
0
templates/contrib/list.html.twig
Normal file
0
templates/contrib/list.html.twig
Normal file
4
templates/contribution/_delete_form.html.twig
Normal file
4
templates/contribution/_delete_form.html.twig
Normal file
@@ -0,0 +1,4 @@
|
||||
<form method="post" action="{{ path('app_contribution_delete', {'id': contribution.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ contribution.id) }}">
|
||||
<button class="btn">Delete</button>
|
||||
</form>
|
||||
4
templates/contribution/_form.html.twig
Normal file
4
templates/contribution/_form.html.twig
Normal file
@@ -0,0 +1,4 @@
|
||||
{{ form_start(form) }}
|
||||
{{ form_widget(form) }}
|
||||
<button class="btn">{{ button_label|default('Save') }}</button>
|
||||
{{ form_end(form) }}
|
||||
13
templates/contribution/edit.html.twig
Normal file
13
templates/contribution/edit.html.twig
Normal file
@@ -0,0 +1,13 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Edit Contribution{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Edit Contribution</h1>
|
||||
|
||||
{{ include('contribution/_form.html.twig', {'button_label': 'Update'}) }}
|
||||
|
||||
<a href="{{ path('app_contribution_index') }}">back to list</a>
|
||||
|
||||
{{ include('contribution/_delete_form.html.twig') }}
|
||||
{% endblock %}
|
||||
35
templates/contribution/index.html.twig
Normal file
35
templates/contribution/index.html.twig
Normal file
@@ -0,0 +1,35 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Contribution index{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Contribution index</h1>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Duree</th>
|
||||
<th>actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for contribution in contributions %}
|
||||
<tr>
|
||||
<td>{{ contribution.id }}</td>
|
||||
<td>{{ contribution.duree }}</td>
|
||||
<td>
|
||||
<a href="{{ path('app_contribution_show', {'id': contribution.id}) }}">show</a>
|
||||
<a href="{{ path('app_contribution_edit', {'id': contribution.id}) }}">edit</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="3">no records found</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('app_contribution_new') }}">Create new</a>
|
||||
{% endblock %}
|
||||
11
templates/contribution/new.html.twig
Normal file
11
templates/contribution/new.html.twig
Normal file
@@ -0,0 +1,11 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}New Contribution{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Create new Contribution</h1>
|
||||
|
||||
{{ include('contribution/_form.html.twig') }}
|
||||
|
||||
<a href="{{ path('app_contribution_index') }}">back to list</a>
|
||||
{% endblock %}
|
||||
26
templates/contribution/show.html.twig
Normal file
26
templates/contribution/show.html.twig
Normal file
@@ -0,0 +1,26 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Contribution{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Contribution</h1>
|
||||
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<td>{{ contribution.id }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Duree</th>
|
||||
<td>{{ contribution.duree }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('app_contribution_index') }}">back to list</a>
|
||||
|
||||
<a href="{{ path('app_contribution_edit', {'id': contribution.id}) }}">edit</a>
|
||||
|
||||
{{ include('contribution/_delete_form.html.twig') }}
|
||||
{% endblock %}
|
||||
0
templates/home.html.twig
Normal file
0
templates/home.html.twig
Normal file
8
templates/home/index.html.twig
Normal file
8
templates/home/index.html.twig
Normal file
@@ -0,0 +1,8 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Accueil{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Bienvenue sur l’application de suivi d’activités !</h1>
|
||||
<p>Utilisez la navbar pour naviguer entre les sections.</p>
|
||||
{% endblock %}
|
||||
0
templates/inc_navbar.html.twig
Normal file
0
templates/inc_navbar.html.twig
Normal file
11
templates/index.html
Normal file
11
templates/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
neuille
|
||||
</body>
|
||||
</html>
|
||||
0
templates/login.html.twig
Normal file
0
templates/login.html.twig
Normal file
4
templates/membre/_delete_form.html.twig
Normal file
4
templates/membre/_delete_form.html.twig
Normal file
@@ -0,0 +1,4 @@
|
||||
<form method="post" action="{{ path('app_membre_delete', {'id': membre.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ membre.id) }}">
|
||||
<button class="btn">Delete</button>
|
||||
</form>
|
||||
4
templates/membre/_form.html.twig
Normal file
4
templates/membre/_form.html.twig
Normal file
@@ -0,0 +1,4 @@
|
||||
{{ form_start(form) }}
|
||||
{{ form_widget(form) }}
|
||||
<button class="btn">{{ button_label|default('Save') }}</button>
|
||||
{{ form_end(form) }}
|
||||
13
templates/membre/edit.html.twig
Normal file
13
templates/membre/edit.html.twig
Normal file
@@ -0,0 +1,13 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Edit Membre{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Edit Membre</h1>
|
||||
|
||||
{{ include('membre/_form.html.twig', {'button_label': 'Update'}) }}
|
||||
|
||||
<a href="{{ path('app_membre_index') }}">back to list</a>
|
||||
|
||||
{{ include('membre/_delete_form.html.twig') }}
|
||||
{% endblock %}
|
||||
37
templates/membre/index.html.twig
Normal file
37
templates/membre/index.html.twig
Normal file
@@ -0,0 +1,37 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Membre index{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Membre index</h1>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Nom</th>
|
||||
<th>Droit</th>
|
||||
<th>actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for membre in membres %}
|
||||
<tr>
|
||||
<td>{{ membre.id }}</td>
|
||||
<td>{{ membre.nom }}</td>
|
||||
<td>{{ membre.droit }}</td>
|
||||
<td>
|
||||
<a href="{{ path('app_membre_show', {'id': membre.id}) }}">show</a>
|
||||
<a href="{{ path('app_membre_edit', {'id': membre.id}) }}">edit</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="5">no records found</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('app_membre_new') }}">Create new</a>
|
||||
{% endblock %}
|
||||
11
templates/membre/new.html.twig
Normal file
11
templates/membre/new.html.twig
Normal file
@@ -0,0 +1,11 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}New Membre{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Create new Membre</h1>
|
||||
|
||||
{{ include('membre/_form.html.twig') }}
|
||||
|
||||
<a href="{{ path('app_membre_index') }}">back to list</a>
|
||||
{% endblock %}
|
||||
34
templates/membre/show.html.twig
Normal file
34
templates/membre/show.html.twig
Normal file
@@ -0,0 +1,34 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Membre{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Membre</h1>
|
||||
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<td>{{ membre.id }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<td>{{ membre.nom }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Password</th>
|
||||
<td>{{ membre.password }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Droit</th>
|
||||
<td>{{ membre.droit }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('app_membre_index') }}">back to list</a>
|
||||
|
||||
<a href="{{ path('app_membre_edit', {'id': membre.id}) }}">edit</a>
|
||||
|
||||
{{ include('membre/_delete_form.html.twig') }}
|
||||
{% endblock %}
|
||||
4
templates/projet/_delete_form.html.twig
Normal file
4
templates/projet/_delete_form.html.twig
Normal file
@@ -0,0 +1,4 @@
|
||||
<form method="post" action="{{ path('app_projet_delete', {'id': projet.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ projet.id) }}">
|
||||
<button class="btn">Delete</button>
|
||||
</form>
|
||||
4
templates/projet/_form.html.twig
Normal file
4
templates/projet/_form.html.twig
Normal file
@@ -0,0 +1,4 @@
|
||||
{{ form_start(form) }}
|
||||
{{ form_widget(form) }}
|
||||
<button class="btn">{{ button_label|default('Save') }}</button>
|
||||
{{ form_end(form) }}
|
||||
13
templates/projet/edit.html.twig
Normal file
13
templates/projet/edit.html.twig
Normal file
@@ -0,0 +1,13 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Edit Projet{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Edit Projet</h1>
|
||||
|
||||
{{ include('projet/_form.html.twig', {'button_label': 'Update'}) }}
|
||||
|
||||
<a href="{{ path('app_projet_index') }}">back to list</a>
|
||||
|
||||
{{ include('projet/_delete_form.html.twig') }}
|
||||
{% endblock %}
|
||||
35
templates/projet/index.html.twig
Normal file
35
templates/projet/index.html.twig
Normal file
@@ -0,0 +1,35 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Projet index{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Projet index</h1>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Nom</th>
|
||||
<th>actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for projet in projets %}
|
||||
<tr>
|
||||
<td>{{ projet.id }}</td>
|
||||
<td>{{ projet.nom }}</td>
|
||||
<td>
|
||||
<a href="{{ path('app_projet_show', {'id': projet.id}) }}">show</a>
|
||||
<a href="{{ path('app_projet_edit', {'id': projet.id}) }}">edit</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="3">no records found</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('app_projet_new') }}">Create new</a>
|
||||
{% endblock %}
|
||||
11
templates/projet/new.html.twig
Normal file
11
templates/projet/new.html.twig
Normal file
@@ -0,0 +1,11 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}New Projet{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Create new Projet</h1>
|
||||
|
||||
{{ include('projet/_form.html.twig') }}
|
||||
|
||||
<a href="{{ path('app_projet_index') }}">back to list</a>
|
||||
{% endblock %}
|
||||
26
templates/projet/show.html.twig
Normal file
26
templates/projet/show.html.twig
Normal file
@@ -0,0 +1,26 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Projet{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Projet</h1>
|
||||
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<td>{{ projet.id }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<td>{{ projet.nom }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('app_projet_index') }}">back to list</a>
|
||||
|
||||
<a href="{{ path('app_projet_edit', {'id': projet.id}) }}">edit</a>
|
||||
|
||||
{{ include('projet/_delete_form.html.twig') }}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user