{% extends '@OxHoardBundle/home.html.twig' %}
{% block title %}Coin Hoards of the Roman Empire{% endblock %}
{% block stylesheets %}
{{ parent() }}
<script src="//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.js"></script>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/1.4.1/leaflet.markercluster.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/1.4.1/MarkerCluster.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/1.4.1/MarkerCluster.Default.css" />
<script src='https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/Leaflet.fullscreen.min.js'></script>
<link href='https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/leaflet.fullscreen.css' rel='stylesheet' />
<script src="https://cdn.jsdelivr.net/npm/leaflet-easyprint@2.1.9/dist/bundle.min.js"></script>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script type="text/javascript" src="/bundles/oxhoard/js/utils.js"></script>
{% embed 'import-libs/underscore.js.html.twig' %}{% endembed %}
<script> var hoardPath = "/hoard/"; var isAuthenticated = {% if is_authenticated %}true{% else %}false{% endif %};var addMapExport = true;</script>
{% endblock %}
{% block body %}
<!-- content -->
<div class="marginTop clearfix"></div>
{% embed '@OxHoardBundle/flash.html.twig' %}{% endembed %}
<div id="content" class="container"> <!-- page content -->
<div class="row">
<div class="col-md-8">
<div class="row">
<div id="homepage_about" class="col-xs-4 col-sm-4 col-md-4 dashboard-img">
<img src="/bundles/oxhoard/img/about.jpg" alt=""/>
<div class="headingBg"><a href="/content/about"><h2>About</h2><span class="fa fa-chevron-right"></span></a></div>
</div>
<div id="homepage_team" class="col-xs-4 col-sm-4 col-md-4 dashboard-img">
<img src="/bundles/oxhoard/img/team.jpg" alt=""/>
<div class="headingBg"><a href="/content/team"><h2>Team</h2><span class="fa fa-chevron-right"></span></a></div>
</div>
<div id="homepage_contribute" class="col-xs-4 col-sm-4 col-md-4 dashboard-img">
<img src="/bundles/oxhoard/img/collaborations.jpg" alt=""/>
<div class="headingBg"><a href="/content/collaborations"><h2>Collaborations</h2><span class="fa fa-chevron-right"></span></a></div>
</div>
</div>
</div>
<div class="col-md-4">
<div class="row">
<div id="homepage_news" class="col-xs-12 col-sm-12 col-md-12">
<div class="headingBg"><a href="/content/news"><h2>News</h2><span class="fa fa-chevron-right"></span></a></div>
{% for news in news_items %}
<div class="news-teaser">
<h3><a href="{{ path('content_show_path', { 'path': news.path }) }}">{{ news.title }}</a></h3>
<div class="teasertext">{{ news.teaser }}<a href=""><span> <a href="{{ path('content_show_path', { 'path': news.path }) }}">more…</a></span></a></div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
<div class="row"><h3 id="validated-entries-counter" class="col-lg-12 hidden">Currently in the database: {{validated_coins | number_format(0, '.', ',')}} coins in {{validated_hoards | number_format(0, '.', ',')}} validated hoards</h3></div>
<div class="row"><h3 id="all-entries-counter" class="col-lg-12">Currently in the database: {{all_coins | number_format(0, '.', ',')}} coins in all {{all_hoards | number_format(0, '.', ',')}} hoards</h3></div>
<div class="row">
<div class="col-lg-12">
<div id="map" class="map-view large"></div>
<input id="toggle-cluster-results" type="checkbox" checked="checked"> Cluster results</input>
<div class="marginTop">
<input type="radio" id="map-show-all-hoards" name="map-show-validated-hoards" value="all" {% if is_authenticated %}checked{% endif%}>
<label for="map-show-all-hoards">Show all hoards</label>
<input type="radio" id="map-show-validated-hoards" name="map-show-validated-hoards" value="validated" {% if not is_authenticated%}checked{% endif%}
style="margin-left: 20px">
<label for="map-show-validated-hoards">Show only validated hoards</label><br>
</div>
<div id="slider-range"></div>
<p class="" style="margin-top: 5px">
<label for="year">Closing dates of Hoards:</label>
<input type="text" id="range" readonly style="border:0; color:#D69E40; font-weight:bold;">
</p>
</div>
</div>
</div><!-- end page container -->
<!-- footer -->
<div class="marginTop clearfix"></div>
{% endblock %}