MINOR: added user friendly labels - should really be _t compatible I guess

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@71345 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Will Rossiter 2009-02-04 01:43:45 +00:00 committed by Sam Minnee
parent b87a0ae107
commit 479f8c0fa3
3 changed files with 13 additions and 12 deletions

View File

@ -40,7 +40,7 @@ table.CMSList thead th {
height : 24px;
border-right : 1px solid #aca899;
border-left : 1px solid #ffffff;
padding-left : 5px;
padding-left : 0 5px;
}
table.TableField thead th span,
@ -75,8 +75,8 @@ table.TableField tfoot td,
.TableListField table.data tfoot td,
table.CMSList tbody td,
table.CMSList tfoot td {
border : 1px solid #f1efe2;
padding-left : 5px;
border: 1px solid #f1efe2;
padding: 5px;
}
.TableListField table.data tfoot tr.addtogrouprow td {

View File

@ -54,13 +54,14 @@ class RequiredFields extends Validator{
function javascript() {
$js = "";
$fields = $this->form->Fields();
foreach($this->form->Fields()->dataFields() as $field) {
//if the field type has some special specific specification for validation of itself
$validationFunc = $field->jsValidation();
if($validationFunc) $js .= $validationFunc . "\n";
$dataFields = $this->form->Fields()->dataFields();
if($dataFields) {
foreach($dataFields as $field) {
// if the field type has some special specific specification for validation of itself
$validationFunc = $field->jsValidation();
if($validationFunc) $js .= $validationFunc . "\n";
}
}
$useLabels = $this->useLabels ? 'true' : 'false';
if($this->required) {

View File

@ -63,9 +63,9 @@ class Member extends DataObject {
);
static $summary_fields = array(
'FirstName',
'Surname',
'Email',
'FirstName' => 'First Name',
'Surname' => 'Last Name',
'Email' => 'Email',
);
/**