summaryrefslogtreecommitdiff
path: root/admin/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'admin/templates/index.html')
-rw-r--r--admin/templates/index.html45
1 files changed, 45 insertions, 0 deletions
diff --git a/admin/templates/index.html b/admin/templates/index.html
new file mode 100644
index 00000000..87238d50
--- /dev/null
+++ b/admin/templates/index.html
@@ -0,0 +1,45 @@
1<!DOCTYPE html>
2<html>
3<head>
4<title>CCCMS Admin</title>
5<meta charset="UTF-8">
6{{ dropzone.load_css() }}
7{{ dropzone.style('border: 2px dashed #0087F7; min-height: 3em;') }}
8<script type=text/javascript src="static/cccms.js"></script>
9<link rel="stylesheet" href="/static/style.css">
10</head>
11<body>
12{{ dropzone.load_js() }}
13
14<button onclick="toggle_hide('edit_update')">Neues Update</button>
15<div class="hidden" id="edit_update">
16 <form action="/admin/submit_page">
17 <div><label for="page_title">Titel:</label><input type="text" id="page_title"/></div>
18 <div><label for="page_slug">slug: updates/2020/</label><input type="text" id="page_slug"/></div>
19 <div><label for="page_author">Author:</label><input type="text" id="page_author"/></div>
20 <div><label for="page_date">Date:</label><input type="datetime-local" id="page_date"/></div>
21 <div><label for="page_teaser">Teaser:</label><textarea name="page_teaser" id="page_teaser"></textarea></div>
22 <div><label for="page_content">Content:</label><textarea name="page_content" id="page_content"></textarea></div>
23 </form>
24</div>
25
26<button>Neue Page</button>
27<button>Neues File</button>
28<div class="droppy">{{ dropzone.create(action='/admin') }}</div>
29
30<ul class="tree">
31 {% for obj in tree recursive %}
32 <li>
33 {%- if obj.type_str == 'tree' -%}
34 <div class="entry_title entry_node" title="{{ obj.id }}" onclick="toggle_hide('{{ obj.id }}')">{{ obj.name }}</div>
35 <ul id="{{ obj.id }}" class="hidden">{{ loop(obj) }}</ul>
36 {%- else -%}
37 <div class="entry_title" title="{{ obj.id }}" onclick="load_object('{{ obj.id }}')">{{ obj.name }}</div>
38 {%- endif %}
39 </li>
40 {% endfor %}
41</ul>
42
43{{ dropzone.config() }}
44</body>
45</html>