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 12:55:43 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-12-20 09:38:43 +0300
commit6a7b73f5989a32a5ebd5b6ff341c9c6c8d4bb88e (patch)
tree0c7526431ed0d931ff2bc472566cbc4d32052ef8 /templates
parente334a2420ede7fdbff6b2ed34a6ecc138a3eddb6 (diff)
Error handler and class code style fixes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/admin.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/templates/admin.php b/templates/admin.php
index 2f9c962d..00db10bf 100644
--- a/templates/admin.php
+++ b/templates/admin.php
@@ -1,6 +1,8 @@
<?php
style('richdocuments', 'admin');
script('richdocuments', 'admin');
+script('files', 'jquery.fileupload');
+
/** @var array $_ */
?>
<div class="section" id="richdocuments">
@@ -50,3 +52,32 @@ script('richdocuments', 'admin');
<p class="rd-settings-documentation"><em><?php p($l->t('Canonical webroot, in case there are multiple, for Collabora to use. Provide the one with least restrictions. Eg: Use non-shibbolized webroot if this instance is accessed by both shibbolized and non-shibbolized webroots. You can ignore this setting if only one webroot is used to access this instance.')) ?></em></p>
</div>
</div>
+<form class="section" id="richdocuments-templates" method="post" action="/template/">
+ <input class="hidden-visually" id="add-template" type="file" />
+ <h2>
+ <?php p($l->t('Global templates')) ?>
+ <label for="add-template" class="icon-add" title="<?php p($l->t('Add a new template')); ?>"></label>
+ </h2>
+ <?php if (!empty($_['templates'])) { ?>
+ <ul>
+ <?php foreach ($_['templates'] as $template) {?>
+ <li>
+ <figure>
+ <figcaption><?php p($l->t('description')) ?></figcaption>
+ </figure>
+ <div>
+ <a href="#" class="icon-delete"></a>
+ </div>
+ </li>
+ <?php } ?>
+ </ul>
+ <?php } else { ?>
+ <div id="emptycontent">
+ <div class="icon-file"></div>
+ <h2>
+ <?php p($l->t('No templates defined.')); ?>
+ </h2>
+ <label for="add-template"><?php p($l->t('Add a new one?')); ?></label>
+ </div>
+ <?php } ?>
+</form>