Skip to content
This repository was archived by the owner on Mar 9, 2023. It is now read-only.

Commit bf263d5

Browse files
committed
Bootstrap update4 commit
1 parent ff28b4d commit bf263d5

20 files changed

+156
-57
lines changed
83.3 KB
Loading

public/images/slider-img2.png

58.6 KB
Loading

public/images/slider-img3.png

8.26 KB
Loading
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<form class="d-inline-block" method="post" action="{{ path('auteur_delete', {'id': auteur.id}) }}" onsubmit="return confirm('Supprimer?');">
22
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ auteur.id) }}">
3-
<button class="btn btn-danger">Supprimer</button>
3+
<button class="btn btn-danger" ><i class="far fa-trash-alt"></i></button>
44
</form>

templates/auteur/edit.html.twig

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,16 @@
44
{% endblock %}
55

66
{% block body %}
7-
<h1>Modifier un Auteur</h1>
7+
<div class=" container contact_section" >
8+
9+
10+
<div class="heading_container heading_center">
11+
<h2>
12+
Modifier auteur
13+
</h2>
14+
</div>
815

916
{{ include('auteur/_form.html.twig', {'button_label': 'Modifier'}) }}
1017
{{ include('auteur/_delete_form.html.twig') }}
18+
</div>
1119
{% endblock %}

templates/auteur/index.html.twig

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@
66
{% block body %}
77
<div class="container">
88

9-
<section class="client_section ">
10-
<h1>Listes des auteurs</h1>
9+
<section class="client_section " style="margin-top: 100px;">
10+
<div class="heading_container heading_center">
11+
<h2>
12+
Auteurs
13+
</h2>
1114
{% if is_granted('ROLE_ADMIN') %}
12-
<a class="btn btn-primary" href="{{ path('auteur_new') }}">Ajouter</a>
15+
<a class="btn btn-primary" href="{{ path('auteur_new') }}"><i class="fas fa-plus"></i></a>
1316
{% endif %}
1417
<div class="row">
1518
{% for auteur in auteurs %}
@@ -19,17 +22,19 @@
1922
<div class="client_container ">
2023

2124
<div class="detail-box">
22-
<span>{{ auteur.id }} )</span>
25+
<span>{{ auteur.id }}.</span>
2326
<p>
2427
- {{ auteur.nomPrenom }} est né le {{ auteur.dateDeNaissance ? auteur.dateDeNaissance|date('Y-m-d') : '' }}
2528
<br>
26-
- Sa nationalité est {{ auteur.nationalite }}.
29+
- Sa nationalité est {{ auteur.nationalite }}.<br>
2730

28-
<a class="btn btn-primary" href="{{ path('auteur_show', {'id': auteur.id}) }}">Afficher</a>
31+
<a class="btn btn-info" style="color: white;" href="{{ path('auteur_show', {'id': auteur.id}) }}"><i class="far fa-eye"></i></a>
2932
{% if is_granted('ROLE_ADMIN') %}
30-
<a class="btn btn-primary" href="{{ path('auteur_edit', {'id': auteur.id}) }}">Modifier</a>
33+
<a class="btn btn-success" style="color: white;" href="{{ path('auteur_edit', {'id': auteur.id}) }}"><i class="far fa-edit"></i></a>
3134
{{ include('auteur/_delete_form.html.twig') }}
3235
{% endif %}
36+
37+
3338
</p>
3439
<span>
3540
<i class="fa fa-quote-left" aria-hidden="true"></i>
@@ -43,6 +48,7 @@
4348

4449
{% endfor %}
4550
</div>
51+
</div>
4652
</section>
4753

4854

templates/auteur/new.html.twig

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@
44
{% endblock %}
55

66
{% block body %}
7-
<h1>Ajouter un auteur</h1>
7+
<div class=" container contact_section" >
88

9-
{{ include('auteur/_form.html.twig') }}
109

10+
<div class="heading_container heading_center">
11+
<h2>
12+
Ajouter livre
13+
</h2>
14+
</div>
15+
16+
{{ include('auteur/_form.html.twig') }}
17+
</div>
1118
{% endblock %}

templates/auteur/show.html.twig

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,19 @@
2424
<div class="client_container ">
2525
<div class="client_id">
2626
<div class="img-box">
27+
28+
{% if auteur.sexe =="M" %}
2729
<img src="images/c1.jpg" alt="">
30+
{% else %}
31+
<img src="images/c3.jpg" alt="">
32+
{% endif %}
33+
34+
35+
2836
</div>
2937
<div class="client_name">
3038
<h5>
31-
{{ auteur.id }} )
39+
{{ auteur.id }} .
3240
</h5>
3341
<span>{{ auteur.nomPrenom }}</span>
3442

@@ -51,24 +59,31 @@
5159
<span>
5260
<i class="fa fa-quote-left" aria-hidden="true"></i>
5361
</span>
62+
63+
<br>
64+
65+
66+
{% if is_granted('ROLE_ADMIN') %}
67+
<a class="btn btn-success" href="{{ path('auteur_edit', {'id': auteur.id}) }}">Modifier</a>
68+
{{ include('auteur/_delete_form.html.twig') }}
69+
{% endif %}
70+
5471
</div>
5572

5673
</div>
5774
</div>
5875

5976

6077
</div>
78+
6179
</div>
80+
81+
6282
</section>
6383

6484

6585
<!-- <td>{{ auteur.sexe }}</td>-->
66-
67-
{% if is_granted('ROLE_ADMIN') %}
68-
<a class="btn btn-primary" href="{{ path('auteur_edit', {'id': auteur.id}) }}">Modifier</a>
6986

70-
{{ include('auteur/_delete_form.html.twig') }}
71-
{% endif %}
7287

7388
</div>
7489
{% endblock %}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<form class="d-inline-block" method="post" action="{{ path('genre_delete', {'id': genre.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
22
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ genre.id) }}">
3-
<button class="btn btn-danger"> Supprimer</button>
3+
<button class="btn btn-danger" ><i class="far fa-trash-alt"></i></button>
44
</form>

templates/genre/edit.html.twig

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,17 @@
44
{% endblock %}
55

66
{% block body %}
7-
<h1>Modifier Genre</h1>
7+
<div class=" container contact_section" >
8+
9+
10+
<div class="heading_container heading_center">
11+
<h2>
12+
Modifier genre
13+
</h2>
14+
</div>
815

916
{{ include('genre/_form.html.twig', {'button_label': 'Modifier'}) }}
1017

1118
{{ include('genre/_delete_form.html.twig') }}
19+
</div>
1220
{% endblock %}

0 commit comments

Comments
 (0)