Merge branch '10400' into data_engine

This commit is contained in:
Fred Tempez 2020-10-18 13:24:21 +02:00
commit 97110dd032
1 changed files with 7 additions and 20 deletions

View File

@ -56,9 +56,7 @@
</div> </div>
<div class="row"> <div class="row">
<div class="col12"> <div class="col12">
<?php echo template::checkbox('blogAddHidePicture', true, 'Masquer l\'image dans l\'article', [ <?php echo template::checkbox('blogAddHidePicture', true, 'Masquer l\'image dans l\'article'); ?>
'checked' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'hidePicture'])
]); ?>
</div> </div>
</div> </div>
</div> </div>
@ -89,7 +87,7 @@
<div class="col4"> <div class="col4">
<?php echo template::select('blogAddConsent', $module::$articleConsent , [ <?php echo template::select('blogAddConsent', $module::$articleConsent , [
'label' => 'Edition / Suppression', 'label' => 'Edition / Suppression',
'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'editConsent']), 'selected' => $module::EDIT_ALL,
'help' => 'Les utilisateurs des groupes supérieurs accèdent à l\'article sans restriction' 'help' => 'Les utilisateurs des groupes supérieurs accèdent à l\'article sans restriction'
]); ?> ]); ?>
</div> </div>
@ -103,35 +101,24 @@
<h4>Commentaires</h4> <h4>Commentaires</h4>
<div class="row"> <div class="row">
<div class="col4 "> <div class="col4 ">
<?php echo template::checkbox('blogAddCommentClose', true, 'Fermer les commentaires', [ <?php echo template::checkbox('blogAddCommentClose', true, 'Fermer les commentaires'); ?>
'checked' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'commentClose'])
]); ?>
</div> </div>
<div class="col4 commentOptionsWrapper "> <div class="col4 commentOptionsWrapper ">
<?php echo template::checkbox('blogAddCommentApproved', true, 'Approbation par un modérateur', [ <?php echo template::checkbox('blogAddCommentApproved', true, 'Approbation par un modérateur'); ?>
'checked' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'commentApproved']),
''
]); ?>
</div> </div>
<div class="col4 commentOptionsWrapper"> <div class="col4 commentOptionsWrapper">
<?php echo template::select('blogAddCommentMaxlength', $module::$commentLength,[ <?php echo template::select('blogAddCommentMaxlength', $module::$commentLength,[
'help' => 'Choix du nombre maximum de caractères pour chaque commentaire de l\'article, mise en forme html comprise.', 'help' => 'Choix du nombre maximum de caractères pour chaque commentaire de l\'article, mise en forme html comprise.',
'label' => 'Caractères par commentaire', 'label' => 'Caractères par commentaire'
'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'commentMaxlength'])
]); ?> ]); ?>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col3 commentOptionsWrapper offset2"> <div class="col3 commentOptionsWrapper offset2">
<?php echo template::checkbox('blogAddCommentNotification', true, 'Notification par email', [ <?php echo template::checkbox('blogAddCommentNotification', true, 'Notification par email'); ?>
'checked' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'commentNotification']),
]); ?>
</div> </div>
<div class="col4 commentOptionsWrapper"> <div class="col4 commentOptionsWrapper">
<?php echo template::select('blogAddCommentGroupNotification', $module::$groupNews, [ <?php echo template::select('blogAddCommentGroupNotification', $module::$groupNews); ?>
'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'commentGroupNotification']),
'help' => 'Editeurs = éditeurs + administrateurs<br/> Membres = membres + éditeurs + administrateurs'
]); ?>
</div> </div>
</div> </div>
</div> </div>