summaryrefslogtreecommitdiffstats
path: root/apps/federation/templates/settings-admin.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-11-23 10:42:14 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-11-23 10:42:14 +0100
commitbf672d7e51bd3411130a3c3a41a931fb3d23ff68 (patch)
tree41185570e7a50290dee0fc5fb359e20e098769e4 /apps/federation/templates/settings-admin.php
parent43391f8f47d82eca4605ed9255d551ca3a9cbf33 (diff)
parenta63a1043b6a40193a44d2fb1b702a775bb761c8d (diff)
downloadnextcloud-server-bf672d7e51bd3411130a3c3a41a931fb3d23ff68.tar.gz
nextcloud-server-bf672d7e51bd3411130a3c3a41a931fb3d23ff68.zip
Merge pull request #20222 from owncloud/federated_sharing_auto_complete
federated sharing auto-complete, first step
Diffstat (limited to 'apps/federation/templates/settings-admin.php')
-rw-r--r--apps/federation/templates/settings-admin.php40
1 files changed, 40 insertions, 0 deletions
diff --git a/apps/federation/templates/settings-admin.php b/apps/federation/templates/settings-admin.php
new file mode 100644
index 00000000000..854bb744179
--- /dev/null
+++ b/apps/federation/templates/settings-admin.php
@@ -0,0 +1,40 @@
+<?php
+/** @var array $_ */
+use OCA\Federation\TrustedServers;
+
+/** @var OC_L10N $l */
+script('federation', 'settings-admin');
+style('federation', 'settings-admin')
+?>
+<div id="ocFederationSettings" class="section">
+ <h2><?php p($l->t('Federation')); ?></h2>
+ <em><?php p($l->t('ownCloud Federation allows you to connect with other trusted ownClouds to exchange the user directory. For example this will be used to auto-complete external users for federated sharing.')); ?></em>
+
+ <p>
+ <input id="autoAddServers" type="checkbox" class="checkbox" <?php if($_['autoAddServers']) p('checked'); ?> />
+ <label for="autoAddServers">Add server automatically once a federated share was created successfully</label>
+ </p>
+
+ <h3>Trusted ownCloud Servers</h3>
+ <p id="ocFederationAddServer">
+ <button id="ocFederationAddServerButton" class="">+ Add ownCloud server</button>
+ <input id="serverUrl" class="hidden" type="text" value="" placeholder="ownCloud Server" name="server_url"/>
+ <span class="msg"></span>
+ </p>
+ <ul id="listOfTrustedServers">
+ <?php foreach($_['trustedServers'] as $trustedServer) { ?>
+ <li id="<?php p($trustedServer['id']); ?>" class="icon-delete">
+ <?php if((int)$trustedServer['status'] === TrustedServers::STATUS_OK) { ?>
+ <span class="status success"></span>
+ <?php } elseif((int)$trustedServer['status'] === TrustedServers::STATUS_PENDING) { ?>
+ <span class="status indeterminate"></span>
+ <?php } else {?>
+ <span class="status error"></span>
+ <?php } ?>
+ <?php p($trustedServer['url']); ?>
+ </li>
+ <?php } ?>
+ </ul>
+
+</div>
+