{% 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') }} {% if objective.hash %}

{{ objective.hash }}

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

latitude: {{ objective.latitude }}

longitude: {{ objective.longitude }}

{% endif %}

{% if owner and objective.objective_found_by %}

Found by:

{% for ofbp in objective.objective_found_by %} {% endfor %}
Player name Time
{{ ofbp.game_player.user.name }} {{ moment(ofbp.timestamp).fromNow() }}
{% endif %} {% endblock %} {% block scripts %} {{ super() }} {% endblock %}