Commit 076c662f by Damien Moulard

rubriques: new prestataires rubrique title style and add logo

parent b0b9b2b1
...@@ -441,4 +441,8 @@ form[name="formEncaissement"] label { ...@@ -441,4 +441,8 @@ form[name="formEncaissement"] label {
.new-presta-icon { .new-presta-icon {
filter: hue-rotate(200deg) brightness(110%) contrast(120%); filter: hue-rotate(200deg) brightness(110%) contrast(120%);
}
#new-prestataires-rubrique-title {
color: #222;
} }
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"/build/app.3644f7b2.js" "/build/app.3644f7b2.js"
], ],
"css": [ "css": [
"/build/app.3120e5f3.css" "/build/app.5962097e.css"
] ]
}, },
"admin": { "admin": {
......
{ {
"build/app.css": "/build/app.3120e5f3.css", "build/app.css": "/build/app.5962097e.css",
"build/app.js": "/build/app.3644f7b2.js", "build/app.js": "/build/app.3644f7b2.js",
"build/admin.css": "/build/admin.4de55830.css", "build/admin.css": "/build/admin.4de55830.css",
"build/admin.js": "/build/admin.63735322.js", "build/admin.js": "/build/admin.63735322.js",
......
...@@ -11,6 +11,7 @@ use App\Entity\SelfEvalPrestaQuiz; ...@@ -11,6 +11,7 @@ use App\Entity\SelfEvalPrestaQuiz;
use App\Form\Type\DistributorSelfEvalPrestaQuizType; use App\Form\Type\DistributorSelfEvalPrestaQuizType;
use App\Form\Type\ProducerSelfEvalPrestaQuizType; use App\Form\Type\ProducerSelfEvalPrestaQuizType;
use App\Form\Type\SelfEvalPrestaQuizType; use App\Form\Type\SelfEvalPrestaQuizType;
use App\Application\Sonata\MediaBundle\Entity\Media;
use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\Routing\Annotation\Route;
...@@ -154,7 +155,7 @@ class PrestatairesController extends FrontController ...@@ -154,7 +155,7 @@ class PrestatairesController extends FrontController
'id' => 'new_prestataires', 'id' => 'new_prestataires',
'slug' => 'new_prestataires', 'slug' => 'new_prestataires',
'name' => 'Nouveaux points de vente', 'name' => 'Nouveaux points de vente',
'media' => null, 'media' => $this->em->getRepository(Media::class)->findOneBy(['name' => 'wosmpl-marker-icon21-divers.png']),
'content' => '', 'content' => '',
'prestataires' => $newPresta 'prestataires' => $newPresta
] ]
......
...@@ -359,4 +359,26 @@ class PrestataireRepository extends ServiceEntityRepository ...@@ -359,4 +359,26 @@ class PrestataireRepository extends ServiceEntityRepository
->getResult() ->getResult()
; ;
} }
// /**
// * For Prestataire front Rubriques page.
// *
// * @return Prestataire[] Returns an array of Prestataire objects
// */
// public function f indNewPrestataires()
// {
// $qb = $this->createQueryBuilder('p');
// $qb = $this->addDefaultFilter($qb);
// $from = date('Y-m-d H:i:s',strtotime("-2 months"));
// return $qb
// ->andWhere('p.enabled = true')
// ->andWhere('p.createdAt > :from')
// ->setParameter('from', $from)
// ->orderBy('p.raison', 'ASC')
// ->getQuery()
// ->getResult()
// ;
// }
} }
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
{% endif %} {% endif %}
{% if rubrique.id == 'new_prestataires' %} {% if rubrique.id == 'new_prestataires' %}
{# TODO: change color to black OR create details page for new pdv #} {# TODO: change color to black OR create details page for new pdv #}
<span class='rubrique'>{{rubrique.name}}</span> <span class='rubrique' id="new-prestataires-rubrique-title">{{rubrique.name}}</span>
{% else %} {% else %}
<a class='rubrique' href='{{ path('show_rubrique', {'slug': rubrique.slug}) }}'>{{rubrique.name}}</a> <a class='rubrique' href='{{ path('show_rubrique', {'slug': rubrique.slug}) }}'>{{rubrique.name}}</a>
{% endif %} {% endif %}
......
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