2
0
forked from Wavyzz/dolibarr

ENH: accessibility on commonfields_add tpl

This commit is contained in:
Benjamin Falière
2025-02-12 10:57:58 +01:00
parent 9fe6d7a5c5
commit f214d76d35

View File

@@ -1,7 +1,8 @@
<?php
/* Copyright (C) 2017 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
/* Copyright (C) 2017 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2025 Benjamin Falière <benjamin@faliere.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -69,11 +70,13 @@ foreach ($object->fields as $key => $val) {
}
print '"';
print '>';
print '<label for="'.$key.'" class="block">';
if (!empty($val['help'])) {
print $form->textwithpicto($langs->trans($val['label']), $langs->trans($val['help']));
} else {
print $langs->trans($val['label']);
}
print '</label>';
print '</td>';
print '<td class="valuefieldcreate">';
if (!empty($val['picto'])) {