{% extends '@OxHoardBundle/layout.html.twig' %}
{% block title %}Ancient Place {{ entity.ancientPlace }}{% endblock %}
{% block body %}
<div class="marginTop clearfix"></div>
<div id="content" class="container">
<div class="row">
<h1>Ancient Place {{ entity.id }}</h1>
{% embed '@OxHoardBundle/flash.html.twig' %}{% endembed %}
<div class="hoardlistview-6col marginTop">
<div class="datalabel">Ancient place: </div><div class="data">{{ entity.ancientPlace }}</div>
<div class="datalabel">Latitude: </div><div class="data">{{ entity.latitude }}</div>
<div class="datalabel">Longitude: </div><div class="data">{{ entity.longitude }}</div>
<div class="datalabel">Pleiades link: </div><div class="data"><a href="{{ entity.uri1 }}">{{ entity.uri1 }}</a></div>
<div class="datalabel">Wikipedia link: </div><div class="data"><a href="{{ entity.uri2 }}">{{ entity.uri2 }}</a></div>
<div class="datalabel">Link 3: </div><div class="data"><a href="{{ entity.uri3 }}">{{ entity.uri3 }}</a></div>
<div class="datalabel">Comment: </div><div class="data">{{ entity.placeComment }}</div>
{% if hoards %}
<div class="datalabel">Hoards linked to this ancient place:</div>
<div class="data">
{% for hoard in hoards %}
<a href="{{ path('hoard_show', { 'id':hoard.id }) }}">
{{ hoard }}{% if not loop.last %}, {% endif %}
</a>
<br>
{% endfor %}
</div>
<br>
{% endif %}
{% if entity.deleted %}
This entry has been deleted
{% endif %}
</div>
</div>
{% if isAuthenticated %}
<ul class="record_actions">
<li>
<a href="{{ path('admin_ancientplace') }}">
Back to the list
</a>
</li>
{% if can_edit %}
<li>
<a href="{{ path('admin_ancientplace_edit', { 'id': entity.id }) }}">
Edit
</a>
</li>
{% endif %}
</ul>
{% endif %}
</div>
{% endblock %}