summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorMarko Pušnik <marko.pusnik@guru.si>2015-11-06 15:21:30 +0100
committerMarko Pušnik <marko.pusnik@guru.si>2015-11-06 15:21:30 +0100
commitb81864469dc5f72c87f2765f82f28101c9bcf34c (patch)
treeea2ec3fb41e340c3ba84317c38d20d26eb1c3d50 /index.html
parent6dfd1ecab43c512197cc0c2a62f3ad5cbeef5e19 (diff)
Gui support for SAML account merge/upgrade upon first SAML-type login of an existing user.
Diffstat (limited to 'index.html')
-rw-r--r--index.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/index.html b/index.html
index b5e8e89..65edb18 100644
--- a/index.html
+++ b/index.html
@@ -233,6 +233,45 @@
</div>
</div>
+
+ <!-- upgrade account to AAI screen -->
+ <div class="container" id="screen_upgrade_to_aai" style="display: none;">
+ <div class="row">
+ <div class="col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1">
+ <div class="panel panel-default">
+ <div class="panel-heading">
+ <h3 class="text-center" data-tkey="upgrade_to_aai_header">Upgrade to AAI?</h3>
+ </div>
+ <div class="panel-body">
+ <form id="formUpgradeToAAI" class="form">
+ <div data-tkey="upgrade_to_aai_body_text_1">
+ <p>User with this email address already exists.</p>
+ <p>Enter its password and select <span class="badge">Yes</span> to upgrade it to AAI.</p>
+ </div>
+ <div class="form-group">
+ <label class="sr-only" for="password" data-tkey="password">Password</label>
+ <input type="password" class="form-control" name="password" id="formUpgradeToAAIPassword" data-tkey-placeholder="password" placeholder="Password" required>
+ </div>
+ <div data-tkey="upgrade_to_aai_body_text_2">
+ <p>Select <span class="badge">No</span> to do a separate account.</p>
+ </div>
+ </form>
+ </div>
+ <div class="panel-footer text-center">
+ <div>
+ <button class="btn btn-default" id="btnUpgradeToAAINo" data-tkey="upgrade_to_aai_no_button">No, make new</button>
+ <input form="formUpgradeToAAI" class="btn btn-primary" id="btnUpgradeToAAIYes" type="submit" data-tkey-value="upgrade_to_aai_yes_button" value="Yes, upgrade to AAI"></button>
+ </div>
+ <br>
+ <div class="text-center small">
+ <a role="button" onclick="codeq.setLang('sl')">Slovenščina</a> | <a role="button" onclick="codeq.setLang('en')">English</a>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
<!-- main screen: programming language selection, settings, etc. -->
<div class="container" id="screen_language" style="text-align: center; display: none;">
<div class="row">
@@ -490,6 +529,7 @@
<script src="js/codeq/signup.js"></script>
<script src="js/codeq/login.js"></script>
<script src="js/codeq/aaiLogin.js"></script>
+ <script src="js/codeq/upgrade_to_aai.js"></script>
<script src="js/codeq/change_password.js"></script>
<script src="js/codeq/profile.js"></script>
<script src="js/codeq/language.js"></script>