Browse Source

don't get qrcode when creating a new objective

feature_tests
Burathar 4 years ago
parent
commit
4324650709
  1. 4
      app/templates/objective.html

4
app/templates/objective.html

@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
{% block app_content %}
{% if objective.hash is none %}
{% if not objective.hash %}
<h1>Add Objective</h1>
{% elif objective.name == '' %}
<h1>Objective</h1>
@ -34,9 +34,11 @@ @@ -34,9 +34,11 @@
<button class="btn btn-danger">Delete</button></a>
{% endif %}
</div>
{% if objective.hash %}
<div class="row">
<img src="{{ url_for('objective_qrcode', objective_hash=objective.hash) }}" alt="qr_code_failed", width="100%">
</div>
{% endif %}
{% else %}
<h2>latitude: {{ objective.latitude }}</h2>
<h2>longitude: {{ objective.longitude }}</h2>

Loading…
Cancel
Save