[9.1.08] supprimer maxlength

This commit is contained in:
fredtempez 2019-05-31 12:41:28 +02:00
parent c16741f259
commit 8656c7a6a1
3 changed files with 13 additions and 11 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,7 +2718,9 @@ class template {
</a>', </a>',
$attributes['class'], $attributes['class'],
$attributes['disabled'] ? 'disabled' : '', $attributes['disabled'] ? 'disabled' : '',
helper::sprintAttributes($attributes, ['class', 'extensions', 'type', 'maxlength']) helper::sprintAttributes($attributes, ['class', 'extensions', 'type'])
//helper::sprintAttributes($attributes, ['class', 'extensions', 'type', 'maxlength'])
); );
$html .= self::button($attributes['id'] . 'Delete', [ $html .= self::button($attributes['id'] . 'Delete', [
'class' => 'inputFileDelete', 'class' => 'inputFileDelete',
@ -2779,7 +2781,7 @@ class template {
'class' => '', 'class' => '',
'noDirty' => false, 'noDirty' => false,
'id' => $nameId, 'id' => $nameId,
'maxlength' => '500', //'maxlength' => '500',
'name' => $nameId, 'name' => $nameId,
'value' => '' 'value' => ''
], $attributes); ], $attributes);
@ -2849,7 +2851,7 @@ class template {
'help' => '', 'help' => '',
'id' => $nameId, 'id' => $nameId,
'label' => '', 'label' => '',
'maxlength' => '500', //'maxlength' => '500',
'name' => $nameId, 'name' => $nameId,
'placeholder' => '', 'placeholder' => '',
'readonly' => false, 'readonly' => false,
@ -2912,7 +2914,7 @@ class template {
'help' => '', 'help' => '',
'id' => $nameId, 'id' => $nameId,
'label' => '', 'label' => '',
'maxlength' => '500', //'maxlength' => '500',
'name' => $nameId, 'name' => $nameId,
'placeholder' => '', 'placeholder' => '',
'readonly' => false 'readonly' => false
@ -3109,7 +3111,7 @@ class template {
'help' => '', 'help' => '',
'id' => $nameId, 'id' => $nameId,
'label' => '', 'label' => '',
'maxlength' => '500', //'maxlength' => '500',
'name' => $nameId, 'name' => $nameId,
'placeholder' => '', 'placeholder' => '',
'readonly' => false, 'readonly' => false,
@ -3162,7 +3164,7 @@ class template {
'help' => '', 'help' => '',
'id' => $nameId, 'id' => $nameId,
'label' => '', 'label' => '',
'maxlength' => '500000', //'maxlength' => '500',
'name' => $nameId, 'name' => $nameId,
'readonly' => false, 'readonly' => false,
'value' => '' 'value' => ''

View File

@ -221,7 +221,7 @@ echo template::formOpen('pageEditForm'); ?>
]); ?> ]); ?>
<?php echo template::textarea('pageEditMetaDescription', [ <?php echo template::textarea('pageEditMetaDescription', [
'label' => 'Méta-description', 'label' => 'Méta-description',
'maxlength' => '500', //'maxlength' => '500',
'value' => $this->getData(['page', $this->getUrl(2), 'metaDescription']) 'value' => $this->getData(['page', $this->getUrl(2), 'metaDescription'])
]); ?> ]); ?>
</div> </div>

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">