mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX Adjusted HeaderField and LabelField implementation to new constructor arguments (see r64421)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@64423 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
d113768d7b
commit
118efae75d
@ -108,7 +108,7 @@ class AssetTableField extends ComplexTableField {
|
||||
new TextField( "Content", _t('AssetTableField.CAPTION', 'Caption') ),
|
||||
new TextField( 'PopupWidth', _t('AssetTableField.POPUPWIDTH', 'Popup Width') ),
|
||||
new TextField( 'PopupHeight', _t('AssetTableField.POPUPHEIGHT', 'Popup Height') ),
|
||||
new HeaderField( _t('AssetTableField.SWFFILEOPTIONS', 'SWF File Options') ),
|
||||
new HeaderField( 'SWFFileOptionsHeader', _t('AssetTableField.SWFFILEOPTIONS', 'SWF File Options') ),
|
||||
new CheckboxField( 'Embed', _t('AssetTableField.ISFLASH', 'Is A Flash Document') ),
|
||||
new CheckboxField( 'LimitDimensions', _t('AssetTableField.DIMLIMT', 'Limit The Dimensions In The Popup Window') )
|
||||
)
|
||||
|
@ -409,7 +409,7 @@ JS;
|
||||
return $form;
|
||||
} else if($id) {
|
||||
return new Form($this, "EditForm", new FieldSet(
|
||||
new LabelField(_t('CMSMain.PAGENOTEXISTS',"This page doesn't exist"))), new FieldSet());
|
||||
new LabelField('PageDoesntExistLabel',_t('CMSMain.PAGENOTEXISTS',"This page doesn't exist"))), new FieldSet());
|
||||
|
||||
}
|
||||
}
|
||||
@ -786,7 +786,7 @@ HTML;
|
||||
|
||||
$fields->push(new HiddenField("ID"));
|
||||
$fields->push(new HiddenField("Version"));
|
||||
$fields->push(new HeaderField(sprintf(_t('CMSMain.VIEWING',"You are viewing version #%d, created %s"),
|
||||
$fields->push(new HeaderField('YouAreViewingHeader', sprintf(_t('CMSMain.VIEWING',"You are viewing version #%d, created %s"),
|
||||
$version, $record->obj('LastEdited')->Ago())));
|
||||
|
||||
$actions = new FieldSet(
|
||||
@ -843,7 +843,7 @@ HTML;
|
||||
$fields = $record->getCMSFields($this);
|
||||
$fields->push(new HiddenField("ID"));
|
||||
$fields->push(new HiddenField("Version"));
|
||||
$fields->insertBefore(new HeaderField(sprintf(_t('CMSMain.COMPARINGV',"You are comparing versions #%d and #%d"),$fromVersion,$toVersion)), "Root");
|
||||
$fields->insertBefore(new HeaderField('YouAreComparingHeader',sprintf(_t('CMSMain.COMPARINGV',"You are comparing versions #%d and #%d"),$fromVersion,$toVersion)), "Root");
|
||||
|
||||
$actions = new FieldSet();
|
||||
|
||||
|
@ -151,7 +151,7 @@ class MemberTableField extends ComplexTableField {
|
||||
);
|
||||
|
||||
$orderByFields = new FieldGroup(
|
||||
new LabelField(_t('MemberTableField.ORDERBY', 'Order by')),
|
||||
new LabelField('OrderByLabel',_t('MemberTableField.ORDERBY', 'Order by')),
|
||||
new FieldSet(
|
||||
new DropdownField('MemberOrderByField','', array(
|
||||
'FirstName' => _t('MemberTableField.FIRSTNAME', 'FirstName'),
|
||||
|
@ -596,7 +596,7 @@ class ModelAdmin_CollectionController extends Controller {
|
||||
$this,
|
||||
'ResultsForm',
|
||||
new FieldSet(
|
||||
new HeaderField(_t('ModelAdmin.SEARCHRESULTS','Search Results'), 2),
|
||||
new HeaderField('SearchResultsHeader',_t('ModelAdmin.SEARCHRESULTS','Search Results'), 2),
|
||||
$tf
|
||||
),
|
||||
new FieldSet()
|
||||
|
Loading…
Reference in New Issue
Block a user