Autocomplete from GIS list of CRSs..

..using django-autocomplete-light, in both the admin area and the
end-user form

Closes #32
This commit is contained in:
Carl van Tonder
2018-04-04 15:26:24 -04:00
parent a50c40e739
commit dce53630f7
9 changed files with 101 additions and 17 deletions

View File

@ -1,8 +1,5 @@
{% extends "base_page.html" %}
{% load compress %}
{% load crispy_forms_tags %}
{% load i18n %}
{% load leaflet_tags %}
{% load compress crispy_forms_tags i18n leaflet_tags static %}
{% block stylesheets %}
@ -20,6 +17,8 @@
{% endblock %}
{% block scripts %}
<script type="text/javascript" src="{% static 'admin/js/vendor/jquery/jquery.js' %}"></script>
{{ form.media }}
{% leaflet_js %}
<script type="text/javascript">
YourGeometryField = L.GeometryField.extend({