Recettes : on finalise la fonction d'impression de la recette
This commit is contained in:
@@ -57,28 +57,28 @@
|
||||
<p class="recette-titre">{intl l='Ingredients' d='recettes'}</p>
|
||||
<table class="table table-striped table-condensed table-ingredients">
|
||||
<thead>
|
||||
<th>{intl l="Ingredient" d="recettes"}</th>
|
||||
<th>{intl l="Quantity needed" d="recettes"}</th>
|
||||
<th>{intl l="Quantity proposed" d="recettes"}</th>
|
||||
<th>{intl l="Select" d="recettes"}</th>
|
||||
<th class="cellule-large">{intl l="Ingredient" d="recettes"}</th>
|
||||
<th class="cellule-etroite">{intl l="Quantity needed" d="recettes"}</th>
|
||||
<th class="cellule-etroite">{intl l="Quantity proposed" d="recettes"}</th>
|
||||
<th class="cellule-etroite">{intl l="Select" d="recettes"}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{loop type="recipe_products" name="products-loop" recipe_id=$ID}
|
||||
<tr>
|
||||
<td class="cellule-large">{$PRODUCT_LABEL}</td>
|
||||
<td class="cellule-etroite">{$QUANTITY_NEEDED}</td>
|
||||
<td class="cellule-etroite">{$QUANTITY_PROPOSED} ({$UNITY})</td>
|
||||
<td class="cellule-etroite"><input type="checkbox" name="pseid-{$PSE_ID}-qty-{$QUANTITY_PROPOSED}" class="cellule-checkbox"></td>
|
||||
<td>{$PRODUCT_LABEL}</td>
|
||||
<td>{$QUANTITY_NEEDED}</td>
|
||||
<td>{$QUANTITY_PROPOSED} ({$UNITY})</td>
|
||||
<td><input type="checkbox" name="pseid-{$PSE_ID}-qty-{$QUANTITY_PROPOSED}" class="cellule-checkbox" {if not $IN_STOCK}disabled{/if}></td>
|
||||
</tr>
|
||||
{/loop}
|
||||
<tr>
|
||||
<td colspan="3"></td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-primary">{intl l='Add to cart' d='recettes'}</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"><i>{intl l="Some products may not be in stock" d="recettes"}</i></td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-primary">{intl l='Add to cart' d='recettes'}</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
@@ -89,21 +89,19 @@
|
||||
</form>
|
||||
<br>
|
||||
<br>
|
||||
<table class="table table-striped table-steps">
|
||||
{loop type="recipe_steps" name="steps-loop" recipe_id=$ID}
|
||||
<tr>
|
||||
<td class="number">{$STEP}</td>
|
||||
<td class="description">{$DESCRIPTION}</td>
|
||||
</tr>
|
||||
{/loop}
|
||||
</table>
|
||||
</div>
|
||||
<table class="table table-striped table-steps">
|
||||
{loop type="recipe_steps" name="steps-loop" recipe_id=$ID}
|
||||
<tr>
|
||||
<td class="number">{$STEP}</td>
|
||||
<td class="description">{$DESCRIPTION}</td>
|
||||
</tr>
|
||||
{/loop}
|
||||
</table>
|
||||
{/loop}
|
||||
</article>
|
||||
<br>
|
||||
<button type="button" class="btn btn-primary bouton-imprimer">{intl l="Print recipe" d="recettes"}</button>
|
||||
<br>
|
||||
<br>
|
||||
<div class="bouton-imprimer">
|
||||
<button type="button" class="btn btn-primary">{intl l="Print recipe" d="recettes"}</button>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
@@ -123,5 +121,9 @@
|
||||
}
|
||||
});
|
||||
|
||||
$(".bouton-imprimer button").click(function () {
|
||||
window.print();
|
||||
});
|
||||
|
||||
</script>
|
||||
{/block}
|
||||
{/block}
|
||||
|
||||
Reference in New Issue
Block a user