summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/image-list.html51
-rw-r--r--templates/main-menu.html1
2 files changed, 52 insertions, 0 deletions
diff --git a/templates/image-list.html b/templates/image-list.html
new file mode 100644
index 0000000..3c4561e
--- /dev/null
+++ b/templates/image-list.html
@@ -0,0 +1,51 @@
+<h1>Images</h1>
+
+<div class="alert alert-warning">
+ Die Löschfunktion entfernt lediglich den Datenbankeintrag. Bitte <b>löschen Sie die zugehörige Datei</b>
+ aus dem Storage-Verzeichnis (Spalte Pfad)
+</div>
+
+<form method="post" action="?do=images">
+ <input type="hidden" name="token" value="{{token}}">
+ <input type="hidden" name="action" value="delete">
+ <table class="table">
+ <thead>
+ <tr>
+ <th>Name</th>
+ <th>Größe</th>
+ <th>Erstellt</th>
+ <th>Läuft ab</th>
+ <th>Pfad</th>
+ <th></th>
+ </tr>
+ </thead>
+ <tbody>
+ {{#list}}
+ <tr>
+ <td title="{{description}}">
+ {{displayname}}
+ <div class="small">{{imageversionid}}</div>
+ </td>
+ <td class="slx-nowrap">
+ {{filesize_s}}
+ </td>
+ <td class="slx-nowrap">
+ {{createtime_s}}
+ </td>
+ <td class="slx-nowrap">
+ {{expiretime_s}}
+ </td>
+ <td class="small">
+ {{filepath}}
+ </td>
+ <td>
+ <button type="submit" name="image" value="{{imageversionid}}" class="btn btn-xs btn-danger"
+ onclick="return confirm('Wirklich?')">
+ <span class="glyphicon glyphicon-remove"></span>
+ </button>
+ </td>
+ </tr>
+ {{/list}}
+ </tbody>
+ </table>
+</form> \ No newline at end of file
diff --git a/templates/main-menu.html b/templates/main-menu.html
index e4583cc..ea32b1d 100644
--- a/templates/main-menu.html
+++ b/templates/main-menu.html
@@ -13,6 +13,7 @@
<ul class="nav navbar-nav">
{{#admin}}
<li><a href="?do=AddUser">AddUser</a></li>
+ <li><a href="?do=images">Manage Images</a></li>
{{/admin}}
</ul>
<ul class="nav navbar-nav navbar-right">