Commit b4f58bec authored by Ryan Graham's avatar Ryan Graham Committed by ryan

more ldap setup files (steps 2 and 3). ie crash bug with the 'show/hide' still present. urgh.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@4870 b35dd754-fafc-0310-a699-88a17e54d16e
parent 1ef0eea2
<%@ page import="org.jivesoftware.util.*,
java.util.HashMap,
java.util.Map,
java.util.Date,
org.jivesoftware.wildfire.user.User,
org.jivesoftware.wildfire.user.UserManager,
org.jivesoftware.util.JiveGlobals" %>
<%@ page import="org.jivesoftware.wildfire.XMPPServer"%>
<%@ page import="org.jivesoftware.wildfire.auth.AuthFactory"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
<%
// Redirect if we've already run setup:
if (!XMPPServer.getInstance().isSetupMode()) {
response.sendRedirect("setup-completed.jsp");
return;
}
%>
<%
// Get parameters
boolean next = request.getParameter("continue") != null;
if (next) {
// Redirect
response.sendRedirect("setup-admin-settings.jsp");
return;
}
%>
<html>
<head>
<title>Profile Settings - Directory Server</title>
<meta name="currentStep" content="3"/>
</head>
<style type="text/css" title="setupStyle" media="screen">
@import "../style/lightbox.css";
</style>
<body>
<script language="JavaScript" type="text/javascript" src="../js/prototype.js"></script>
<script language="JavaScript" type="text/javascript" src="../js/scriptaculous.js"></script>
<script language="JavaScript" type="text/javascript" src="../js/lightbox.js"></script>
<script language="javascript" type="text/javascript" src="../js/tooltips/domLib.js"></script>
<script language="javascript" type="text/javascript" src="../js/tooltips/domTT.js"></script>
<script language="javascript" type="text/javascript">
/*
togglePanel function
This is for showing and hiding the advanced options panel.
This toggles toggles an individual panel (slides up and down).
*/
function togglePanel(thisID) {
activeLink = thisID.id+"Link";
if ($(thisID).style.display != 'none') {
Effect.toggle($(thisID),'slide', {duration: .4});
$(activeLink).className = "";
} else {
Effect.toggle($(thisID),'slide', {duration: .4});
$(activeLink).className = "jiveAdvancedButtonOn";
}
}
</script>
<h1>Profile Settings <span>- Group Mapping</span></h1>
<p>Configure group mapping and finish the directory server profile integration setup.</p>
<!-- BEGIN jive-contentBox_stepbar -->
<div id="jive-contentBox_stepbar">
<span class="jive-stepbar_step">1. Connection Settings</span>
<span class="jive-stepbar_step">2. User Mapping</span>
<span class="jive-stepbar_step"><strong>3. Group Mapping</strong></span>
</div>
<!-- END jive-contentBox-stepbar -->
<!-- BEGIN jive-contentBox -->
<div class="jive-contentBox jive-contentBox_for-stepbar">
<h2>Step 3 of 3: <span>Group Mapping</span></h2>
<p>A sentance detailing the setup options below. Also, noting that all fields are <strong>optional</strong>. Lorem ipsum dolor siet amet. Also mention the help tooltip rollovers.</p>
<form action="" method="get">
<!-- BEGIN jive-contentBox_bluebox -->
<div class="jive-contentBox_bluebox">
<table border="0" cellpadding="0" cellspacing="2">
<tr>
<td colspan="2"><strong>Group Mapping</strong></td>
</tr>
<tr>
<td align="right">Name:</td>
<td><input type="text" name="groupname" value="cn" id="jiveLDAPgroupname" size="22" maxlength="30"><span class="jive-setup-helpicon"><a href="" onmouseover="domTT_activate(this, event, 'content', 'The field name that the groupname lookups will be performed on. If this property is not set, the default value is <b>cn</b>.', 'styleClass', 'jiveTooltip', 'trail', true, 'delay', 300, 'lifetime', 8000);"></a></span></td>
</tr>
<tr>
<td align="right">Member:</td>
<td><input type="text" name="groupmember" value="member" id="jiveLDAPgroupmember" size="22" maxlength="30"><span class="jive-setup-helpicon"><a href="" onmouseover="domTT_activate(this, event, 'content', 'The field name that holds the members in a group. If this property is not set, the default value is <b>member</b>.', 'styleClass', 'jiveTooltip', 'trail', true, 'delay', 300, 'lifetime', 8000);"></a></span></td>
</tr>
<tr>
<td align="right">Description:</td>
<td><input type="text" name="groupdesc" value="description" id="jiveLDAPgroupdesc" size="22" maxlength="30"><span class="jive-setup-helpicon"><a href="" onmouseover="domTT_activate(this, event, 'content', 'The field name that holds the description a group. If this property is not set, the default value is <b>description</b>.', 'styleClass', 'jiveTooltip', 'trail', true, 'delay', 300, 'lifetime', 8000);"></a></span></td>
</tr>
</table>
<!-- BEGIN jiveAdvancedButton -->
<div class="jiveAdvancedButton jiveAdvancedButtonTopPad">
<a href="#" onclick="togglePanel(jiveAdvanced); return false;" id="jiveAdvancedLink">Advanced Settings</a>
</div>
<!-- END jiveAdvancedButton -->
<!-- BEGIN jiveAdvancedPanelu (advanced user mapping settings) -->
<div class="jiveadvancedPanelu" id="jiveAdvanced" style="display: none;">
<div>
<table border="0" cellpadding="0" cellspacing="2">
<tr>
<td align="right">Posix Mode:</td>
<td><span style="float: left;">
<label for="posix1"><input type="radio" name="posix" value="yes" style="float: none;" id="posix1"> Yes </label>
<label for="posix2"><input type="radio" name="posix" value="no" style="float: none;" id="posix2" checked> No </label>
</span>
<span class="jive-setup-helpicon"><a href="" onmouseover="domTT_activate(this, event, 'content', 'A value of &quot;true&quot; means that users are stored within the group by their user name alone. A value of &quot;false&quot; means that users are stored by their entire DN within the group. If this property is not set, the default value is <b>false</b>. The posix mode must be set correctly for your server in order for group integration to work.', 'styleClass', 'jiveTooltip', 'trail', true, 'delay', 300, 'lifetime', 10000);"></a></span></td>
</tr>
<tr>
<td align="right">Search Filter:</td>
<td><input type="text" name="gropusearchfilter" value="ldap.groupNameField={0}" id="jiveLDAPgroupsearchfilter" size="22" maxlength="30"><span class="jive-setup-helpicon"><a href="" onmouseover="domTT_activate(this, event, 'content', 'An optional search filter to append to the default filter when loading groups. The default group search filter is created using the attribute specified by ldap.groupNameField. For example, if the group name field is &quot;cn&quot;, then the default group search filter would be &quot;(cn={0})&quot; where {0} is dynamically replaced with the group name being searched for.', 'styleClass', 'jiveTooltip', 'trail', true, 'delay', 300, 'lifetime', 10000);"></a></span></td>
</tr>
</table>
</div>
</div>
<!-- END jiveAdvancedPanelu (advanced user mapping settings) -->
</div>
<!-- END jive-contentBox_bluebox -->
<!-- BEGIN jive-buttons -->
<div class="jive-buttons">
<!-- BEGIN left-aligned buttons -->
<div align="left" style="float: left;">
<input type="Submit" name="back" value="Back" id="jive-setup-back" border="0">
</div>
<!-- END left-aligned buttons -->
<!-- BEGIN right-aligned buttons -->
<div align="right">
<a href="setup-ldap-group_test.jsp" class="lbOn" id="jive-setup-test2">
<img src="../images/setup_btn_gearplay.gif" alt="" width="14" height="14" border="0">
Test Settings
</a>
<input type="Submit" name="save" value="Save & Continue" id="jive-setup-save" border="0">
</div>
<!-- END right-aligned buttons -->
</div>
<!-- END jive-buttons -->
</form>
</div>
<!-- END jive-contentBox -->
</body>
</html>
<html>
<head>
<meta name="decorator" content="none"/>
</head>
<body>
<!-- BEGIN connection settings test panel -->
<div class="jive-testPanel">
<div class="jive-testPanel-content">
<div align="right" class="jive-testPanel-close">
<a href="#" class="lbAction" rel="deactivate">Close</a>
</div>
<h2>Test: <span>Group Mapping</span></h2>
<h4 class="jive-testSuccess">Success!</h4>
<!-- <h4 class="jive-testError">Error</h4> -->
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque varius venenatis metus. Fusce porta, ligula non viverra molestie, ante turpis hendrerit augue, ac pretium turpis augue et diam. Nulla volutpat elementum nisi. Proin non nisl id quam condimentum iaculis.</p>
</div>
</div>
</body>
</html>
This diff is collapsed.
<html>
<head>
<meta name="decorator" content="none"/>
</head>
<body>
<style type="text/css">
#lightbox{
top: 20%;
margin-top: -20px;
}
.jive-testPanel {
margin-top: -100px;
}
html>body .jive-testPanel {
margin-top: 0px;
}
</style>
<!-- BEGIN connection settings test panel -->
<div class="jive-testPanel">
<div class="jive-testPanel-content">
<div align="right" class="jive-testPanel-close">
<a href="#" class="lbAction" rel="deactivate">Close</a>
</div>
<h2>Test: <span>User Mapping</span></h2>
<!--<h4 class="jive-testSuccess">Success!</h4>-->
<!-- <h4 class="jive-testError">Error</h4> -->
<p>A random profile is selected for you to review. Errors in the profile values appear in red. To view another profile click 'Next ramdom profile'. When you are finished close this window.</p>
<div class="jive-testpanel-vcard">
<table width="331" border="0" cellpadding="0" cellspacing="1" class="jive-testTable-vcard" style="margin-right: 5px;">
<tr>
<td colspan="2" class="jive-testpanel-vcard-header">Personal</td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label" width="20%">Full Name:</td>
<td class="jive-testpanel-vcard-value">Sgt. Poopypants</td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label">Email Address:</td>
<td class="jive-testpanel-vcard-value"><a href="#">poopypants@globalmegacorp.net</a></td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label">Nickname:</td>
<td class="jive-testpanel-vcard-value">poopypants</td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label">Date of Birth:</td>
<td class="jive-testpanel-vcard-value">January 1, 1970</td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td colspan="2" class="jive-testpanel-vcard-header">Home</td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label">Street Address:</td>
<td class="jive-testpanel-vcard-value">79549 NW Narup Rd</td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label">City:</td>
<td class="jive-testpanel-vcard-value">Banks</td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label">State/Province:</td>
<td class="jive-testpanel-vcard-value">OR</td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label">Postal Code:</td>
<td class="jive-testpanel-vcard-value">97106</td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label">Country:</td>
<td class="jive-testpanel-vcard-value">USA</td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label">Phone:</td>
<td class="jive-testpanel-vcard-value">503-324-5151</td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label">Mobile:</td>
<td class="jive-testpanel-vcard-value"></td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label">Fax:</td>
<td class="jive-testpanel-vcard-value"><strong>error mapping field</strong></td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label">Pager:</td>
<td class="jive-testpanel-vcard-value"></td>
</tr>
</table>
<table width="331" border="0" cellpadding="0" cellspacing="1" class="jive-testTable-vcard">
<tr>
<td colspan="2" class="jive-testpanel-vcard-header">Business</td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label" width="20%">Street Address:</td>
<td class="jive-testpanel-vcard-value">49823 Martinazzi Avenue Suite 523</td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label">City:</td>
<td class="jive-testpanel-vcard-value">Beverly Hills</td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label">State/Province:</td>
<td class="jive-testpanel-vcard-value">CA</td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label">Postal Code:</td>
<td class="jive-testpanel-vcard-value">90210</td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label">Country:</td>
<td class="jive-testpanel-vcard-value">USA</td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label">Job Title:</td>
<td class="jive-testpanel-vcard-value">Regional Sales Manager Person</td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label">Department:</td>
<td class="jive-testpanel-vcard-value">Sales</td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label">Phone:</td>
<td class="jive-testpanel-vcard-value">123-456-7890</td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label">Mobile:</td>
<td class="jive-testpanel-vcard-value">321-654-0987</td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label">Fax:</td>
<td class="jive-testpanel-vcard-value"></td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label">Pager:</td>
<td class="jive-testpanel-vcard-value"></td>
</tr>
<tr>
<td class="jive-testpanel-vcard-label">Web Page:</td>
<td class="jive-testpanel-vcard-value"><a href="#">http://www.globalmegacorp.net</a></td>
</tr>
<tr>
<td colspan="2" class="jive-testpanel-vcard-next">
<a href="#">Next random profile</a>
</td>
</tr>
</table>
</div>
</div>
</div>
</body>
</html>
......@@ -205,7 +205,27 @@ form {
padding: 12px;
}
.jive-contentBox_bluebox strong {
display: block;
position: relative;
color: #09345b;
padding-bottom: 3px;
}
/* grey div container (seen on the LDAP screens) */
.jive-contentBox_greybox {
display: block;
position: relative;
border: 1px solid #dcdcdc;
background-color: #ececec;
-moz-border-radius: 3px;
margin: 0px 0px 12px 0px;
padding: 12px;
}
.jive-contentBox_greybox strong {
display: block;
position: relative;
color: #09345b;
padding-bottom: 3px;
}
/* form elements for LDAP */
......@@ -222,9 +242,19 @@ form {
width: 270px;
}
.jive-contentBox td input#jiveLDAPhost,
.jive-contentBox td input#jiveLDAPadminpwd {
.jive-contentBox td input#jiveLDAPadminpwd,
.jive-contentBox td input#jiveLDAPusername,
.jive-contentBox td input#jiveLDAPsearchfields,
.jive-contentBox td input#jiveLDAPsearchfilter,
.jive-contentBox td input#jiveLDAPgroupname,
.jive-contentBox td input#jiveLDAPgroupmember,
.jive-contentBox td input#jiveLDAPgroupdesc,
.jive-contentBox td input#jiveLDAPgroupsearchfilter{
width: 160px;
}
.jive-contentBox td label {
margin-right: 5px;
}
/* button to toggle the advanced settings panel */
......@@ -246,6 +276,9 @@ a.jiveAdvancedButtonOn {
background: transparent url('../images/twisty_opened_9x9.gif') no-repeat left;
background-position: 1px;
}
.jiveAdvancedButtonTopPad {
margin-top: 7px;
}
/* advanced settings panel (for Connection Settings) */
.jiveadvancedPanelcs {
display: block;
......@@ -262,7 +295,6 @@ a.jiveAdvancedButtonOn {
margin: 12px;
}
.jiveadvancedPanelcs div table {
background-color: #fff;
border: 1px solid #ccc;
}
......@@ -271,7 +303,8 @@ a.jiveAdvancedButtonOn {
font-size: 11px;
padding: 3px 5px 3px 5px;
}
.jiveadvancedPanelcs div table th {
.jiveadvancedPanelcs div table th,
.jive-vcardTable th {
color: #fff;
font-weight: bold;
background-color: #82a1bc;
......@@ -291,14 +324,48 @@ a.jiveAdvancedButtonOn {
.jiveadvancedPanelcs div table td input {
float: none;
}
.jiveadvancedPanelcs div table td.jive-advancedBorderBottom {
.jiveadvancedPanelcs div table td.jive-advancedBorderBottom,
.jive-vcardTable td.jive-vardBorderBottom {
border-bottom: 1px solid #e8e8e8;
}
.jiveadvancedPanelcs div table td.jive-advancedBorderRight {
.jiveadvancedPanelcs div table td.jive-advancedBorderRight,
.jive-vcardTable td.jive-vardBorderRight {
border-right: 1px solid #e8e8e8;
}
.jiveadvancedPanelu {
margin-top: 8px;
background-color: #fafafa;
border: 1px solid #dcdcdc;
-moz-border-radius: 3px;
padding: 8px;
}
.jiveadvancedPanelu td {
white-space: nowrap;
}
.jive-vcardTable {
width: 90%;
background-color: #fff;
border: 1px solid #ccc;
}
html>body .jive-vcardTable {
width: 100%;
}
.jive-vcardTable th,
.jive-vcardTable td {
font-size: 11px;
padding: 2px 5px 2px 5px;
}
.jive-vcardTable th {
text-align: left;
}
.jive-vcardTable td.jive-vcardTable-label,
.jive-vcardTable td.jive-vcardTable-label strong {
color: #333;
}
.jive-vcardTable td.jive-vcardTable-value input {
font-size: 10px;
width: 230px;
}
/* language selection specific styles */
#jive-setup-language {
......@@ -492,6 +559,56 @@ div.jiveTooltip .contents {
.jive-testPanel-content h4.jive-testError {
color: #890000;
}
.jive-testpanel-vcard {
display: block;
float: left;
width: 682px;
border: 1px solid #d8d7c6;
padding: 4px;
background-color: #fff;
}
.jive-testTable-vcard {
float: left;
}
.jive-testpanel-vcard-header {
border: 1px solid #dddddd;
background-color: #eaeaea;
font-weight: bold;
padding: 1px 2px 1px 4px;
font-size: 8pt;
}
.jive-testpanel-vcard-label {
text-align: right;
padding: 1px 2px 1px 6px;
color: #666;
font-size: 8pt;
}
.jive-testpanel-vcard-value {
text-align: left;
padding: 1px 8px 1px 2px;
font-size: 8pt;
}
.jive-testpanel-vcard-value a {
color: #34679a;
}
.jive-testpanel-vcard-value strong {
color: #890000;
}
.jive-testpanel-vcard-next {
text-align: right;
padding-top: 12px;
}
.jive-testpanel-vcard-next a {
display: block;
float: right;
font-weight: bold;
padding-right: 18px;
margin-right: 4px;
background: transparent url(../images/setup_nextprofile.gif) no-repeat right;
color: #34679a;
text-decoration: none;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment