diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-12-02 14:51:09 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-12-02 14:59:06 +0100 |
| commit | 6326867adb72dd9ded160769ef09e77b2e482784 (patch) | |
| tree | e7c44902b0dc74675ae3dda5658fc29c14ec71ba /archaeological_files/templates | |
| parent | de9fbce423f780a02b73a9e943995b0b7efb0008 (diff) | |
| download | Ishtar-6326867adb72dd9ded160769ef09e77b2e482784.tar.bz2 Ishtar-6326867adb72dd9ded160769ef09e77b2e482784.zip | |
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
Diffstat (limited to 'archaeological_files/templates')
| -rw-r--r-- | archaeological_files/templates/ishtar/administrativeact_document.html | 23 |
1 files changed, 23 insertions, 0 deletions
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 %} +<h2>{% trans "Document generation" %}</h2> +<form action="." method="post">{% csrf_token %} +<div class='form'> +<table> +{{ search_form.as_table }} +</table> +<h4>{% trans "Choose the type of document" %}</h4> +<table> +{{ template_form }} +</table> +<input type="submit" id="submit_form" name='validate' value="{% trans "Generate" %}"/> +</div> +</form> +{% endblock %} + |
