Monotone-Parent: c61109eb28c9671d365c0b308b3db5532b7b6d96

Monotone-Revision: 18c6beb6dfc5244421f4f5a55c6a869b498d86a6

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-07-22T20:17:34
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2007-07-22 20:17:34 +00:00
parent 7a99dbe7d8
commit d3966c8e57
4 changed files with 41 additions and 13 deletions

View File

@ -1,5 +1,11 @@
2007-07-22 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/PreferencesUI/UIxPreferences.m ([UIxPreferences
+initialize]): scan the value of SOGoUIxUserCanChangePassword.
Default is "no".
([UIxPreferences -shouldDisplayPasswordChange]): new template
method that returns the value of SOGoUIxUserCanChangePassword.
* UI/MainUI/SOGoUserHomePage.m ([SOGoUserHomePage +initialize]):
scan the value of SOGoUIxDefaultModule. If not set, the default
module defaults to "Calendar".

2
NEWS
View File

@ -2,6 +2,8 @@
--------------
- added the ability to choose the default module from the
application settings: "Calendars", "Contacts" or "Mail";
- added the ability to show or hide the password change dialog from the
application settings;
0.9.0-20070713
--------------

View File

@ -40,8 +40,19 @@
workweek = from -> to
identities */
static BOOL shouldDisplayPasswordChange = NO;
@implementation UIxPreferences
+ (void) initialize
{
NSUserDefaults *ud;
ud = [NSUserDefaults standardUserDefaults];
shouldDisplayPasswordChange
= [ud boolForKey: @"SOGoUIxUserCanChangePassword"];
}
- (id) init
{
NSDictionary *locale;
@ -426,4 +437,9 @@
return [[request method] isEqualToString: @"POST"];
}
- (BOOL) shouldDisplayPasswordChange
{
return shouldDisplayPasswordChange;
}
@end

View File

@ -19,7 +19,9 @@
label:value="Date and Time"/></li>
<li target="calendarOptionsView"><var:string
label:value="Calendar Options"/></li>
<li target="passwordView"><var:string label:value="Password"/></li>
<var:if condition="shouldDisplayPasswordChange">
<li target="passwordView"><var:string label:value="Password"/></li>
</var:if>
</ul>
<div id="outOfOfficeView" class="tab">
<label><input
@ -87,18 +89,20 @@
<var:popup list="reminderTimesList" item="item"
string="itemReminderTimeText" selection="userReminderTime"/></label>
</div>
<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 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>
</div>
</form>
</var:component>