Fixed browser configuration pages

The browser configuration pages have been modified to improve the
content and appearance.

Ticket #1624
This commit is contained in:
Endi S. Dewata 2011-08-16 13:58:19 -05:00
parent e8b64be673
commit 72a7e3ac2d
3 changed files with 57 additions and 47 deletions

View File

@ -11,8 +11,7 @@
<script type="text/javascript">
$(document).ready(function() {
if (navigator.userAgent.indexOf("Firefox") != -1 ||
navigator.userAgent.indexOf("SeaMonkey") != -1)
{
navigator.userAgent.indexOf("SeaMonkey") != -1) {
$('.textblockkrb').css('display', 'block');
}
});
@ -22,18 +21,18 @@
<body id="header-bg">
<div class="container_1">
<div class="header-logo">
<img src="../ui/ipalogo.png" />
</div>
<div class="textblockkrb" style="display: none;">
<h1>Configure Browser</h1>
<p> Click the below button to configure your browser </p>
<object data="jar:/ipa/errors/configure.jar!/preferences.html"
type="text/html" class="browser-config"></object>
</div>
<div class="textblockkrb">
<p><a href="/ipa/ui">Return to the Web UI</a></p>
</div>
</div>
</body>

View File

@ -16,31 +16,39 @@
$("#next-link").css("display", "block");
return true;
});
});
</script>
</head>
<body id="header-bg">
<div class="container_1">
<div class="header-logo">
<img src="../ui/ipalogo.png" />
</div>
<div class="textblockkrb">
<h1>Unable to verify your Kerberos credentials.</h1><p> Please make sure that you have valid Kerberos tickets (obtainable via <b>kinit</b>), and that you have configured your browser correctly. </p>
<b>If this is your first time</b>
<h1>Unable to verify your Kerberos credentials</h1>
<p>
Please make sure that you have valid Kerberos tickets (obtainable via <b>kinit</b>),
and that you have configured your browser correctly.
</p>
<div id="first-time">
<b>If this is your first time:</b>
<ul>
<li><a id="import-cert-auth-link" href="/ipa/errors/ca.crt" >Click here to Import the IPA Certificate Authority</a>. </li>
<li>Make sure you select <b>all three</b> checkboxes </li>
<li>Click the <b>OK</b> Button</li>
<li><a id="import-cert-auth-link" href="/ipa/errors/ca.crt">Click here to
Import the IPA Certificate Authority.</a></li>
<li>Make sure you select <b>all three</b> checkboxes.</li>
<li>Click the <b>OK</b> Button.</li>
</ul>
</div>
<div id="next-link" style="display: none;">
. <p> <a href="browserconfig.html"> Next Step:</a></p>
<p><a href="browserconfig.html">Click here to continue.</a></p>
</div>
</div>
</div>

View File

@ -22,7 +22,7 @@
</head>
<body>
<form action="undefined" method="get">
<input type=button onclick="setPreferences()" name="prefs" value="Configure Firefox">
<input id="button" type=button onclick="setPreferences()" name="prefs" value="Configure Firefox">
<div id="success" class="textblock" style="display: none;">
<p>Browser configured.</p>
<p>
@ -67,6 +67,9 @@
var redirect_link = document.getElementById('redirect_link');
redirect_link.href = "https://" + location.hostname + location.port + "/ipa/ui";
var button = document.getElementById('button');
button.style['display'] = "none";
var successDiv = document.getElementById('success');
successDiv.style['display'] = "block";
} catch (e) {