You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.2 KiB
28 lines
1.2 KiB
{% load i18n bootstrap3 globaltags %}
|
|
<form action="{% url 'mapapp:modal_add_dot' %}" class="form-ajax" method="post" enctype="multipart/form-data">{% csrf_token %}
|
|
<input type="hidden" name="MAX_FILE_SIZE" value="{% global_var 'FILE_UPLOAD_MAX_MEMORY_SIZE' %}"/>
|
|
<div class="modal-header primary">
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
<h4 class="modal-title"><span class="glyphicon glyphicon-warning-sign"></span>{% trans 'Add point' %}</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<h4>{% blocktrans %}Coords: {{ coords }}{% endblocktrans %}</h4>
|
|
|
|
{% bootstrap_icon 'edit' as ic %}
|
|
{% bootstrap_field form.title addon_before=ic %}
|
|
|
|
{% bootstrap_icon 'globe' as ic %}
|
|
{% bootstrap_field form.longitude addon_before=ic %}
|
|
|
|
{% bootstrap_icon 'globe' as ic %}
|
|
{% bootstrap_field form.latitude addon_before=ic %}
|
|
|
|
{% bootstrap_field form.attachment %}
|
|
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="submit" class="btn btn-sm btn-primary">
|
|
<span class="glyphicon glyphicon-save"></span> {% trans 'Save' %}
|
|
</button>
|
|
</div>
|
|
</form>
|