diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2020-04-20 00:52:33 +0200 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2020-04-20 00:52:33 +0200 |
commit | 2460ef593a17eecad863e8702904292cc9706d9e (patch) | |
tree | e872cee22c8f77b1f25976d794d48564723627dd /templates/mandant.html |
Kickoff
Diffstat (limited to 'templates/mandant.html')
-rw-r--r-- | templates/mandant.html | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/templates/mandant.html b/templates/mandant.html new file mode 100644 index 0000000..16c07ab --- /dev/null +++ b/templates/mandant.html | |||
@@ -0,0 +1,37 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <html> | ||
3 | <head> | ||
4 | <title>Filer</title> | ||
5 | <meta charset="UTF-8"> | ||
6 | {{ dropzone.load_css() }} | ||
7 | {{ dropzone.style('border: 2px dashed #0087F7; min-height: 10px;') }} | ||
8 | <link rel="stylesheet" href="/static/style.css"> | ||
9 | </head> | ||
10 | <body> | ||
11 | {{ dropzone.load_js() }} | ||
12 | <h1>Kanzlei Hubrig – Dokumenten-Austausch</h1> | ||
13 | {%- if admin %} | ||
14 | <a href="/admin">Zurück zur Übersicht</a> | ||
15 | {% endif -%} | ||
16 | <h2>Dokumente</h2> | ||
17 | <ul> | ||
18 | {%- for item in tree.children recursive %} | ||
19 | <li><form action="/{{admin}}{{ item.name }}" method="post" style="display: inline;" onsubmit="return confirm('Sind Sie sicher?');"> | ||
20 | <input type="hidden" name="_method" value="DELETE"> | ||
21 | <button class="delete" type="submit">löschen</button> | ||
22 | </form> | ||
23 | <div class="age">{{item.ttl}} Tag{%- if not item.ttl == 1 -%}e{%- endif -%}</div> | ||
24 | {%- if 'children' in item -%} | ||
25 | {{item.download}}<br/> | ||
26 | <ul>{{ loop(item.children) }}</ul> | ||
27 | {%- else -%} | ||
28 | <a href="/{{admin}}{{item.name}}" download="{{item.download}}">{{ item.download }}</a> | ||
29 | {%- endif %}</li> | ||
30 | {%- endfor %} | ||
31 | </ul> | ||
32 | |||
33 | <div class="droppy">{{ dropzone.create(action="/"+admin+"Dokumente/"+user) }}</div> | ||
34 | |||
35 | {{ dropzone.config() }} | ||
36 | </body> | ||
37 | </html> | ||