Monotone-Parent: c61109eb28c9671d365c0b308b3db5532b7b6d96
Monotone-Revision: 18c6beb6dfc5244421f4f5a55c6a869b498d86a6 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-07-22T20:17:34 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
7a99dbe7d8
commit
d3966c8e57
|
@ -1,5 +1,11 @@
|
||||||
2007-07-22 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
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]):
|
* UI/MainUI/SOGoUserHomePage.m ([SOGoUserHomePage +initialize]):
|
||||||
scan the value of SOGoUIxDefaultModule. If not set, the default
|
scan the value of SOGoUIxDefaultModule. If not set, the default
|
||||||
module defaults to "Calendar".
|
module defaults to "Calendar".
|
||||||
|
|
2
NEWS
2
NEWS
|
@ -2,6 +2,8 @@
|
||||||
--------------
|
--------------
|
||||||
- added the ability to choose the default module from the
|
- added the ability to choose the default module from the
|
||||||
application settings: "Calendars", "Contacts" or "Mail";
|
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
|
0.9.0-20070713
|
||||||
--------------
|
--------------
|
||||||
|
|
|
@ -40,8 +40,19 @@
|
||||||
workweek = from -> to
|
workweek = from -> to
|
||||||
identities */
|
identities */
|
||||||
|
|
||||||
|
static BOOL shouldDisplayPasswordChange = NO;
|
||||||
|
|
||||||
@implementation UIxPreferences
|
@implementation UIxPreferences
|
||||||
|
|
||||||
|
+ (void) initialize
|
||||||
|
{
|
||||||
|
NSUserDefaults *ud;
|
||||||
|
|
||||||
|
ud = [NSUserDefaults standardUserDefaults];
|
||||||
|
shouldDisplayPasswordChange
|
||||||
|
= [ud boolForKey: @"SOGoUIxUserCanChangePassword"];
|
||||||
|
}
|
||||||
|
|
||||||
- (id) init
|
- (id) init
|
||||||
{
|
{
|
||||||
NSDictionary *locale;
|
NSDictionary *locale;
|
||||||
|
@ -426,4 +437,9 @@
|
||||||
return [[request method] isEqualToString: @"POST"];
|
return [[request method] isEqualToString: @"POST"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (BOOL) shouldDisplayPasswordChange
|
||||||
|
{
|
||||||
|
return shouldDisplayPasswordChange;
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -19,7 +19,9 @@
|
||||||
label:value="Date and Time"/></li>
|
label:value="Date and Time"/></li>
|
||||||
<li target="calendarOptionsView"><var:string
|
<li target="calendarOptionsView"><var:string
|
||||||
label:value="Calendar Options"/></li>
|
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>
|
</ul>
|
||||||
<div id="outOfOfficeView" class="tab">
|
<div id="outOfOfficeView" class="tab">
|
||||||
<label><input
|
<label><input
|
||||||
|
@ -87,18 +89,20 @@
|
||||||
<var:popup list="reminderTimesList" item="item"
|
<var:popup list="reminderTimesList" item="item"
|
||||||
string="itemReminderTimeText" selection="userReminderTime"/></label>
|
string="itemReminderTimeText" selection="userReminderTime"/></label>
|
||||||
</div>
|
</div>
|
||||||
<div id="passwordView" class="tab">
|
<var:if condition="shouldDisplayPasswordChange">
|
||||||
<label><var:string label:value="New password:"
|
<div id="passwordView" class="tab">
|
||||||
/><input type="text" class="textField"
|
<label><var:string label:value="New password:"
|
||||||
const:enabled="disabled"
|
/><input type="text" class="textField"
|
||||||
var:value="newPassword"/></label><br/>
|
const:enabled="disabled"
|
||||||
<label><var:string label:value="Confirmation:"
|
var:value="newPassword"/></label><br/>
|
||||||
/><input type="text" class="textField"
|
<label><var:string label:value="Confirmation:"
|
||||||
const:enabled="disabled"
|
/><input type="text" class="textField"
|
||||||
var:value="newPasswordConfirmation"/></label><br/>
|
const:enabled="disabled"
|
||||||
<input type="button" class="button"
|
var:value="newPasswordConfirmation"/></label><br/>
|
||||||
id="changePasswordBtn" label:value="Change"/>
|
<input type="button" class="button"
|
||||||
</div>
|
id="changePasswordBtn" label:value="Change"/>
|
||||||
|
</div>
|
||||||
|
</var:if>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</var:component>
|
</var:component>
|
||||||
|
|
Loading…
Reference in New Issue