Crude geo data for conservatipn place
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
{% block title %}Conservation place - {{ record.place }} | ArCOA{% endblock %}
|
||||
|
||||
{% block rightpanel %}
|
||||
<div class="container" style="max-width: 60vw" data-controller="delete-record">
|
||||
<div class="container" style="max-width: 60vw" data-controller="delete-record map">
|
||||
|
||||
<p class="pb-3">
|
||||
<a class="button is-link is-outlined"
|
||||
@@ -38,7 +38,7 @@
|
||||
</article>
|
||||
|
||||
<div class="card p-5">
|
||||
{% if not is_granted('ROLE_READER') %}
|
||||
{% if app.user and not is_granted('ROLE_READER') %}
|
||||
<div class="columns">
|
||||
<div class="column is-half"></div>
|
||||
<div class="column has-text-right">
|
||||
@@ -83,10 +83,24 @@
|
||||
<tr><th>Record ID</th><td>{{ record.id }}</td></tr>
|
||||
<tr><th>Status</th><td>{{ record.getStatus() }}</td></tr>
|
||||
<tr><th>Editor(s)</th><td>{{ record.editor }}</td></tr>
|
||||
<tr><th>Conservation place</th><td data-delete-record-target="name">{{ record.place }}</td></tr>
|
||||
<tr><th>Conservation place</th>
|
||||
<td data-delete-record-target="name" data-map-target="name">
|
||||
{{ record.place }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr><th>Region</th><td>{{ record.region }}</td></tr>
|
||||
<tr><th>Province</th><td>{{ record.province }}</td></tr>
|
||||
<tr><th>Municipality</th><td>{{ record.municipality }}</td></tr>
|
||||
<tr><th>Coordinates</th>
|
||||
<td>
|
||||
<span data-map-target="coords">{{ record.lat }}, {{ record.lng }}</span>
|
||||
<button class="button is-link is-small ml-3" data-action="click->map#open">
|
||||
<span class="icon is-small p-2">
|
||||
<i class="fa fa-map"></i>
|
||||
</span>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><th>Description</th><td>{{ record.description }}</td></tr>
|
||||
<tr><th>Short description</th><td>{{ record.shortDescription }}</td></tr>
|
||||
<tr><th>External identifier(s)</th><td>{{ record.externalIdentifier }}</td></tr>
|
||||
@@ -121,5 +135,26 @@
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal" data-map-target="modal">
|
||||
<div class="modal-background" data-action="click->map#close"></div>
|
||||
<div class="modal-card" style="min-width: 900px;">
|
||||
<header class="modal-card-head">
|
||||
<span class="icon is-large has-text-link">
|
||||
<i class="fa fa-map fa-2x"></i>
|
||||
</span>
|
||||
<p class="modal-card-title pl-2 pt-1 pb-1"><strong>Interactive map</strong></p>
|
||||
<button class="delete" aria-label="close" data-action="click->map#close"></button>
|
||||
</header>
|
||||
<section class="modal-card-body p-0">
|
||||
<div data-map-target="map" id="map" style="min-height: 400px; max-width: 900px"></div>
|
||||
</section>
|
||||
<footer class="modal-card-foot">
|
||||
<div class="buttons is-right">
|
||||
<button class="button is-light" data-action="click->map#close">Close</button>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
@@ -61,15 +61,7 @@
|
||||
<div class="column is-one-fifth arcoa-menu mb-0">
|
||||
<aside class="menu" data-controller="menu"
|
||||
data-menu-state-value="0">
|
||||
{% if app.request.attributes.get('_route') != 'app_home' %}
|
||||
<p class="menu-label has-text-white mt-3 pt-5 pl-5 is-size-6">
|
||||
<span class="icon is-clickable">
|
||||
<i class="fa fa-home"></i>
|
||||
</span>
|
||||
<a href="{{ path('app_home') }}" class="has-text-white">ArCOA Home</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if 'ROLE_READER' not in app.user.roles %}
|
||||
{% if app.user and 'ROLE_READER' not in app.user.roles %}
|
||||
<p class="menu-label has-text-white mt-3 pt-5 pl-5 is-size-6">
|
||||
Vocabularies
|
||||
<span class="icon is-clickable pl-4" id="for-vocabs" data-action="click->menu#toggle">
|
||||
|
||||
Reference in New Issue
Block a user