diff options
author | Michael Weimann <mail@michael-weimann.eu> | 2018-12-18 22:07:41 +0100 |
---|---|---|
committer | Michael Weimann <mail@michael-weimann.eu> | 2019-01-14 00:07:36 +0100 |
commit | 6993faaf67b6e822f7b03bd972fe42c9b4dd1d5d (patch) | |
tree | dc2492d0190c4a098ae4275163433b354a55fb20 /settings/templates | |
parent | 107fab9dfad01ac8d6532e1a3e3758d444a114b0 (diff) | |
download | nextcloud-server-6993faaf67b6e822f7b03bd972fe42c9b4dd1d5d.tar.gz nextcloud-server-6993faaf67b6e822f7b03bd972fe42c9b4dd1d5d.zip |
Add the "server info" settings
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
Diffstat (limited to 'settings/templates')
-rw-r--r-- | settings/templates/settings/admin/server-info.php | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/settings/templates/settings/admin/server-info.php b/settings/templates/settings/admin/server-info.php new file mode 100644 index 00000000000..9c2b3fe4318 --- /dev/null +++ b/settings/templates/settings/admin/server-info.php @@ -0,0 +1,90 @@ +<?php ?> + +<div class="section server-info-settings"> + <h2><?php p($l->t('Server info')); ?></h2> + <p class="settings-hint"> + <?php p($l->t('Enter common info about your Nextcloud instance here. These info are visible to all users.')) ?> + </p> + <form> + <div class="margin-bottom"> + <label class="label" for="location"><?php p($l->t('Server location')); ?></label> + <input + class="form-input" + id="location" + name="location" + type="text" + maxlength="100" + placeholder="<?php p($l->t('country')); ?>"> + </div> + <div> + <label class="label" for="provider"><?php p($l->t('Service provider')); ?></label> + <input + class="form-input" + id="provider" + name="provider" + type="text" + maxlength="100" + placeholder="<?php p($l->t('company or person')); ?>"> + </div> + <div> + <label class="label" for="providerWebsite"><?php p($l->t('Website')); ?></label> + <input + class="form-input" + id="providerWebsite" + name="providerWebsite" + type="url" + maxlength="200" + placeholder="<?php p($l->t('link to website')); ?>"> + </div> + <div class="margin-bottom"> + <label class="label" for="providerPrivacyLink"><?php p($l->t('Link to privacy policy')); ?></label> + <input + class="form-input" + id="providerPrivacyLink" + name="providerPrivacyLink" + type="url" + maxlength="200" + placeholder="<?php p($l->t('link to privacy policy')); ?>"> + </div> + <div class="margin-bottom"> + <label class="label" for="admin"><?php p($l->t('Admin contact')); ?></label> + <select class="form-input" name="admin"> + <option>Michael Weimann</option> + <option>Max Mustermann</option> + <option>Peter Petrowski</option> + </select> + </div> + <div class="form-actions"> + <button id="test123" class="button"> + <span class="default-label"> + <?php p($l->t('Save')); ?> + </span> + <span class="working-label"> + <span class="icon-loading-small-dark"></span> + <?php p($l->t('saving…')); ?> + </span> + <span class="success-label"> + <span class="icon-checkmark-white"></span> + <?php p($l->t('saved')); ?> + </span> + <span class="error-label"> + <span class="icon-error-white"></span> + <?php p($l->t('error saving settings')); ?> + </span> + </button> + <script> + const button = $('#test123'); + button.on('click', (event) => { + event.stopImmediatePropagation(); + event.preventDefault(); + button.prop('disabled', true); + button.addClass('button-working'); + setTimeout(() => { + button.removeClass('button-working'); + button.addClass('button-success'); + }, 1500); + }); + </script> + </div> + </form> +</div> |