summaryrefslogtreecommitdiff
path: root/app/php/components/PasswordChange.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'app/php/components/PasswordChange.tpl')
-rw-r--r--app/php/components/PasswordChange.tpl52
1 files changed, 52 insertions, 0 deletions
diff --git a/app/php/components/PasswordChange.tpl b/app/php/components/PasswordChange.tpl
new file mode 100644
index 0000000..c1eb793
--- /dev/null
+++ b/app/php/components/PasswordChange.tpl
@@ -0,0 +1,52 @@
+Change password<br />
+Current password:
+<com:TTextBox ID="Password"
+ TextMode="Password"
+ ValidationGroup="ChangePasswordGroup" />
+<com:TRequiredFieldValidator
+ ControlToValidate="Password"
+ Display="Dynamic"
+ ErrorMessage="Current password cannot be empty"
+ ValidationGroup="ChangePasswordGroup" />
+<com:TCustomValidator
+ ControlToValidate="Password"
+ OnServerValidate="checkPassword"
+ Display="Dynamic"
+ ErrorMessage="Password is incorrect"
+ ValidationGroup="ChangePasswordGroup" />
+<br />
+New password:
+<com:TTextBox ID="NewPassword"
+ TextMode="Password"
+ ValidationGroup="ChangePasswordGroup" />
+<com:TRequiredFieldValidator
+ ControlToValidate="NewPassword"
+ Display="Dynamic"
+ ErrorMessage="New password cannot be empty"
+ ValidationGroup="ChangePasswordGroup" />
+<br />
+Repeat password:
+<com:TTextBox ID="ReNewPassword"
+ TextMode="Password"
+ ValidationGroup="ChangePasswordGroup" />
+<com:TRequiredFieldValidator
+ ControlToValidate="ReNewPassword"
+ Display="Dynamic"
+ ErrorMessage="New password cannot be empty"
+ ValidationGroup="ChangePasswordGroup" />
+<com:TCompareValidator
+ ControlToValidate="ReNewPassword"
+ ControlToCompare="NewPassword"
+ DataType="String"
+ Operator="Equal"
+ Display="Dynamic"
+ ErrorMessage="Passwords don't match"
+ ValidationGroup="ChangePasswordGroup" />
+<br />
+<com:TButton
+ Text="Change password"
+ OnCommand="changePassword"
+ ValidationGroup="ChangePasswordGroup" />
+<com:TLabel ID="SuccessMessage"
+ Text="Your password has been changed"
+ Visible="false" />