V1 avec bugs
This commit is contained in:
18
views/ingredients/index.php
Normal file
18
views/ingredients/index.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php use App\Domain\Tags\Tag;
|
||||
use App\Infrastructure\View as V; ?>
|
||||
|
||||
<div class="content">
|
||||
<?php foreach (V::arg( 'ingredients') as $ing): ?>
|
||||
<div class="liste-ingr-elem">
|
||||
<img class="ingr-image" src="<?php echo $ing->photo_ingredient; ?>">
|
||||
<div class="liste-ingr-elem-text">
|
||||
<?php echo $ing->nom_ingredient; ?>
|
||||
</div>
|
||||
<div class="liste-ingr-elem-modif">
|
||||
<a class="recette-button ingr-modifier" data-id="<?php echo $ing->getId(); ?>">Modifier</a>
|
||||
<a class="recette-button ingr-suppr" data-id="<?php echo $ing->getId(); ?>">Supprimer</a>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<script src="<?php V::assetUrl( 'js/manage-ingredients.js' ); ?>" ></script>
|
||||
Reference in New Issue
Block a user