Recettes : on affiche toujours...
This commit is contained in:
@@ -7,5 +7,8 @@
|
||||
<route id="recipe.save" path="/admin/module/Recettes/save" methods="post">
|
||||
<default key="_controller">Recettes\Controller\MainController::saveRecipe</default>
|
||||
</route>
|
||||
<route id="recipe.addtocart" path="/admin/module/Recettes/addtocart" methods="post">
|
||||
<default key="_controller">Recettes\Controller\MainController::addToCart</default>
|
||||
</route>
|
||||
|
||||
</routes>
|
||||
|
||||
@@ -10,10 +10,12 @@ return array(
|
||||
'Quantity' => 'Quantité',
|
||||
'Summary' => 'Description de la recette',
|
||||
'Other ingredients' => 'Ingrédients supplémentaires',
|
||||
'Ingredient' => 'Ingrédient',
|
||||
'Ingredients' => 'Ingrédients',
|
||||
'Ingredient' => 'Nos produits',
|
||||
'Ingredients from us' => 'Ce que vous pouvez trouver chez nous :',
|
||||
'Additional ingredients' => 'Vous aurez également besoin de :',
|
||||
'Quantity needed' => 'Quantité nécessaire',
|
||||
'Add to cart' => 'Ajouter à mon panier',
|
||||
'Quantity proposed' => 'Quantité proposée',
|
||||
'Select' => 'Sélectionner',
|
||||
'Add to cart' => 'Ajouter ces produits au panier',
|
||||
);
|
||||
|
||||
@@ -39,7 +39,8 @@ class ProductsLoop extends BaseLoop implements PropelSearchLoopInterface
|
||||
->set("RECIPE_ID", $product->getRecipeId())
|
||||
->set("PSE_ID", $product->getPseId())
|
||||
->set("PRODUCT_LABEL", $productLabel)
|
||||
->set("QUANTITY", $product->getQuantity())
|
||||
->set("QUANTITY_NEEDED", $product->getQuantity())
|
||||
->set("QUANTITY_PROPOSED", $product->getNbOfProducts())
|
||||
;
|
||||
$loopResult->addRow($loopResultRow);
|
||||
}
|
||||
|
||||
@@ -31,9 +31,9 @@ class StepsLoop extends BaseLoop implements PropelSearchLoopInterface
|
||||
|
||||
$loopResultRow = new LoopResultRow($step);
|
||||
$loopResultRow
|
||||
->set("RECIPE_ID", $step->getId())
|
||||
->set("STEP", $step->getContentId())
|
||||
->set("DESCRIPTION", $step->getTitle())
|
||||
->set("RECIPE_ID", $step->getRecipeId())
|
||||
->set("STEP", $step->getStep())
|
||||
->set("DESCRIPTION", $step->getDescription())
|
||||
;
|
||||
$loopResult->addRow($loopResultRow);
|
||||
}
|
||||
@@ -58,8 +58,9 @@ class StepsLoop extends BaseLoop implements PropelSearchLoopInterface
|
||||
$steps = RecipeStepsQuery::create();
|
||||
|
||||
if (null != $id = $this->getRecipeId()) {
|
||||
$steps->filterById($id);
|
||||
$steps->filterByRecipeId($id);
|
||||
}
|
||||
$steps->orderByStep();
|
||||
|
||||
return $steps;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
article#recette {
|
||||
width: 90% !important;
|
||||
width: 95% !important;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -35,6 +35,7 @@ div.entete span b {
|
||||
width: 250px;
|
||||
box-shadow: 10px 10px 15px gray;
|
||||
border-radius: 5px;
|
||||
transform: rotate(-2deg);
|
||||
}
|
||||
|
||||
.recette-titre {
|
||||
@@ -54,8 +55,28 @@ div.entete span b {
|
||||
|
||||
.table-ingredients {
|
||||
width: 90%;
|
||||
margin: auto;
|
||||
}
|
||||
.table-ingredients th,
|
||||
.table-ingredients td {
|
||||
vertical-align: center !important;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.cellule-large {
|
||||
width: 40%;
|
||||
}
|
||||
.cellule-etroite {
|
||||
width: 1%;
|
||||
}
|
||||
|
||||
.table-steps {
|
||||
width: 80%;
|
||||
margin: auto;
|
||||
}
|
||||
.table-steps td.number{
|
||||
background-color: #95c11e;
|
||||
border-radius: 30px;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
Reference in New Issue
Block a user