Optimization for better content display

- Added decorators for preview-label.
This commit is contained in:
farggus 2020-03-22 14:31:32 +02:00 committed by GitHub
parent 845c787123
commit 08bac9d853
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -75,6 +75,12 @@ class Application_Form_Player extends Zend_Form_SubForm
$previewLabel = new Zend_Form_Element_Text('player_preview_label');
$previewLabel->setLabel(_("Preview:"));
$previewLabel->setDecorators(array(
'ViewHelper',
'Errors',
'Label'
));
$previewLabel->addDecorator('Label', array('class' => 'preview-label'));
$this->addElement($previewLabel);
}