mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
b87a0ae107
commit
479f8c0fa3
@ -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 {
|
||||||
|
@ -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) {
|
||||||
|
@ -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',
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user