86 lines
4.2 KiB
PHP
Executable File
86 lines
4.2 KiB
PHP
Executable File
|
|
<?php echo template::formOpen('registrationConfig'); ?>
|
|
<div class="row">
|
|
<div class="col2">
|
|
<?php echo template::button('registrationConfigBack', [
|
|
'class' => '',
|
|
'href' => helper::baseUrl() .'page/edit/' . $this->getUrl(0) ,
|
|
'ico' => 'left',
|
|
'value' => 'Retour'
|
|
]); ?>
|
|
</div>
|
|
<div class="col2 offset6">
|
|
<?php echo template::button('registrationConfigBack', [
|
|
'href' => helper::baseUrl() .$this->getUrl(0) . '/user' ,
|
|
'value' => 'Inscriptions'
|
|
]); ?>
|
|
</div>
|
|
<div class="col2">
|
|
<?php echo template::submit('registrationConfigSubmit',[
|
|
'class' => 'green'
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col12">
|
|
<div class="block">
|
|
<h4>Paramètres</h4>
|
|
<div class="row">
|
|
<div class="col6">
|
|
<?php echo template::select('registrationConfigTimeOut', $module::$timeLimit , [
|
|
'label' => 'Validité du lien',
|
|
'selected' => $this->getData(['module',$this->getUrl(0),'config','timeOut'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col6">
|
|
<?php echo template::select('registrationConfigSuccess', helper::arraycollumn($this->getData(['page']), 'title', 'SORT_ASC'), [
|
|
'label' => 'Redirection après confirmation',
|
|
'selected' => $this->getData(['module',$this->getUrl(0),'config','pageSuccess'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col6">
|
|
<?php echo template::select('registrationConfigError', helper::arraycollumn($this->getData(['page']), 'title', 'SORT_ASC'), [
|
|
'label' => 'Redirection après erreur',
|
|
'selected' => $this->getData(['module',$this->getUrl(0),'config','pageError'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col12">
|
|
<?php $messageDefault = '<p>Confirmez votre inscription en cliquant sur ce lien dans les ... minutes.</p>'; ?>
|
|
<?php echo template::textarea('registrationconfigMailRegisterContent', [
|
|
'label' => 'Corps du mail de confirmation',
|
|
'value' => !empty($this->getData(['module',$this->getUrl(0),'config','mailRegisterContent'])) ? $this->getData(['module',$this->getUrl(0),'config','mailRegisterContent']) : $messageDefault,
|
|
'class' => 'editorWysiwyg',
|
|
'help' => 'Précisez la durée de validité. Le lien sera inséré après ces explications.'
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col6 verticalAlignMiddle">
|
|
<?php echo template::checkbox('registrationConfigState', true, 'Approbation préalable', [
|
|
'checked' => $this->getData(['module',$this->getUrl(0),'config','approval']),
|
|
'help' => 'Les comptes sont inactifs tant que les inscriptions ne sont pas approuvées par un administrateur.',
|
|
'check' => true
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col12">
|
|
<?php $messageDefault = '<p>Votre inscription a été approuvée par un administrateur.</p>'; ?>
|
|
<?php echo template::textarea('registrationconfigMailValidateContent', [
|
|
'label' => 'Corps du mail d\'approbation',
|
|
'value' =>!empty($this->getData(['module',$this->getUrl(0),'config','mailValidateContent'])) ? $this->getData(['module',$this->getUrl(0),'config','mailValidateContent']) : $messageDefault,
|
|
'class' => 'editorWysiwyg'
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php echo template::formClose(); ?>
|
|
<div class="moduleVersion">Version n°<?php echo $module::VERSION; ?>
|
|
</div>
|