From cecb66414903b5fe97570380fe4274b9957e59f7 Mon Sep 17 00:00:00 2001 From: Burathar Date: Sun, 19 Jul 2020 00:11:40 +0200 Subject: [PATCH] hide hash field if empty on objective.html --- app/templates/objective.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/templates/objective.html b/app/templates/objective.html index a8e86a1..47ac616 100644 --- a/app/templates/objective.html +++ b/app/templates/objective.html @@ -27,10 +27,12 @@ {{ wtf.form_field(form.objective_name, value=objective.name, class='form-control') }} {{ wtf.form_field(form.latitude, class='form-control', type='number', value=objective.latitude, min='-90', max='90', step='0.00001') }} {{ wtf.form_field(form.longitude, class='form-control', type='number', value=objective.longitude, min='-180', max='181', step='0.00001') }} + {% if objective.hash %}

{{ objective.hash }}

+ {% endif %} {{ wtf.form_field(form.submit, class='btn btn-primary') }} {% if objective.hash %}