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:
Ingo Schommer 2008-10-16 13:27:12 +00:00
parent d113768d7b
commit 118efae75d
4 changed files with 6 additions and 6 deletions

View File

@ -108,7 +108,7 @@ class AssetTableField extends ComplexTableField {
new TextField( "Content", _t('AssetTableField.CAPTION', 'Caption') ), new TextField( "Content", _t('AssetTableField.CAPTION', 'Caption') ),
new TextField( 'PopupWidth', _t('AssetTableField.POPUPWIDTH', 'Popup Width') ), new TextField( 'PopupWidth', _t('AssetTableField.POPUPWIDTH', 'Popup Width') ),
new TextField( 'PopupHeight', _t('AssetTableField.POPUPHEIGHT', 'Popup Height') ), 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( 'Embed', _t('AssetTableField.ISFLASH', 'Is A Flash Document') ),
new CheckboxField( 'LimitDimensions', _t('AssetTableField.DIMLIMT', 'Limit The Dimensions In The Popup Window') ) new CheckboxField( 'LimitDimensions', _t('AssetTableField.DIMLIMT', 'Limit The Dimensions In The Popup Window') )
) )

View File

@ -409,7 +409,7 @@ JS;
return $form; return $form;
} else if($id) { } else if($id) {
return new Form($this, "EditForm", new FieldSet( 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("ID"));
$fields->push(new HiddenField("Version")); $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()))); $version, $record->obj('LastEdited')->Ago())));
$actions = new FieldSet( $actions = new FieldSet(
@ -843,7 +843,7 @@ HTML;
$fields = $record->getCMSFields($this); $fields = $record->getCMSFields($this);
$fields->push(new HiddenField("ID")); $fields->push(new HiddenField("ID"));
$fields->push(new HiddenField("Version")); $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(); $actions = new FieldSet();

View File

@ -151,7 +151,7 @@ class MemberTableField extends ComplexTableField {
); );
$orderByFields = new FieldGroup( $orderByFields = new FieldGroup(
new LabelField(_t('MemberTableField.ORDERBY', 'Order by')), new LabelField('OrderByLabel',_t('MemberTableField.ORDERBY', 'Order by')),
new FieldSet( new FieldSet(
new DropdownField('MemberOrderByField','', array( new DropdownField('MemberOrderByField','', array(
'FirstName' => _t('MemberTableField.FIRSTNAME', 'FirstName'), 'FirstName' => _t('MemberTableField.FIRSTNAME', 'FirstName'),

View File

@ -596,7 +596,7 @@ class ModelAdmin_CollectionController extends Controller {
$this, $this,
'ResultsForm', 'ResultsForm',
new FieldSet( new FieldSet(
new HeaderField(_t('ModelAdmin.SEARCHRESULTS','Search Results'), 2), new HeaderField('SearchResultsHeader',_t('ModelAdmin.SEARCHRESULTS','Search Results'), 2),
$tf $tf
), ),
new FieldSet() new FieldSet()