Added spellcheck="false" on form field that does not need spellchecking (#35682)
* fixed bug * Update card.php --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
parent
44ef4d5860
commit
be3f10e6d2
4 changed files with 10 additions and 10 deletions
|
|
@ -465,7 +465,7 @@ if ($action == 'create') {
|
|||
print '</td>';
|
||||
|
||||
// Amount
|
||||
print "<tr>".'<td class="fieldrequired">'.$langs->trans("Amount").'</td><td><input type="text" name="amount" value="'.dol_escape_htmltag(GETPOST("amount")).'" size="10"> '.$langs->trans("Currency".$conf->currency).'</td></tr>';
|
||||
print "<tr>".'<td class="fieldrequired">'.$langs->trans("Amount").'</td><td><input type="text" name="amount" value="'.dol_escape_htmltag(GETPOST("amount")).'" size="10" spellcheck="false"> '.$langs->trans("Currency".$conf->currency).'</td></tr>';
|
||||
|
||||
// Public donation
|
||||
print '<tr><td class="fieldrequired">'.$langs->trans("PublicDonation")."</td><td>";
|
||||
|
|
@ -494,7 +494,7 @@ if ($action == 'create') {
|
|||
}
|
||||
print '</td></tr>';
|
||||
|
||||
print "<tr>".'<td>'.$langs->trans("EMail").'</td><td>'.img_picto('', 'object_email', 'class="paddingrightonly"').'<input type="text" name="email" value="'.dol_escape_htmltag(GETPOST("email")).'" class="maxwidth200"></td></tr>';
|
||||
print '<tr><td>'.$langs->trans("EMail").'</td><td>'.img_picto('', 'object_email', 'class="paddingrightonly"').'<input type="text" name="email" value="'.dol_escape_htmltag(GETPOST("email")).'" class="maxwidth200" spellcheck="false"></td></tr>';
|
||||
}
|
||||
|
||||
// Payment mode
|
||||
|
|
@ -588,7 +588,7 @@ if (!empty($id) && $action == 'edit') {
|
|||
|
||||
// Amount
|
||||
if ($object->status == 0) {
|
||||
print "<tr>".'<td class="fieldrequired">'.$langs->trans("Amount").'</td><td><input type="text" name="amount" size="10" value="'.price($object->amount).'"> '.$langs->trans("Currency".$conf->currency).'</td></tr>';
|
||||
print "<tr>".'<td class="fieldrequired">'.$langs->trans("Amount").'</td><td><input type="text" name="amount" size="10" value="'.price($object->amount).'" spellcheck="false"> '.$langs->trans("Currency".$conf->currency).'</td></tr>';
|
||||
} else {
|
||||
print '<tr><td>'.$langs->trans("Amount").'</td><td>';
|
||||
print price($object->amount, 0, $langs, 0, 0, -1, $conf->currency);
|
||||
|
|
@ -632,7 +632,7 @@ if (!empty($id) && $action == 'edit') {
|
|||
}
|
||||
print '</td></tr>';
|
||||
|
||||
print "<tr>".'<td>'.$langs->trans("EMail").'</td><td><input type="text" name="email" class="maxwidth200" value="'.dol_escape_htmltag($object->email).'"></td></tr>';
|
||||
print '<tr><td>'.$langs->trans("EMail").'</td><td><input type="text" name="email" class="maxwidth200" value="'.dol_escape_htmltag($object->email).'" spellcheck="false"></td></tr>';
|
||||
}
|
||||
// Payment mode
|
||||
print "<tr><td>".$langs->trans("PaymentMode")."</td><td>\n";
|
||||
|
|
|
|||
|
|
@ -219,7 +219,7 @@ if ($action == 'create') {
|
|||
print '<tr><td>'.$langs->trans('Numero');
|
||||
print ' <em>('.$langs->trans("ChequeOrTransferNumber").')</em>';
|
||||
print '</td>';
|
||||
print '<td colspan="2"><input name="num_payment" type="text" value="'.GETPOST('num_payment').'"></td></tr>'."\n";
|
||||
print '<td colspan="2"><input name="num_payment" type="text" value="'.GETPOST('num_payment').'" spellcheck="false"></td></tr>'."\n";
|
||||
|
||||
// Check transmitter
|
||||
print '<tr><td class="'.(GETPOST('paiementcode') == 'CHQ' ? 'fieldrequired ' : '').'fieldrequireddyn">'.$langs->trans('CheckTransmitter');
|
||||
|
|
|
|||
|
|
@ -1308,7 +1308,7 @@ if ($action == 'create' || $action == 'adduserldap') {
|
|||
print '<input type="hidden" name="user_mobile" value="'.dol_escape_htmltag($ldap_mobile).'">';
|
||||
print $ldap_mobile;
|
||||
} else {
|
||||
print '<input class="maxwidth200 widthcentpercentminusx" type="text" name="user_mobile" value="'.dol_escape_htmltag(GETPOST('user_mobile', 'alphanohtml')).'">';
|
||||
print '<input class="maxwidth200 widthcentpercentminusx" type="text" name="user_mobile" value="'.dol_escape_htmltag(GETPOST('user_mobile', 'alphanohtml')).'" spellcheck="false">';
|
||||
}
|
||||
print '</td></tr>';
|
||||
|
||||
|
|
@ -1332,7 +1332,7 @@ if ($action == 'create' || $action == 'adduserldap') {
|
|||
print '<input type="hidden" name="email" value="'.dol_escape_htmltag($ldap_mail).'">';
|
||||
print $ldap_mail;
|
||||
} else {
|
||||
print '<input type="text" name="email" class="maxwidth500 widthcentpercentminusx" value="'.dol_escape_htmltag(GETPOST('email', 'alphanohtml')).'">';
|
||||
print '<input type="text" name="email" class="maxwidth500 widthcentpercentminusx" value="'.dol_escape_htmltag(GETPOST('email', 'alphanohtml')).'" spellcheck="false">';
|
||||
}
|
||||
print '</td></tr>';
|
||||
|
||||
|
|
@ -2377,7 +2377,7 @@ if ($action == 'create' || $action == 'adduserldap') {
|
|||
print "<tr>".'<td><span class="fieldrequired">'.$langs->trans("Login").'</span></td>';
|
||||
print '<td>';
|
||||
if ($user->admin && !$object->ldap_sid) {
|
||||
print '<input maxlength="50" type="text" class="flat" name="login" value="'.$object->login.'">';
|
||||
print '<input maxlength="50" type="text" class="flat" name="login" value="'.$object->login.'" spellcheck="false">';
|
||||
} else {
|
||||
print '<input type="hidden" name="login" value="'.$object->login.'">';
|
||||
print $object->login;
|
||||
|
|
@ -2769,7 +2769,7 @@ if ($action == 'create' || $action == 'adduserldap') {
|
|||
print '<td>';
|
||||
print img_picto('', 'phoning_mobile', 'class="pictofixedwidth"');
|
||||
if ($permissiontoedit && empty($object->ldap_sid)) {
|
||||
print '<input type="text" name="user_mobile" class="flat maxwidth200 widthcentpercentminusx" value="'.$object->user_mobile.'">';
|
||||
print '<input type="text" name="user_mobile" class="flat maxwidth200 widthcentpercentminusx" value="'.$object->user_mobile.'" spellcheck="false">';
|
||||
} else {
|
||||
print '<input type="hidden" name="user_mobile" value="'.$object->user_mobile.'">';
|
||||
print $object->user_mobile;
|
||||
|
|
|
|||
|
|
@ -718,7 +718,7 @@ if (!empty($id) || !empty($ref)) {
|
|||
} ?>
|
||||
<tr>
|
||||
<td><label for="reference"><?php echo $langs->trans('Reference') ?></label></td>
|
||||
<td><input type="text" id="reference" name="reference" value="<?php echo trim($reference) ?>"></td>
|
||||
<td><input type="text" id="reference" name="reference" value="<?php echo trim($reference) ?>" spellcheck="false"></td>
|
||||
</tr>
|
||||
<?php
|
||||
if (!getDolGlobalString('PRODUIT_MULTIPRICES')) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue