Add hidden accessible form input labels
This commit is contained in:
committed by
Frédéric Guillot
parent
8308189333
commit
c3aec26877
@@ -42,7 +42,8 @@ class TaskHelper extends Base
|
|||||||
|
|
||||||
public function renderTitleField(array $values, array $errors)
|
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',
|
'title',
|
||||||
$values,
|
$values,
|
||||||
$errors,
|
$errors,
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
<h3><?= t('Upload my avatar image') ?></h3>
|
<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) ?>">
|
<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') ?>
|
<?= $this->form->file('avatar') ?>
|
||||||
|
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
|
|||||||
Reference in New Issue
Block a user