{% extends "base.html" %} {% import 'bootstrap/wtf.html' as wtf %} {% block head %} {{ super() }} {% endblock %} {% block app_content %} {% if not objective.hash %}

Add Objective

{% elif objective.name == '' %}

Objective

{% else %}

Objective: {{ objective.name }}

{% endif %}
{% if owner %}
{{ form.hidden_tag() }} {{ 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') }}

{{ objective.hash }}

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

latitude: {{ objective.latitude }}

longitude: {{ objective.longitude }}

{% endif %}

{% endblock %} {% block scripts %} {{ super() }} {% endblock %}