mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-29 20:59:23 +02:00
Merged revisions 47264 via svnmerge from
svn://svn.silverstripe.com/silverstripe/modules/sapphire/branches/2.2.0-mesq ........ r47264 | ischommer | 2007-12-18 16:57:08 +1300 (Tue, 18 Dec 2007) | 1 line setting $title for first sub-field instead of dismissing it ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@52157 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
0f69fdf7a4
commit
c9aceb01e1
@ -1,14 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
|
||||||
* @package forms
|
|
||||||
* @subpackage fields-formattedinput
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Shows two password-fields, and checks for matching passwords.
|
* Shows two password-fields, and checks for matching passwords.
|
||||||
* Optionally hides the fields by default and shows
|
* Optionally hides the fields by default and shows
|
||||||
* a link to toggle their visibility.
|
* a link to toggle their visibility.
|
||||||
|
*
|
||||||
* @package forms
|
* @package forms
|
||||||
* @subpackage fields-formattedinput
|
* @subpackage fields-formattedinput
|
||||||
*/
|
*/
|
||||||
@ -69,7 +64,7 @@ class ConfirmedPasswordField extends FormField {
|
|||||||
function __construct($name, $title = null, $value = "", $form = null, $showOnClick = false) {
|
function __construct($name, $title = null, $value = "", $form = null, $showOnClick = false) {
|
||||||
// naming with underscores to prevent values from actually being saved somewhere
|
// naming with underscores to prevent values from actually being saved somewhere
|
||||||
$this->children = new FieldSet(
|
$this->children = new FieldSet(
|
||||||
new PasswordField("{$name}[_Password]", _t('Member.PASSWORD')),
|
new PasswordField("{$name}[_Password]", (isset($title)) ? $title : _t('Member.PASSWORD')),
|
||||||
new PasswordField("{$name}[_ConfirmPassword]",_t('Member.CONFIRMPASSWORD', 'Confirm Password'))
|
new PasswordField("{$name}[_ConfirmPassword]",_t('Member.CONFIRMPASSWORD', 'Confirm Password'))
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user