darryljf

recipe.tpl

Apr 10th, 2020
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.63 KB | None | 0 0
  1. {extends file="layouts/main.tpl"}
  2. {block name="body"}
  3. <div class="hero" style="background-image: url('./images/banner_4.jpg');">
  4.     <div class="container">
  5.         <h1>{$recipe_data.recipe_name}</h1>
  6.     </div>
  7. </div>
  8.  
  9. <div class="container mt-5">
  10.     <div class="row">
  11.         <div class="col-md-4">
  12.             <img src="./user/images/{$recipe_data.recipe_image}" alt="{$recipe_data.recipe_name}"/>
  13.         </div>
  14.         <div class="col-md-8">
  15.             <div class="row">
  16.                 <div class="col-md-3">
  17.                     <p class="prep-time"><i class="far fa-clock"></i>Prep Time: {$recipe_data.prep_time}</p>
  18.                 </div>
  19.                 <div class="col-md-3">
  20.                     <p class="cook-time"><i class="fas fa-fire"></i>Cook Time: {$recipe_data.cook_time}</p>
  21.                 </div>
  22.                 <div class="col-md-3">
  23.                     <p class="difficulty"><i class="fas fa-utensils"></i>Difficulty: {$recipe_data.difficulty}</p>
  24.                 </div>
  25.             </div>
  26.             <p>{$recipe_data.recipe_instructions}</p>
  27.  
  28.             {if $is_fav}
  29.                 <button id="removeFav" type="button" class="btn btn-primary mb-3" data-recipeid="{$recipe_data.recipe_id}">
  30.                     Remove From Favourites
  31.                 </button>
  32.             {else}
  33.                 <button id="addFav" type="button" class="btn btn-primary mb-3" data-recipeid="{$recipe_data.recipe_id}">
  34.                     Add To Favourites
  35.                 </button>
  36.             {/if}
  37.         </div>
  38.     </div>
  39. </div>
  40. {/block}
  41. {block name=js}
  42.     <script>
  43.         recipe.init();
  44.     </script>
  45. {/block}
Add Comment
Please, Sign In to add comment