71 lines
2.6 KiB
Twig
71 lines
2.6 KiB
Twig
{% extends 'base_backend_admin.html.twig' %}
|
|
|
|
{% block title %} Position et Affichage {% endblock %}
|
|
|
|
{% block content %}
|
|
<!-- Page Heading -->
|
|
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
|
<h1 class="h3 mb-0 text-gray-800">Position et Affichage</h1>
|
|
<ol class="breadcrumb float-sm-right">
|
|
<li class="breadcrumb-item">Position et Affichage</li>
|
|
</ol>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Begin Page Content -->
|
|
<div class="container-fluid">
|
|
|
|
{% include 'backend_admin/basic/notice.html.twig' %}
|
|
|
|
<a href="{{ path('backend_admin_position_creer') }}" class="btn btn-info btn-icon-split mb-4">
|
|
<span class="icon text-white"><i class="fa-regular fa-square-plus"></i></span>
|
|
<span class="text text-white">Ajouter une nouvelle Position et Affichage</span>
|
|
</a>
|
|
|
|
|
|
<!-- DataTales Example -->
|
|
<div class="card shadow mb-4">
|
|
|
|
<div class="card-header py-3">
|
|
<h6 class="m-0 font-weight-bold text-info">Liste Positions et Affichages des annonces sur la page d'acceuil</h6>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="table-responsive">
|
|
<table class="table table-bordered" width="100%" cellspacing="0">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>Titre</th>
|
|
<th>Ligne</th>
|
|
<th>Date début</th>
|
|
<th>Date fin</th>
|
|
<th>Détail</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for position in positions %}
|
|
<tr>
|
|
<td>{{ position.getId() }}</td>
|
|
<td>{{ position.getAnnonce().getTitre() }}</td>
|
|
<td>{{ position.getLigneRange() }}</td>
|
|
<td>{{ position.getDateAdd()|date("d/m/Y")}}</td>
|
|
<td>{{ position.getDateFin()|date("d/m/Y") }}</td>
|
|
<td>
|
|
<a href="{{ path('backend_admin_position_detail', {'idPosition': position.getId() }) }}" title="Détail" class="btn btn-info btn-action">
|
|
<i class="fa-solid fa-magnifying-glass"></i>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{% endblock %}
|