Recettes : fin de la partie frontOffice

This commit is contained in:
2021-05-06 11:40:48 +02:00
parent 940e71289c
commit 9dcc1c1762
7 changed files with 149 additions and 160 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

View File

@@ -8,7 +8,7 @@ return array(
'Number of people' => 'Nombre de couverts',
'Product' => 'Produit',
'Quantity' => 'Quantité',
'Summary' => 'Description de la recette',
'Summary' => 'Détail',
'Other ingredients' => 'Ingrédients supplémentaires',
'Ingredients' => 'Ingrédients',
'Ingredient' => 'Nos produits',
@@ -19,5 +19,7 @@ return array(
'Select' => 'Sélectionner',
'Add to cart' => 'Ajouter au panier',
'Print recipe' => 'Imprimer la recette',
'Some products may not be in stock' => '* les produits que vous ne pouvez pas cocher ne sont plus en stock',
'Some products may not be in stock' => '* ce produit n\'est plus en stock, désolé',
'Name' => 'Notre recette',
'Created on' => 'Rédigée le',
);

View File

@@ -31,6 +31,8 @@ class ProductsLoop extends BaseLoop implements PropelSearchLoopInterface
*/
public function parseResults(LoopResult $loopResult)
{
$someProductsNotInStock = false;
foreach ($loopResult->getResultDataCollection() as $product) {
$pse = ProductSaleElementsQuery::create()->findOneById($product->getPseId());

View File

@@ -31,6 +31,9 @@ div.entete span {
div.entete span b {
color: #0e0e0e;
}
.photo-principale {
padding-right: 0px;
}
.photo-principale img {
width: 250px;
box-shadow: 10px 10px 15px gray;
@@ -79,17 +82,69 @@ div.entete span b {
padding-left: 30px;
font-weight: bold;
}
/* Pour impression de la fiche recette */
.bouton-imprimer {
margin: 20px 0;
text-align: center;
}
@media print {
.footer-block,
header,
.nav-breadcrumb,
.table-ingredients tr:last-of-type,
#tarteaucitronAlertBig {
#tarteaucitronAlertBig,
.tarteaucitronAlertSmallBottom {
display: none !important;
}
label.autres-ingredients {
page-break-after: always;
}
}
/* Pour page d'affichage de la liste des recettes */
.table-liste-recettes {
border: 1px solid #95c11e;
}
.table-liste-recettes th {
text-align: center !important;
}
.table-liste-recettes > tbody > tr > td:nth-child(1),
.table-liste-recettes > tbody > tr > td:nth-child(2),
.table-liste-recettes > tbody > tr > td:nth-child(4),
.table-liste-recettes th:nth-child(1),
.table-liste-recettes th:nth-child(3) {
background-color: rgba(128,189,138,0.12);
}
.table-liste-recettes > tbody > tr > td,
.table-liste-recettes > thead > th
{
line-height: 3rem;
vertical-align: baseline;
}
td.table-liste-recettes-autre-texte {
text-align: center;
}
.table-liste-recettes span {
font-size: 1.5rem;
}
td.table-liste-recettes-image {
padding-right: 20px !important;
text-align: right;
width: auto;
vertical-align: middle !important;
}
.table-liste-recettes-image img {
width: 65px;
height: auto;
border-radius: 5px;
}
.table-liste-recettes-titre {
margin: auto;
text-wrap: normal;
}
.table-liste-recettes-titre span {
font-weight: bold;
}