mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00: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
|
||||
|
||||
/**
|
||||
* @package forms
|
||||
* @subpackage fields-formattedinput
|
||||
*/
|
||||
|
||||
/**
|
||||
* Shows two password-fields, and checks for matching passwords.
|
||||
* Optionally hides the fields by default and shows
|
||||
* a link to toggle their visibility.
|
||||
*
|
||||
* @package forms
|
||||
* @subpackage fields-formattedinput
|
||||
*/
|
||||
@ -69,7 +64,7 @@ class ConfirmedPasswordField extends FormField {
|
||||
function __construct($name, $title = null, $value = "", $form = null, $showOnClick = false) {
|
||||
// naming with underscores to prevent values from actually being saved somewhere
|
||||
$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'))
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user