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

View File

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

View File

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