Commit 642fa536 authored by Mat's avatar Mat
Browse files

init la page LesOffres

parent 7e4c085c
<?php
namespace PotageBundle\Controller;
class OffreController extends MasterController
{
/**
* @return \Symfony\Component\HttpFoundation\Response
*/
public function ajaxDisplayAction()
{
//$form = $this->createForm(OffreAPIType::class);
return $this->render('@Potage/Offre/ajaxDisplay.html.twig', array(
//'nbRows' => $nbRows,
//'formOffre' => $form->createView()
));
}
}
......@@ -38,3 +38,10 @@ potage_legume_ajax_display:
defaults:
_controller: PotageBundle:Legume:ajaxDisplay
methods: [ GET ]
potage_offre_ajax_display:
path: /admin/lesoffres
defaults:
_controller: PotageBundle:Offre:ajaxDisplay
methods: [ GET ]
......@@ -33,11 +33,11 @@
Magasin
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="{{ path('potage_legume_read', {'page': 1}) }}">Les légumes</a>
<a class="dropdown-item" href="{{ path('potage_legume_ajax_display') }}">Légumes ajax</a>
{# <a class="dropdown-item" href="{{ path('potage_legume_read', {'page': 1}) }}">Les légumes</a> #}
<a class="dropdown-item" href="{{ path('potage_legume_ajax_display') }}">Les légumes</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item disabled" href="#">Les offres</a>
<a class="dropdown-item" href="{{ path('potage_offre_ajax_display') }}">Les offres</a>
<a class="dropdown-item disabled" href="#">Les infoslettres</a>
<div class="dropdown-divider"></div>
......
{% extends '@Potage/layout.html.twig' %}
{% block title %}
Les offres
{% endblock %}
{% block headerContent %}
<div class="row">
<div class="col left">
<h1>{{ block('title') }}</h1>
<div>
<span id="t_rows">Nombre d'</span> offres
<span id="t_pages"></span>
</div>
</div>
<div class="col right">
<div style="margin-top: 0.65em;">
<a href="javascript: void(0);" class="btn btn-outline-dark btn-sm btn-reload">
<i class="fas fa-sync-alt"></i>
Rafraîchir la liste
</a>
<a href="javascript: void(0);" class="btn btn-dark btn-sm btn-create" data-toggle="modal" data-target=".form-offre-modal">
<i class="fas fa-plus"></i>
Ajouter une nouvelle offre
</a>
</div>
</div>
</div>
{% endblock %}
{% block sidebarContent %}
<aside>
offre sidebar
</aside>
{% endblock %}
{% block sectionContent %}
<section>
offre section content
</section>
{% endblock %}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment