Mercurial > odfcast
annotate templates/template_convert.html @ 22:0e40926735e1
Add a generic View to display a template for a get request
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Mon, 29 Sep 2014 16:07:25 +0200 |
parents | 585904e7411a |
children | 1dd40e13da74 |
rev | line source |
---|---|
18
585904e7411a
Add html for converting a odf with a template
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
1 {% extends 'base.html' %} |
585904e7411a
Add html for converting a odf with a template
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
2 |
585904e7411a
Add html for converting a odf with a template
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
3 {% block content %} |
585904e7411a
Add html for converting a odf with a template
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
4 <h1>Template Convert</h1> |
585904e7411a
Add html for converting a odf with a template
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
5 |
585904e7411a
Add html for converting a odf with a template
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
6 <form role="form" action="" method="POST" enctype="multipart/form-data"> |
585904e7411a
Add html for converting a odf with a template
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
7 <div class="form-group"> |
585904e7411a
Add html for converting a odf with a template
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
8 <label for="format">Format</label> |
585904e7411a
Add html for converting a odf with a template
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
9 <input id="format" type="text" placeholder="Format" name="format" class="form-control"> |
585904e7411a
Add html for converting a odf with a template
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
10 </div> |
585904e7411a
Add html for converting a odf with a template
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
11 <div class="form-group"> |
585904e7411a
Add html for converting a odf with a template
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
12 <label for="datadict">Data in JSON Format</label> |
585904e7411a
Add html for converting a odf with a template
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
13 <textarea id="datadict" class="form-control"></textarea> |
585904e7411a
Add html for converting a odf with a template
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
14 </div> |
585904e7411a
Add html for converting a odf with a template
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
15 <div class="form-group"> |
585904e7411a
Add html for converting a odf with a template
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
16 <label for="file" >File</label> |
585904e7411a
Add html for converting a odf with a template
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
17 <input id="file" type="file" name="file"> |
585904e7411a
Add html for converting a odf with a template
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
18 </div> |
585904e7411a
Add html for converting a odf with a template
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
19 <button class="btn btn-default" type="submit">Convert</button> |
585904e7411a
Add html for converting a odf with a template
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
20 </form> |
585904e7411a
Add html for converting a odf with a template
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
21 {% endblock %} |