Monotone-Parent: 306c67aefff450c0e8aa8363864e5f6c435a0b84

Monotone-Revision: 51512f2a3102841c13942d3e4e41185e38cd9b5d

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-04-13T14:18:27
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau 2010-04-13 14:18:27 +00:00
parent 0c7a54bb51
commit 62bc1e01f6
4 changed files with 69 additions and 51 deletions

View file

@ -1,3 +1,8 @@
2010-04-13 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/WebServerResources/UIxContactEditor.js (initEditorForm): we
need to instantiate a tabs controller here too.
2010-04-12 Wolfgang Sourdeau <wsourdeau@inverse.ca> 2010-04-12 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoProxyAuthenticator.m (-passwordInContext:): * SoObjects/SOGo/SOGoProxyAuthenticator.m (-passwordInContext:):

View file

@ -1,37 +1,38 @@
<?xml version='1.0' standalone='yes'?> <?xml version='1.0' standalone='yes'?>
<var:component <!DOCTYPE var:component>
xmlns="http://www.w3.org/1999/xhtml" <var:component
xmlns:var="http://www.skyrix.com/od/binding" xmlns="http://www.w3.org/1999/xhtml"
xmlns:const="http://www.skyrix.com/od/constant" xmlns:var="http://www.skyrix.com/od/binding"
xmlns:uix="OGo:uix" xmlns:const="http://www.skyrix.com/od/constant"
xmlns:label="OGo:label" xmlns:uix="OGo:uix"
className="UIxPageFrame" xmlns:label="OGo:label"
title="name" className="UIxPageFrame"
const:popup="YES" title="name"
> const:popup="YES"
<form var:href="saveURL" name="editform" id="mainForm"> >
<form var:href="saveURL" name="editform" id="mainForm">
<var:if condition="isNew"><div id="addressBookSelector"> <var:if condition="isNew"><div id="addressBookSelector">
<style type="text/css">DIV#editorTabs { top: 4.5em; };</style> <style type="text/css">DIV#editorTabs { top: 30px; };</style>
<var:string label:value="Add to:" /> <var:string label:value="Add to:" />
<var:popup const:id="addressBooksList" <var:popup const:id="addressBooksList"
list="addressBooksList" item="addressBookItem" list="addressBooksList" item="addressBookItem"
string="addressBookDisplayName" string="addressBookDisplayName"
var:selection="componentAddressBook" var:selection="componentAddressBook"
/> />
</div></var:if> </div></var:if>
<div class="tabsContainer" id="editorTabs"> <div class="tabsContainer" id="editorTabs">
<ul> <ul>
<li target="baseInfos"> <li target="baseInfos">
<span><var:string label:value="Contact" /></span> <span><var:string label:value="Contact" /></span>
</li> </li>
<li target="addressesInfos"> <li target="addressesInfos">
<span><var:string label:value="Address" /></span></li> <span><var:string label:value="Address" /></span></li>
<li target="otherInfos"> <li target="otherInfos">
<span><var:string label:value="Other" /></span></li> <span><var:string label:value="Other" /></span></li>
</ul> </ul>
<div class="tabs">
<div id="baseInfos" class="tab"> <div id="baseInfos" class="tab">
<span class="caption"><var:string label:value="Name" /></span> <span class="caption"><var:string label:value="Name" /></span>
<table class="frame"> <table class="frame">
@ -90,7 +91,7 @@
<tr> <tr>
<td> <td>
<label><var:string label:value="Screen Name:" <label><var:string label:value="Screen Name:"
/> />
<input type="text" class="textField" name="screenName" <input type="text" class="textField" name="screenName"
id="screenName" var:value="snapshot.screenName" /> id="screenName" var:value="snapshot.screenName" />
</label> </label>
@ -99,16 +100,16 @@
<tr> <tr>
<td id="htmlMailFormat"> <td id="htmlMailFormat">
<label><var:string <label><var:string
label:value="Prefers to receive messages formatted as:" /> label:value="Prefers to receive messages formatted as:" />
<var:popup list="htmlMailFormatList" item="item" <var:popup list="htmlMailFormatList" item="item"
label:noSelectionString="htmlMailFormat_UNKNOWN" label:noSelectionString="htmlMailFormat_UNKNOWN"
string="itemHtmlMailFormatText" string="itemHtmlMailFormatText"
selection="snapshot.mozillaUseHtmlMail" selection="snapshot.mozillaUseHtmlMail"
/> />
</label> </label>
</td> </td>
</tr> </tr>
</table> </table>
<span class="caption"><var:string label:value="Phones" /></span> <span class="caption"><var:string label:value="Phones" /></span>
<table class="frame"> <table class="frame">
<tr> <tr>
@ -169,7 +170,7 @@
</div> </div>
<div id="addressesInfos" class="tab"> <div id="addressesInfos" class="tab">
<span class="caption"><var:string label:value="Home" /></span> <span class="caption"><var:string label:value="Home" /></span>
<table class="frame"> <table class="frame">
<tr> <tr>
<td colspan="2"> <td colspan="2">
@ -347,14 +348,15 @@
</table> </table>
</div> </div>
</div> </div>
<div id="buttons"> </div>
<var:if condition="canCreateOrModify" <div id="buttons">
><a class="button actionButton" name="submit" id="submitButton"> <var:if condition="canCreateOrModify"
<span><var:string label:value="Save" /></span> ><a class="button actionButton" name="submit" id="submitButton">
</a></var:if> <span><var:string label:value="Save" /></span>
<a id="cancelButton" class="button" name="cancel"> </a></var:if>
<span><var:string label:value="Cancel"/></span> <a id="cancelButton" class="button" name="cancel">
</a> <span><var:string label:value="Cancel"/></span>
</div> </a>
</form> </div>
</var:component> </form>
</var:component>

View file

@ -18,6 +18,12 @@ TR
{ width: 100% !important; { width: 100% !important;
border: 2px solid #0ff; } border: 2px solid #0ff; }
DIV#editorTabs
{ position: absolute;
left: 5px;
right: 5px;
bottom: 40px; }
DIV#editorTabs DIV.tab TD.titleCell DIV#editorTabs DIV.tab TD.titleCell
{ text-align: left; { text-align: left;
font-weight: bold; } font-weight: bold; }

View file

@ -1,7 +1,8 @@
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* -*- Mode: java; tab-width: 2; c-label-minimum-indentation: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* /*
Copyright (C) 2005 SKYRIX Software AG Copyright (C) 2005 SKYRIX Software AG
Copyright (C) 2006-2010 Inverse
This file is part of OpenGroupware.org. This file is part of OpenGroupware.org.
@ -138,6 +139,10 @@ function onEditorSubmitClick(event) {
} }
function initEditorForm() { function initEditorForm() {
var tabsContainer = $("editorTabs");
var controller = new SOGoTabsController();
controller.attachToTabsContainer(tabsContainer);
displayNameChanged = ($("fn").value.length > 0); displayNameChanged = ($("fn").value.length > 0);
$("fn").onkeydown = onFnKeyDown; $("fn").onkeydown = onFnKeyDown;
$("sn").onkeyup = onFnNewValue; $("sn").onkeyup = onFnNewValue;