Commit 076c662f by Damien Moulard

rubriques: new prestataires rubrique title style and add logo

parent b0b9b2b1
......@@ -442,3 +442,7 @@ form[name="formEncaissement"] label {
.new-presta-icon {
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 @@
"/build/app.3644f7b2.js"
],
"css": [
"/build/app.3120e5f3.css"
"/build/app.5962097e.css"
]
},
"admin": {
......
{
"build/app.css": "/build/app.3120e5f3.css",
"build/app.css": "/build/app.5962097e.css",
"build/app.js": "/build/app.3644f7b2.js",
"build/admin.css": "/build/admin.4de55830.css",
"build/admin.js": "/build/admin.63735322.js",
......
......@@ -11,6 +11,7 @@ use App\Entity\SelfEvalPrestaQuiz;
use App\Form\Type\DistributorSelfEvalPrestaQuizType;
use App\Form\Type\ProducerSelfEvalPrestaQuizType;
use App\Form\Type\SelfEvalPrestaQuizType;
use App\Application\Sonata\MediaBundle\Entity\Media;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\Routing\Annotation\Route;
......@@ -154,7 +155,7 @@ class PrestatairesController extends FrontController
'id' => 'new_prestataires',
'slug' => 'new_prestataires',
'name' => 'Nouveaux points de vente',
'media' => null,
'media' => $this->em->getRepository(Media::class)->findOneBy(['name' => 'wosmpl-marker-icon21-divers.png']),
'content' => '',
'prestataires' => $newPresta
]
......
......@@ -359,4 +359,26 @@ class PrestataireRepository extends ServiceEntityRepository
->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 @@
{% endif %}
{% if rubrique.id == 'new_prestataires' %}
{# 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 %}
<a class='rubrique' href='{{ path('show_rubrique', {'slug': rubrique.slug}) }}'>{{rubrique.name}}</a>
{% 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