From 99cf42847019244dc2e9262045c936c059df8688 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Wed, 10 Jun 2020 23:33:18 +0200 Subject: [PATCH] plan entry detail modal --- cookbook/templates/meal_plan.html | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/cookbook/templates/meal_plan.html b/cookbook/templates/meal_plan.html index 50c9d8412..d3dbfc2c4 100644 --- a/cookbook/templates/meal_plan.html +++ b/cookbook/templates/meal_plan.html @@ -149,18 +149,28 @@ @@ -316,6 +326,13 @@ this.new_note_title = '' this.new_note_text = '' return new_entry + }, + planDetailRecipeUrl: function () { + let url = "{% url 'view_recipe' 12345 %}".replace(/12345/, this.plan_detail.recipe); + return url + }, + formatLocalDate: function (date) { + return moment(date).format('LL') } } });