Add comments popover

master
informatic 2020-04-13 15:15:15 +02:00
parent 889c59975c
commit ce3333b259
1 changed files with 14 additions and 0 deletions

View File

@ -3,4 +3,18 @@
{{ super() }}
<a href="{{ url_for('map.index', id=row.id) }}" class="icon" title="Show on map"><span class="glyphicon glyphicon-map-marker"></span></a>
<a href="{{ url_for('faceshieldrequest.label', id=row.id) }}" class="icon" title="Render package label"><span class="glyphicon glyphicon-print"></span></a>
<a class="icon" role="button" data-toggle="popover" data-html="true" data-content="<b>Extras:</b><br />{{ row.extra or '' }}<hr><b>Remarks:</b><br />{{ row.remarks or '' }}"><span class="glyphicon glyphicon-comment"></span></a>
{% endblock %}
{% block head_css %}{{ super() }}
<style>
.popover { max-width: 400px; }
</style>
{% endblock %}
{% block tail_js %}{{ super() }}
<script>
$(function () {
$('[data-toggle="popover"]').popover({ trigger: "hover click" })
})
</script>
{% endblock %}