[9.1.08] maxlength

This commit is contained in:
fredtempez 2019-05-31 12:51:22 +02:00
parent f0d9534dbc
commit 4ceec4c378
2 changed files with 5 additions and 6 deletions

View File

@ -2665,7 +2665,7 @@ class template {
'help' => '',
'id' => $nameId,
'label' => '',
//'maxlength' => '500',
'maxlength' => '500',
'name' => $nameId,
'type' => 2,
'value' => ''
@ -2693,7 +2693,7 @@ class template {
$html .= self::hidden($attributes['id'], [
'class' => 'inputFileHidden',
'disabled' => $attributes['disabled'],
//'maxlength' => $attributes['maxlength'],
'maxlength' => $attributes['maxlength'],
'value' => $attributes['value']
]);
// Champ d'upload
@ -2718,8 +2718,7 @@ class template {
</a>',
$attributes['class'],
$attributes['disabled'] ? 'disabled' : '',
helper::sprintAttributes($attributes, ['class', 'extensions', 'type'])
//helper::sprintAttributes($attributes, ['class', 'extensions', 'type', 'maxlength'])
helper::sprintAttributes($attributes, ['class', 'extensions', 'type', 'maxlength'])
);
$html .= self::button($attributes['id'] . 'Delete', [

View File

@ -59,8 +59,8 @@
</div>
<?php endif; ?>
<?php echo template::textarea('blogArticleContent', [
'label' => 'Commentaire'
//'maxlength' => '500'
'label' => 'Commentaire',
'maxlength' => '500'
]); ?>
<?php if($this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD')): ?>
<div class="row">