mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 11:27:09 +00:00
Upgrade versions of most packages and make other required changes to ensure compatibility. Update database models and migrations to match new requirements set by Django
58 lines
1.7 KiB
HTML
Executable File
58 lines
1.7 KiB
HTML
Executable File
{% extends 'base.html' %}
|
|
|
|
{% block extra_head %}
|
|
{% load static %}
|
|
{{ map_markers|json_script:'map-markers' }}
|
|
|
|
<script src="{% static 'js/map.js' %}"></script>
|
|
<script src="{% static 'js/location_picker.js' %}"></script>
|
|
|
|
<script async defer src="https://maps.googleapis.com/maps/api/js?key={{ settings.GOOGLE_MAPS_API_KEY }}&callback=initPicker&libraries=places"
|
|
type="text/javascript"></script>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<nav aria-label="breadcrumb">
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item">
|
|
<a href="{% url 'people:organisation.list' %}">Organisations</a>
|
|
</li>
|
|
<li class="breadcrumb-item">
|
|
<a href="{% url 'people:organisation.detail' pk=organisation.pk %}">{{ organisation }}</a>
|
|
</li>
|
|
<li class="breadcrumb-item active" aria-current="page">Update</li>
|
|
</ol>
|
|
</nav>
|
|
|
|
<h1>{{ organisation }}</h1>
|
|
|
|
<hr>
|
|
|
|
<form class="form"
|
|
method="POST">
|
|
{% csrf_token %}
|
|
|
|
{% load bootstrap4 %}
|
|
{% bootstrap_form form exclude='latitude,longitude' %}
|
|
|
|
{% bootstrap_field form.latitude %}
|
|
{% bootstrap_field form.longitude %}
|
|
|
|
{% buttons %}
|
|
<button class="btn btn-success" type="submit">Submit</button>
|
|
{% endbuttons %}
|
|
</form>
|
|
|
|
<hr>
|
|
|
|
<input id="location-search" class="controls" type="text" placeholder="Location Search"/>
|
|
<div id="map" style="height: 800px; width: 100%"></div>
|
|
|
|
<hr>
|
|
|
|
{% endblock %}
|
|
|
|
{% block extra_script %}
|
|
<script async defer src="{% static 'js/hide_free_text.js' %}"></script>
|
|
{% endblock %}
|