The addarena.html form

The form data will be submitted with the POST method. Once the Add Arena button is pushed, the data inside the entry forms are submitted:

  <form method="post" class="form">    Name: {{form.name}}<br>    Longitude: {{ form.longitude(class_ = 'form-control first-input last-input', placeholder = form.longitude.data, ) }} <br>    Latitude: {{ form.latitude(class_ = 'form-control first-input last-input', placeholder = form.latitude.data, ) }} <br>    <input type="submit" value="Add Arena">  </form></body></html>

Clicking on the button will submit the data to the view function. The data will be processed, and a success JSON message returned:

Get Mastering Geospatial Analysis with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.