diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-09-18 19:47:14 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-12-20 09:38:43 +0300 |
commit | ec9a21184695b99033ad70bceca892c1d1518560 (patch) | |
tree | ffb0d7fb0e5857707066c347cb45886326472b95 /templates | |
parent | 6a7b73f5989a32a5ebd5b6ff341c9c6c8d4bb88e (diff) |
Fix DI error, added design base and delete handler
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/admin.php b/templates/admin.php index 00db10bf..d6863074 100644 --- a/templates/admin.php +++ b/templates/admin.php @@ -61,13 +61,13 @@ script('files', 'jquery.fileupload'); <?php if (!empty($_['templates'])) { ?> <ul> <?php foreach ($_['templates'] as $template) {?> - <li> + <li data-id="<?php p($template['name']) ?>"> <figure> - <figcaption><?php p($l->t('description')) ?></figcaption> + <img src="<?php p($template['preview']) ?>" alt="<?php p($l->t('template preview')) ?>" /> + <figcaption><?php p($template['name']) ?></figcaption> </figure> - <div> - <a href="#" class="icon-delete"></a> - </div> + <a href="<?php p($template['delete']) ?>" class="delete-template icon-delete"></a> + <div class="delete-cover"></div> </li> <?php } ?> </ul> |