Skip to content

Commit 3957e9f

Browse files
Merge pull request #114 from fac-17/Fix/health-score-on-choices
Remove health score and cooking time from additional choices page
2 parents ed628ca + 1c57a37 commit 3957e9f

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

src/model/queries/apiCall.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ const getSimilarsApi = arr => {
6868
fiveMore[i] = {};
6969
fiveMore[i].id = data[i].id;
7070
fiveMore[i].recipeName = data[i].title;
71-
// fiveMore[i].cookingTime = data[i].cookingMinutes;
72-
// fiveMore[i].healthScore = data[i].healthScore;
71+
//fiveMore[i].cookingTime = data[i].cookingMinutes;
72+
//fiveMore[i].healthScore = data[i].healthScore;
7373
fiveMore[i].imageUrl = data[i].image;
7474
}
7575
//console.log({ fiveMore });
+15-16
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
11
<section class="background background__img"></section>
22
<section class="container__newplan-additional-main">
33

4-
<h1 class="header header__second-choices"> Select up to five more recipes </h1>
5-
{{!-- {{>recipeList}}
4+
<h1 class="header header__second-choices"> Select up to five more recipes </h1>
5+
{{!-- {{>recipeList}}
66
{{!-- {{>loadMores}} --}}
77

8-
{{#each recipes}}
8+
{{#each recipes}}
99
<div class="container__pick-more-recipes">
1010
<h2 class="recipe__header">{{this.recipeName}}</h2>
11-
<p class="recipe__cooking">T {{this.cookingTime}}</p>
12-
<p class="recipe__health">H {{this.healthScore}}</p>
11+
{{!-- <p class="recipe__cooking">Cooking time: {{this.cookingTime}}</p>
12+
<p class="recipe__health">Health score: {{this.healthScore}}</p> --}}
1313
<img src="{{this.imageUrl}}" class="recipe-image__additional-plan">
1414
<input type="submit" value="Select" class="btn recipe__select" id="{{this.id}}">
1515
</div>
1616

17-
{{/each}}
17+
{{/each}}
1818

19-
<form class="second-choices__form" action="/submitmealplan" method="POST">
20-
<input aria-label="Name meal plan" value="Name plan" name="name plan" placeholder="Name your plan"
21-
class="second-choices__name-plan" type="text">
22-
<input aria-label="Go back" value="Back" name="back" class="btn second-choices__back-button" type="submit"
23-
formaction="/newplan">
24-
25-
<input aria-label="Save meal plan" name="save" value="Save" class="btn second-choices__save-button" type="submit">
26-
</form>
27-
{{!-- {{>counter}} --}}
19+
<form class="second-choices__form" action="/submitmealplan" method="POST">
20+
<input aria-label="Go back" value="Back" name="back" class="btn second-choices__back-button" type="submit"
21+
formaction="/newplan">
22+
<input aria-label="Name meal plan" value="Name plan" name="name plan" placeholder="Name your plan"
23+
class="second-choices__name-plan" type="text">
24+
<input aria-label="Save meal plan" name="save" value="Save" class="btn second-choices__save-button" type="submit">
25+
</form>
26+
{{!-- {{>counter}} --}}
2827
</section>
2928

30-
<script src="js/additionalChoices.js"></script>
29+
<script src="js/additionalChoices.js"></script>

0 commit comments

Comments
 (0)