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

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-06-29 11:25:09 +0300
committerLukas Reschke <lukas@owncloud.com>2016-06-29 11:25:09 +0300
commit99bbde20dc9926519ee3492be2edc060b9824133 (patch)
tree80439b11e875a47e1393cb7b53114b2535fc191c /templates
parentc942f6826bee2b43efd8f767761c52b1f6e013a1 (diff)
Add mapping editor
Fixes https://github.com/nextcloud/user_saml/issues/4
Diffstat (limited to 'templates')
-rw-r--r--templates/settings.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/templates/settings.php b/templates/settings.php
index e7d6f52c..7644a7ed 100644
--- a/templates/settings.php
+++ b/templates/settings.php
@@ -43,7 +43,15 @@ style('user_saml', 'settings');
<?php endforeach; ?>
</div>
<div id="user-saml-general">
- <!-- FIXME: Add mapping editor -->
+ <?php foreach($_['general'] as $key => $attribute): ?>
+ <?php if($attribute['type'] === 'checkbox'): ?>
+ <input type="checkbox" id="user-saml-general-<?php p($key)?>" name="<?php p($key)?>" value="<?php p(\OC::$server->getConfig()->getAppValue('user_saml', 'general-'.$key, '0')) ?>">
+ <label for="user-saml-general-<?php p($key)?>"><?php p($attribute['text']) ?></label><br/>
+ <?php elseif($attribute['type'] === 'line'): ?>
+ <input name="<?php p($key) ?>" value="<?php p(\OC::$server->getConfig()->getAppValue('user_saml', 'general-'.$key, '')) ?>" type="text" <?php if(isset($attribute['required']) && $attribute['required'] === true): ?>class="required"<?php endif;?> placeholder="<?php p($attribute['text']) ?>"/>
+ <?php endif; ?>
+ <?php endforeach; ?>
+
<!-- FIXME: Add "Disable timeout from SAML" switch (checked by default)-->
</div>