mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-28 09:53:23 +00:00
Monotone-Parent: c61109eb28c9671d365c0b308b3db5532b7b6d96
Monotone-Revision: 18c6beb6dfc5244421f4f5a55c6a869b498d86a6 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-07-22T20:17:34 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user