{% extends "base.html.twig" %}
{% block title %}{{ 'Fossielendatabase'|trans }} - {{item.genus}} {{item.species}}{% endblock %}
{% block css %}
<link id="bsdp-css" href="https://unpkg.com/bootstrap-datepicker@1.9.0/dist/css/bootstrap-datepicker3.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/@yaireo/tagify@3.7.3/dist/tagify.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/5.3.0/ekko-lightbox.css" />
{% endblock %}
{% block body %}
<p> </p>
<div class="row flex-md-row h-md-250 position-relative">
<div class="col-md-9 position-static">
<!-- Begin Page Content -->
{% include 'fossildb_item.html.twig' with {'item': item} %}
<!-- END Page Content -->
</div>
{% embed 'sidebar.html.twig' %}
{% block elements %}
<h3>{{ 'Feedback'|trans }}</h3>
<div class="w-100 text-center">
{{ 'Mist er iets op bij dit fossiel? Of klopt er iets niet? Meld het ons.'|trans }}
<p class="card-text"><a href="{{ path('fossildb_review_add',{ 'id' : item.id }) }}"><button type="button" class="btn btn-paleontica">{{ 'Geef feedback'|trans }}</button></a></p>
</div>
<p></p>
{% endblock %}
{% endembed %}
</div>
{% endblock %}
{% block javascript %}
<script src="https://cdn.jsdelivr.net/autocomplete.js/0/autocomplete.jquery.min.js"></script>
<script src="https://unpkg.com/bootstrap-datepicker@1.9.0/dist/js/bootstrap-datepicker.min.js"></script>
<script>
jQuery(document).ready(function() {
$('.js-datepicker').datepicker({
calendarWeeks: true,
autoclose: true,
clearBtn: true,
todayHighlight: true,
format: "dd-mm-yyyy",
});
$('.js-autocomplete').each(function() {
var autocompleteUrl = $(this).data('autocomplete-url');
$(this).autocomplete({hint: false}, [
{
source: function(query, cb) {
$.ajax({
url: autocompleteUrl+'?query='+query,
}).then(function(data) {
cb(data.pages);
});
},
displayKey: 'id',
name: 'page',
debounce: 500 // only request every 1/2 second
}
])
});
});
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/5.3.0/ekko-lightbox.min.js"></script>
<script>
$(document).on('click', '[data-toggle="lightbox"]', function(event) {
event.preventDefault();
$(this).ekkoLightbox({
wrapping: true,
});
});
</script>
{% endblock %}