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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2016-06-09 22:46:30 +0300
committerLukas Reschke <lukas@owncloud.com>2016-06-27 11:26:22 +0300
commit10f6ca20bcf521f125700f892b09bf745a595ea7 (patch)
tree668da5e4ba4580ede60773abf254e42c46fb5a97 /apps/theming/templates
parent363b76faee862e1cccd826d25a0f208ef656e1bc (diff)
write theme settings to database
Diffstat (limited to 'apps/theming/templates')
-rw-r--r--apps/theming/templates/settings-admin.php29
1 files changed, 22 insertions, 7 deletions
diff --git a/apps/theming/templates/settings-admin.php b/apps/theming/templates/settings-admin.php
index 82d21751abc..cfc18de9c13 100644
--- a/apps/theming/templates/settings-admin.php
+++ b/apps/theming/templates/settings-admin.php
@@ -2,24 +2,39 @@
/** @var array $_ */
/** @var OC_L10N $l */
script('theming', 'settings-admin');
-style('theming', 'settings-admin')
+script('theming', '3rdparty/jscolor/jscolor');
+style('theming', 'settings-admin');
?>
<div id="theming" class="section">
<h2><?php p($l->t('Theming')); ?></h2>
-
+ <?php if ($_['themable'] === false) { ?>
<p>
- <input class="theming-name" type="text" placeholder="<?php p($l->t('Name')); ?>"></input>
+ <?php p($_['errorMessage']) ?>
</p>
+ <?php } else { ?>
<p>
- <input class="theming-address" type="text" placeholder="<?php p($l->t('Web address https://…')); ?>"></input>
+ <span class="theming-label">Name:</span> <input id="theming-name" type="text" placeholder="<?php p($l->t('Name')); ?>" value="<?php p($_['name']) ?>"></input>
+ <span data-setting="name" data-original-title="<?php p($l->t('revert to original value')); ?>" class="theme-undo icon icon-history"></span>
</p>
<p>
- <input class="theming-slogan" type="text" placeholder="<?php p($l->t('Slogan')); ?>"></input>
+ <span class="theming-label">URL:</span> <input id="theming-url"type="text" placeholder="<?php p($l->t('Web address https://…')); ?>" value="<?php p($_['url']) ?>"></input>
+ <span data-setting="url" data-original-title="<?php p($l->t('revert to original value')); ?>" class="theme-undo icon icon-history"></span>
</p>
<p>
- <input class="theming-color" type="text" placeholder="<?php p($l->t('Color #0082c9')); ?>"></input>
+ <span class="theming-label">Slogan:</span> <input id="theming-slogan" type="text" placeholder="<?php p($l->t('Slogan')); ?>" value="<?php p($_['slogan']) ?>"></input>
+ <span data-setting="slogan" data-original-title="<?php p($l->t('revert to original value')); ?>" class="theme-undo icon icon-history"></span>
</p>
<p>
- <input class="theming-logo" type="text" placeholder="<?php p($l->t('Logo')); ?>"></input>
+ <span class="theming-label">Color:</span> <input id="theming-color" class="jscolor" value="<?php p($_['color']) ?>"></input>
+ <span data-setting="color" data-original-title="<?php p($l->t('revert to original value')); ?>" class="theme-undo icon icon-history"></span>
</p>
+ <p>
+ <form class="uploadButton" method="post" action="<?php p($_['uploadLogoRoute']) ?>">
+ <span class="theming-label">Logo:</span>
+ <input id="uploadlogo" class="upload-logo-field" name="uploadlogo" type="file">
+ <label for="uploadlogo" class="button icon-upload svg" id="uploadlogo" title="Upload new logo"></label>
+ <span data-setting="logoName" data-original-title="<?php p($l->t('revert to original value')); ?>" class="theme-undo icon icon-history"></span>
+ </form>
+ </p>
+ <?php } ?>
</div>