contentmatcher/templates/deck/index.html

34 lines
1019 B
HTML
Raw Normal View History

2022-05-22 16:52:01 +02:00
{% extends 'base.html' %}
{% block header %}
<h1>{% block title %}DECK{% endblock %}</h1>
{% endblock %}
{% block content %}
<p>BODY</p>
<article class="post">
<div>
<header>
2022-05-22 16:52:01 +02:00
<h1>{{ card['title'] }}</h1>
</header>
2022-06-03 19:13:23 +02:00
<!--iframe src={{ card['item_location'] }} width="auto" height="auto"> </iframe-->
<div id="pdf-doc"></div>
2022-05-22 16:52:01 +02:00
<form method="post">
<button input type="submit" name="rate" data-cardtitle=card[title] value="Yes">Yes</button>
<button input type="submit" name="rate" value="Maybe">Maybe</button>
<button input type="submit" name="rate" value="No">No</button>
</form>
</div>
</article>
2022-06-03 19:13:23 +02:00
<script type="text/javascript" src="{{ url_for('static', filename='js/pdfobject.min.js') }}"></script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function (){
PDFObject.embed("{{ card['item_location'] }}", "#pdf-doc");
});
</script>
2022-05-22 16:52:01 +02:00
{% endblock %}