Add hidden accessible form input labels
This commit is contained in:
parent
8308189333
commit
c3aec26877
|
|
@ -42,7 +42,8 @@ class TaskHelper extends Base
|
|||
|
||||
public function renderTitleField(array $values, array $errors)
|
||||
{
|
||||
return $this->helper->form->text(
|
||||
$html = $this->helper->form->label(t('Title'), 'title', ['class="ui-helper-hidden-accessible"']);
|
||||
$html .= $this->helper->form->text(
|
||||
'title',
|
||||
$values,
|
||||
$errors,
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
|
||||
<h3><?= t('Upload my avatar image') ?></h3>
|
||||
<form method="post" enctype="multipart/form-data" action="<?= $this->url->href('AvatarFileController', 'upload', array('user_id' => $user['id']), true) ?>">
|
||||
<?= $this->form->label(t('Avatar'), 'avatar', ['class="ui-helper-hidden-accessible"']) ?>
|
||||
<?= $this->form->file('avatar') ?>
|
||||
|
||||
<div class="form-actions">
|
||||
|
|
|
|||
Loading…
Reference in New Issue