From 3d07f4f48cb4fd5a6807ae7e1cc4cfc475cd5eed Mon Sep 17 00:00:00 2001 From: felipebormann Date: Thu, 9 Feb 2017 15:48:02 -0300 Subject: [PATCH] modified form and added pdf rendering in html --- pdf_file/templates/pdf_file/_form.html | 46 ++++++++++++++++++++++++---------------------- pdf_file/templates/pdf_file/view.html | 16 +++++++++------- 2 files changed, 33 insertions(+), 29 deletions(-) diff --git a/pdf_file/templates/pdf_file/_form.html b/pdf_file/templates/pdf_file/_form.html index 7c0d050..2cce843 100644 --- a/pdf_file/templates/pdf_file/_form.html +++ b/pdf_file/templates/pdf_file/_form.html @@ -87,28 +87,7 @@ {% endif %} -
-
- -
- - {{ form.show_window.help_text }} - - {% if form.show_window.errors %} - - {% endif %} -
+
@@ -318,6 +297,29 @@
+ +
+ + {{ form.show_window.help_text }} + + {% if form.show_window.errors %} + + {% endif %} +
+ +
+
diff --git a/pdf_file/templates/pdf_file/view.html b/pdf_file/templates/pdf_file/view.html index d36746b..ff42885 100644 --- a/pdf_file/templates/pdf_file/view.html +++ b/pdf_file/templates/pdf_file/view.html @@ -13,20 +13,22 @@ {% endblock %} {% block breadcrumbs %} - {{ block.super }} - - {% breadcrumb topic 'subjects:topic_view' topic.subject.slug topic.slug %} - + {% clear_breadcrumbs %} + {% breadcrumb 'Home' 'subjects:home' %} + {% breadcrumb pdf_file.topic.subject.category 'subjects:cat_view' pdf_file.topic.subject.category.slug %} + {% breadcrumb pdf_file.topic.subject 'subjects:view' pdf_file.topic.subject.slug %} + {% breadcrumb pdf_file.topic 'subjects:topic_view' pdf_file.topic.subject.slug pdf_file.topic.slug %} + {% breadcrumb pdf_file 'pdf_file:view' pdf_file.slug %} {% endblock %} {% block content %} - -

Insert your error message here, if the PDF cannot be displayed.

+ +

{% trans "PDF could not be displayed" %}

- + {% endblock content %} \ No newline at end of file -- libgit2 0.21.2