From 6326867adb72dd9ded160769ef09e77b2e482784 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 2 Dec 2013 14:51:09 +0100 Subject: Manage document template * ooo_replace: generate a document by mapping ooo variables with a given dict * DocumentTemplate model: store templates associated with a type of objects * get_values method: generate a dict of value from a model * new form/view to generate document from administrativ acts --- .../ishtar/administrativeact_document.html | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 archaeological_files/templates/ishtar/administrativeact_document.html (limited to 'archaeological_files/templates') diff --git a/archaeological_files/templates/ishtar/administrativeact_document.html b/archaeological_files/templates/ishtar/administrativeact_document.html new file mode 100644 index 000000000..cdb2b45be --- /dev/null +++ b/archaeological_files/templates/ishtar/administrativeact_document.html @@ -0,0 +1,23 @@ +{% extends "base.html" %}Q +{% load i18n %} +{% block extra_head %} +{{search_form.media}} +{{ template_form.media }} +{% endblock %} + +{% block content %} +

{% trans "Document generation" %}

+
{% csrf_token %} +
+ +{{ search_form.as_table }} +
+

{% trans "Choose the type of document" %}

+ +{{ template_form }} +
+ +
+
+{% endblock %} + -- cgit v1.2.3