Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-09-18 19:47:14 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-12-20 09:38:43 +0300
commitec9a21184695b99033ad70bceca892c1d1518560 (patch)
treeffb0d7fb0e5857707066c347cb45886326472b95 /templates
parent6a7b73f5989a32a5ebd5b6ff341c9c6c8d4bb88e (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.php10
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>