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

View File

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