- $this->out->elementStart('label', array('class' => 'notice_data-attach'));
- // TRANS: Input label in notice form for adding an attachment.
- $this->out->text(_('Attach'));
+ $this->out->element('label', array('class' => 'notice_data-attach',
+ 'for' => $this->id().'-notice_data-attach'),
+ // TRANS: Input label in notice form for adding an attachment.
+ _('Attach'));
+ // The actual input element tends to be hidden with CSS.