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.


![grafik](https://github.com/libretime/libretime/assets/25002/267f4d7b-e12e-4c86-b37e-420311dc3dec)
This commit is contained in:
Thomas Göttgens 2024-02-03 22:31:00 +01:00 committed by GitHub
parent 29f73e0dcb
commit f4b260fdf7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 9 deletions

View File

@ -23,25 +23,25 @@ class Application_Form_EditAudioMD extends Zend_Form
->setValidators([
new Zend_Validate_StringLength(['max' => 2048]),
]);
$file_id->addDecorator('HtmlTag', ['tag' => 'div', 'style' => 'display:none']);
$file_id->removeDecorator('Label');
$file_id->setAttrib('class', 'artwork');
$artwork->addDecorator('HtmlTag', ['tag' => 'div', 'style' => 'display:none']);
$artwork->removeDecorator('Label');
$artwork->setAttrib('class', 'artwork');
$this->addElement($artwork);
// Set artwork hidden field
$set_artwork = new Zend_Form_Element_Hidden('set_artwork');
$set_artwork->class = 'input_text set_artwork_' . $p_id;
$file_id->addDecorator('HtmlTag', ['tag' => 'div', 'style' => 'display:none']);
$file_id->removeDecorator('Label');
$file_id->setAttrib('class', 'set_artwork');
$set_artwork->addDecorator('HtmlTag', ['tag' => 'div', 'style' => 'display:none']);
$set_artwork->removeDecorator('Label');
$set_artwork->setAttrib('class', 'set_artwork');
$this->addElement($set_artwork);
// Remove artwork hidden field
$remove_artwork = new Zend_Form_Element_Hidden('remove_artwork');
$remove_artwork->class = 'input_text remove_artwork_' . $p_id;
$file_id->addDecorator('HtmlTag', ['tag' => 'div', 'style' => 'display:none']);
$file_id->removeDecorator('Label');
$file_id->setAttrib('class', 'remove_artwork');
$remove_artwork->addDecorator('HtmlTag', ['tag' => 'div', 'style' => 'display:none']);
$remove_artwork->removeDecorator('Label');
$remove_artwork->setAttrib('class', 'remove_artwork');
$this->addElement($remove_artwork);
// Add title field