fix(legacy): fix hidden fields in edit file form (#2932)
this removes a visual gap between artwork and editor fields. I stumbled across this while updating the form to include replay gain. 
This commit is contained in:
parent
29f73e0dcb
commit
f4b260fdf7
|
@ -23,25 +23,25 @@ class Application_Form_EditAudioMD extends Zend_Form
|
||||||
->setValidators([
|
->setValidators([
|
||||||
new Zend_Validate_StringLength(['max' => 2048]),
|
new Zend_Validate_StringLength(['max' => 2048]),
|
||||||
]);
|
]);
|
||||||
$file_id->addDecorator('HtmlTag', ['tag' => 'div', 'style' => 'display:none']);
|
$artwork->addDecorator('HtmlTag', ['tag' => 'div', 'style' => 'display:none']);
|
||||||
$file_id->removeDecorator('Label');
|
$artwork->removeDecorator('Label');
|
||||||
$file_id->setAttrib('class', 'artwork');
|
$artwork->setAttrib('class', 'artwork');
|
||||||
$this->addElement($artwork);
|
$this->addElement($artwork);
|
||||||
|
|
||||||
// Set artwork hidden field
|
// Set artwork hidden field
|
||||||
$set_artwork = new Zend_Form_Element_Hidden('set_artwork');
|
$set_artwork = new Zend_Form_Element_Hidden('set_artwork');
|
||||||
$set_artwork->class = 'input_text set_artwork_' . $p_id;
|
$set_artwork->class = 'input_text set_artwork_' . $p_id;
|
||||||
$file_id->addDecorator('HtmlTag', ['tag' => 'div', 'style' => 'display:none']);
|
$set_artwork->addDecorator('HtmlTag', ['tag' => 'div', 'style' => 'display:none']);
|
||||||
$file_id->removeDecorator('Label');
|
$set_artwork->removeDecorator('Label');
|
||||||
$file_id->setAttrib('class', 'set_artwork');
|
$set_artwork->setAttrib('class', 'set_artwork');
|
||||||
$this->addElement($set_artwork);
|
$this->addElement($set_artwork);
|
||||||
|
|
||||||
// Remove artwork hidden field
|
// Remove artwork hidden field
|
||||||
$remove_artwork = new Zend_Form_Element_Hidden('remove_artwork');
|
$remove_artwork = new Zend_Form_Element_Hidden('remove_artwork');
|
||||||
$remove_artwork->class = 'input_text remove_artwork_' . $p_id;
|
$remove_artwork->class = 'input_text remove_artwork_' . $p_id;
|
||||||
$file_id->addDecorator('HtmlTag', ['tag' => 'div', 'style' => 'display:none']);
|
$remove_artwork->addDecorator('HtmlTag', ['tag' => 'div', 'style' => 'display:none']);
|
||||||
$file_id->removeDecorator('Label');
|
$remove_artwork->removeDecorator('Label');
|
||||||
$file_id->setAttrib('class', 'remove_artwork');
|
$remove_artwork->setAttrib('class', 'remove_artwork');
|
||||||
$this->addElement($remove_artwork);
|
$this->addElement($remove_artwork);
|
||||||
|
|
||||||
// Add title field
|
// Add title field
|
||||||
|
|
Loading…
Reference in New Issue