summaryrefslogtreecommitdiffstats
path: root/pki/dogtag/tps-ui/shared/cgi-bin/so/Enroll.html
diff options
context:
space:
mode:
authorjmagne <jmagne@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2009-02-26 21:57:32 +0000
committerjmagne <jmagne@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2009-02-26 21:57:32 +0000
commit68fdfed0706f0623362e6a4f17f740cc809504f7 (patch)
treeae605c8b5d618f88cc9dfe649ad12a233402088d /pki/dogtag/tps-ui/shared/cgi-bin/so/Enroll.html
parent656ad1320e327225813831ce98a1f320503f18da (diff)
downloadpki-68fdfed0706f0623362e6a4f17f740cc809504f7.tar.gz
pki-68fdfed0706f0623362e6a4f17f740cc809504f7.tar.xz
pki-68fdfed0706f0623362e6a4f17f740cc809504f7.zip
Security Officer UI changes, #445274
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@252 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/dogtag/tps-ui/shared/cgi-bin/so/Enroll.html')
-rwxr-xr-xpki/dogtag/tps-ui/shared/cgi-bin/so/Enroll.html44
1 files changed, 38 insertions, 6 deletions
diff --git a/pki/dogtag/tps-ui/shared/cgi-bin/so/Enroll.html b/pki/dogtag/tps-ui/shared/cgi-bin/so/Enroll.html
index 7980a9cf0..bd56efe45 100755
--- a/pki/dogtag/tps-ui/shared/cgi-bin/so/Enroll.html
+++ b/pki/dogtag/tps-ui/shared/cgi-bin/so/Enroll.html
@@ -19,11 +19,11 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-<link rel=stylesheet href="/so/style.css" type="text/css">
+<link rel=stylesheet href="/esc/so/style.css" type="text/css">
<title>Enrollment</title>
</head>
-<script type="text/JavaScript" src="/so/util.js">
+<script type="text/JavaScript" src="/esc/so/util.js">
</script>
<script type="text/javascript">
@@ -49,6 +49,30 @@ function UserOnDoneInitializeBindingTable()
}
}
+function UserOnCOOLKeyStateError()
+{
+ toggleAjaxProgress('ajax-pb', 'off');
+}
+
+
+function toggleAjaxProgress(id, i)
+{
+ var e = document.getElementById(id);
+ if (i == 'off') {
+ e.style.display = 'none';
+ } else {
+ e.style.display = 'block';
+ }
+}
+
+function UserOnCOOLKeyStatusUpdate(data)
+{
+ var progress = document.getElementById("progress");
+
+ if(progress)
+ progress.innerHTML = data + "%";
+}
+
// -->
</script>
@@ -58,18 +82,20 @@ function UserOnDoneInitializeBindingTable()
<table width="100%" class="logobar">
<tr>
<td>
-<img alt="" src="/so/logo.jpg">
+<!--<img alt="" src="/esc/so/images/logo.gif"> -->
</td>
- <td>
+ <td align = "center">
<p class="headerText">Security Officer Enrollment</p>
</td>
</tr>
</table>
+ <div id="pb" style="display:none;">
<table id="BindingTable" width="200px"align="center">
<tr id="HeaderRow">
</tr>
</table>
- <p class="bodyText">You have plugged in your smartcard! After answering a few easy questions, you will be able to use your smartcard.
+ </div>
+ <p class="bodyText">You have plugged in your smartcard! After answering a few easy questions, you will be able to enroll the smartcard for the Security Officer user.
</p>
<p class="bodyText">
Now we would like you to identify yourself.
@@ -97,10 +123,16 @@ function UserOnDoneInitializeBindingTable()
<td><input type="password" id="reenterpintf" name="reenterpintf" value=""></td>
</table>
<br>
+ <div id="ajax-pb" style="display:none;">
+ <img src="/esc/sow/images/indicator.gif">
+ <h2 id="progress" name="progress" value="0%" ></h2>
+ </table>
+ </div>
+
<table width="100%">
<tr>
<td align="right">
- <input type="button" id="enrollbtn" name="enrollbtn" value="Enroll My Smartcard" onClick="DoEnrollCOOLKey();">
+ <input type="button" id="enrollbtn" name="enrollbtn" value="Enroll My Smartcard" onClick="toggleAjaxProgress('ajax-pb','on');DoEnrollCOOLKey();">
</td>
</tr>
</table>