{% extends 'base.html' %} {% block main %} {% from "_formhelpers.html" import render_field %} <div class="content_container"> <h1 class="page-header">Add Mosquito</h1> {% with messages = get_flashed_messages() %} {% if messages %} <div class="alert alert-danger"> <ul> {% for message in messages %} <li>{{ message }}</li> {% endfor %} </ul> </div> {% endif %} {% endwith %} {% block privacy_note_submit %} {% include "privacy_note_submit.html" %} {% endblock %} <form method="POST" action="{{ url_for('add_mosquito', lng=longitude, lat=latitude) }}" enctype=multipart/form-data> {{ form.csrf_token }} <input type="hidden" name="longitude" value="{{ longitude }}" /> <input type="hidden" name="latitude" value="{{ latitude }}" /> <button type="submit">Submit</button> </form> </div> <clear> {% endblock main %}