server/apps/theming/templates/settings-admin.php

58 lines
3 KiB
PHP
Raw Normal View History

2016-06-06 15:40:38 +00:00
<?php
/** @var array $_ */
/** @var OC_L10N $l */
script('theming', 'settings-admin');
2016-06-09 19:46:30 +00:00
script('theming', '3rdparty/jscolor/jscolor');
style('theming', 'settings-admin');
2016-06-06 15:40:38 +00:00
?>
<div id="theming" class="section">
<h2 class="inlineblock"><?php p($l->t('Theming')); ?></h2>
<div id="theming_settings_msg" class="msg success inlineblock" style="display: none;">Saved</div>
2016-06-09 19:46:30 +00:00
<?php if ($_['themable'] === false) { ?>
<p>
2016-06-09 19:46:30 +00:00
<?php p($_['errorMessage']) ?>
</p>
2016-06-09 19:46:30 +00:00
<?php } else { ?>
<p>
<label><span><?php p($l->t('Name')) ?></span>
<input id="theming-name" type="text" placeholder="<?php p($l->t('Name')); ?>" value="<?php p($_['name']) ?>" />
</label>
2016-06-27 18:36:23 +00:00
<span data-setting="name" data-toggle="tooltip" data-original-title="<?php p($l->t('reset to default')); ?>" class="theme-undo icon icon-history"></span>
</p>
<p>
<label><span><?php p($l->t('Web address')) ?></span>
<input id="theming-url" type="text" placeholder="<?php p($l->t('Web address https://…')); ?>" value="<?php p($_['url']) ?>" />
</label>
2016-06-27 18:36:23 +00:00
<span data-setting="url" data-toggle="tooltip" data-original-title="<?php p($l->t('reset to default')); ?>" class="theme-undo icon icon-history"></span>
</p>
<p>
<label><span><?php p($l->t('Slogan')) ?></span>
<input id="theming-slogan" type="text" placeholder="<?php p($l->t('Slogan')); ?>" value="<?php p($_['slogan']) ?>" />
</label>
2016-06-27 18:36:23 +00:00
<span data-setting="slogan" data-toggle="tooltip" data-original-title="<?php p($l->t('reset to default')); ?>" class="theme-undo icon icon-history"></span>
</p>
<p>
<label><span><?php p($l->t('Color')) ?></span>
<input id="theming-color" type="text" class="jscolor" value="<?php p($_['color']) ?>" />
</label>
2016-06-27 18:36:23 +00:00
<span data-setting="color" data-toggle="tooltip" data-original-title="<?php p($l->t('reset to default')); ?>" class="theme-undo icon icon-history"></span>
</p>
<p>
2016-06-09 19:46:30 +00:00
<form class="uploadButton" method="post" action="<?php p($_['uploadLogoRoute']) ?>">
<label for="uploadlogo"><span><?php p($l->t('Logo')) ?></span></label>
2016-06-09 19:46:30 +00:00
<input id="uploadlogo" class="upload-logo-field" name="uploadlogo" type="file">
<label for="uploadlogo" class="button icon-upload svg" id="uploadlogo" title="<?php p($l->t('Upload new logo')) ?>"></label>
2016-06-27 18:36:23 +00:00
<span data-setting="logoMime" data-toggle="tooltip" data-original-title="<?php p($l->t('reset to default')); ?>" class="theme-undo icon icon-history"></span>
</form>
</p>
<p>
<form class="uploadButton" method="post" action="<?php p($_['uploadLogoRoute']) ?>">
<label for="upload-login-background"><span><?php p($l->t('Log in image')) ?></span></label>
<input id="upload-login-background" class="upload-logo-field" name="upload-login-background" type="file">
<label for="upload-login-background" class="button icon-upload svg" id="upload-login-background" title="<?php p($l->t("Upload new login background")) ?>"></label>
2016-06-27 18:36:23 +00:00
<span data-setting="backgroundMime" data-toggle="tooltip" data-original-title="<?php p($l->t('reset to default')); ?>" class="theme-undo icon icon-history"></span>
2016-06-09 19:46:30 +00:00
</form>
</p>
<?php } ?>
</div>