sogo/UI/Templates/PreferencesUI/UIxPreferences.wox
C Robert aee8aa1f5e Small fixes after tests
Monotone-Parent: b1fac1b458b718d0b80ecc77aa59220107cd9ef8
Monotone-Revision: 01bf1d89cd94ea18b92612c7cdf2f88d80cd7d93

Monotone-Author: crobert@inverse.ca
Monotone-Date: 2009-07-16T17:21:25
Monotone-Branch: ca.inverse.sogo
2009-07-16 17:21:25 +00:00

203 lines
8.4 KiB
XML

<?xml version="1.0" standalone="yes"?>
<!DOCTYPE var:component>
<var:component
xmlns="http://www.w3.org/1999/xhtml"
xmlns:var="http://www.skyrix.com/od/binding"
xmlns:const="http://www.skyrix.com/od/constant"
xmlns:uix="OGo:uix"
xmlns:rsrc="OGo:url"
xmlns:label="OGo:label"
className="UIxPageFrame"
title="title"
const:popup="YES"
const:jsFiles="ckeditor/ckeditor.js"
>
<form id="mainForm" var:href="ownPath">
<div class="tabsContainer" id="preferencesTabs">
<ul>
<li target="generalView"><var:string
label:value="General"/></li>
<var:if condition="userHasCalendarAccess">
<li target="calendarOptionsView"><var:string
label:value="Calendar Options"/></li>
</var:if>
<var:if condition="userHasMailAccess">
<li target="mailOptionsView"><var:string
label:value="Mail Options"/></li>
<li target="identitiesView"><var:string
label:value="Signature"/></li>
</var:if>
<var:if condition="shouldDisplayAdditionalPreferences">
<li target="additionalView"><var:string label:value="Additional Parameters"/></li>
</var:if>
<!-- <var:if condition="shouldDisplayPasswordChange"> -->
<!-- <li target="passwordView"><var:string label:value="Password"/></li> -->
<!-- </var:if> -->
</ul>
<div id="generalView" class="tab">
<label><var:string label:value="Current Time Zone :"/>
<var:popup list="timeZonesList" item="item"
const:id="timezone"
string="item" selection="userTimeZone" /></label><br/>
<br/>
<div id="dateTimeFormat">
<label><var:string label:value="Short Date Format :"/>
<var:popup list="shortDateFormatsList" item="item"
const:id="shortDateFormat"
string="itemShortDateFormatText" selection="userShortDateFormat"
/></label><br/>
<label><var:string label:value="Long Date Format :"/>
<var:popup list="longDateFormatsList" item="item"
const:id="longDateFormat"
string="itemLongDateFormatText" selection="userLongDateFormat"
/></label><br/>
<label><var:string label:value="Time Format :"/>
<var:popup list="timeFormatsList" item="item"
const:id="timeFormat"
string="itemTimeFormatText" selection="userTimeFormat"
/></label>
</div>
</div>
<var:if condition="userHasCalendarAccess">
<div id="calendarOptionsView" class="tab">
<label><var:string label:value="Week begins on :"/>
<var:popup list="daysList" item="item"
const:id="weekStartDay"
string="itemWeekStartDay" selection="userWeekStartDay"
/></label><br/>
<label><var:string label:value="Day start time :"/>
<var:popup list="hoursList" item="item"
const:id="dayStartTime"
string="item" selection="userDayStartTime"
/></label>
<label><var:string label:value="Day end time :"/>
<var:popup list="hoursList" item="item"
const:id="dayEndTime"
string="item" selection="userDayEndTime"
/></label><br/>
<label><var:string label:value="First week of year :"/>
<var:popup list="firstWeekList" item="item"
const:id="firstWeek"
string="itemFirstWeekText" selection="userFirstWeek"
/></label><br/>
<label><var:string label:value="Categories"/></label><br/>
<div id="categoriesListWrapper"
><table id="categoriesList" cellspacing="0">
<thead>
<tr class="tableview"
><td const:class="tbtv_headercell" const:id="nameTableHeader"
><var:string var:value="nameLabel" /></td
><td const:class="tbtv_headercell" const:width="20%" const:id="colorTableHeader"
><var:string var:value="colorLabel" /></td
></tr
></thead>
<tbody>
<var:foreach list="categories" item="category">
<tr const:class="categoryListRow"
><td const:class="categoryListCell"
><var:string var:value="category.name"/></td
><td const:class="categoryListCell"
><div const:class="colorBox"><var:string var:value="category.color"
/></div></td
></tr>
</var:foreach>
</tbody>
</table></div>
<input type="hidden" const:id="categoriesValue"
const:name="categoriesValue" var:value="categoriesValue"/>
<br/>
<label><input type="button" class="button"
id="categoryAdd" label:value="Add"/></label>
<label><input type="button" class="button"
id="categoryDelete" label:value="Delete"/></label>
<!-- <br/> -->
<!-- <label><input class="checkBox" -->
<!-- type="checkbox" var:selection="reminderEnabled" -->
<!-- var:checked="reminderEnabled"/><var:string -->
<!-- label:value="Enable reminders for Calendar items"/></label><br/> -->
<!-- <label><input class="checkBox" -->
<!-- type="checkbox" var:selection="remindWithASound" -->
<!-- var:checked="remindWithASound"/><var:string -->
<!-- label:value="Play a sound when a reminder comes due"/></label><br/> -->
<!-- <label><var:string label:value="Default reminder :"/> -->
<!-- <var:popup list="reminderTimesList" item="item" -->
<!-- string="itemReminderTimeText" selection="userReminderTime"/></label> -->
</div>
</var:if>
<var:if condition="userHasMailAccess">
<div id="mailOptionsView" class="tab">
<label><input type="checkbox"
const:name="subscribedFoldersOnly"
const:id="subscribedFoldersOnly"
var:checked="showSubscribedFoldersOnly" />
<var:string label:value="Show subscribed mailboxes only"/></label><br/>
<label><var:string label:value="Check for new mail:"/>
<var:popup list="messageCheckList" item="item"
const:id="messageCheck"
string="itemMessageCheckText" selection="userMessageCheck"/></label><br/>
<label><var:string label:value="Forward messages:"/>
<var:popup list="messageForwardingList" item="item"
const:id="messageForwarding"
string="itemMessageForwardingText"
selection="userMessageForwarding"/></label><br/>
<var:popup list="replyPlacementList" item="item"
const:id="replyPlacementList"
string="itemReplyPlacementText"
selection="userReplyPlacement"/>
<br /><label><var:string label:value="And place my signature"/></label>
<var:popup list="signaturePlacementList" item="item"
const:id="signaturePlacementList"
string="itemSignaturePlacementText"
selection="userSignaturePlacement"/>
<br /><label><var:string label:value="Compose messages in"/></label>
<var:popup list="composeMessagesType" item="item"
const:id="composeMessagesType"
string="itemComposeMessagesText"
selection="userComposeMessagesType"/>
<!-- <label><input
const:name="inTheOffice" type="radio" const:value="YES"
var:selection="inTheOffice"/>
<var:string label:value="I'm currently in the office"/></label><br/>
<label><input
const:name="inTheOffice" type="radio" const:value="NO"
var:selection="inTheOffice"/>
<var:string label:value="I'm currently out of the office"/></label><br/>
<br/>
<div id="outOfOfficeMessage">
<label><var:string label:value="AutoReply only once to each sender with the following text :"/><br/>
<textarea const:name="autoReplyText" var:value="autoReplyText"/>
</label> -->
</div>
<div id="identitiesView" class="tab">
<!--<var:multiselection const:id="identitiesList" item="item"
list="identitiesList" displayString="itemIdentityText">
</var:multiselection>
<br/>-->
<textarea const:id="signature" const:name="signature"
var:value="signature" />
</div>
</var:if>
<var:if condition="shouldDisplayAdditionalPreferences"
><div id="additionalView" class="tab">
<var:component className="UIxAdditionalPreferences"/>
</div></var:if>
<!-- <var:if condition="shouldDisplayPasswordChange"> -->
<!-- <div id="passwordView" class="tab"> -->
<!-- <label><var:string label:value="New password:" -->
<!-- /><input type="text" class="textField" -->
<!-- const:enabled="disabled" -->
<!-- var:value="newPassword"/></label><br/> -->
<!-- <label><var:string label:value="Confirmation:" -->
<!-- /><input type="text" class="textField" -->
<!-- const:enabled="disabled" -->
<!-- var:value="newPasswordConfirmation"/></label><br/> -->
<!-- <input type="button" class="button" -->
<!-- id="changePasswordBtn" label:value="Change"/> -->
<!-- </div> -->
<!-- </var:if> -->
<input type="hidden" id="hasChanged" name="hasChanged"
var:value="hasChanged"/>
</div>
</form>
</var:component>