Added preview template
This commit is contained in:
parent
0aed8549f7
commit
1a702665fd
3 changed files with 24 additions and 3 deletions
8
templates/admin/pdfformfiller/page/change_form.html
Normal file
8
templates/admin/pdfformfiller/page/change_form.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{% extends 'admin/change_form.html' %}
|
||||
{% load i18n admin_static admin_modify %}
|
||||
{% load admin_urls %}
|
||||
{% block object-tools-items %}
|
||||
<li><a href="{% url 'admin:preview' original.pk|admin_urlquote %}">Preview</a></li>
|
||||
{{ block.super }}
|
||||
{% endblock %}
|
||||
|
7
templates/admin/pdfformfiller/page/preview.html
Normal file
7
templates/admin/pdfformfiller/page/preview.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
{% extends "admin/base_site.html" %}
|
||||
{% block content %}
|
||||
<div id="content-main">
|
||||
|
||||
<img src="{{ page.image.url }}"/>
|
||||
</div>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue