forked from ZwiiCMS-Team/ZwiiCampus
course membre filtre form template
This commit is contained in:
parent
d94bd3d57b
commit
ae372e1d9c
@ -55,7 +55,7 @@ class course extends common
|
|||||||
public static $alphabet = [];
|
public static $alphabet = [];
|
||||||
|
|
||||||
public static $courseGroups = [
|
public static $courseGroups = [
|
||||||
'all' => 'Tous'
|
'all' => 'Tout'
|
||||||
];
|
];
|
||||||
|
|
||||||
public static $courses = [];
|
public static $courses = [];
|
||||||
@ -402,7 +402,7 @@ class course extends common
|
|||||||
self::$alphabet = range('A', 'Z');
|
self::$alphabet = range('A', 'Z');
|
||||||
$alphabet = range('A', 'Z');
|
$alphabet = range('A', 'Z');
|
||||||
self::$alphabet = array_combine($alphabet, self::$alphabet);
|
self::$alphabet = array_combine($alphabet, self::$alphabet);
|
||||||
self::$alphabet = array_merge(['all'=>'Toute'], self::$alphabet );
|
self::$alphabet = array_merge(['all'=>'Tout'], self::$alphabet );
|
||||||
// Liste des inscrits dans le cours sélectionné.
|
// Liste des inscrits dans le cours sélectionné.
|
||||||
$courseId = $this->getUrl(2);
|
$courseId = $this->getUrl(2);
|
||||||
$users = $this->getData(['enrolment', $courseId]);
|
$users = $this->getData(['enrolment', $courseId]);
|
||||||
|
@ -19,31 +19,31 @@
|
|||||||
</div>
|
</div>
|
||||||
<?php echo template::formOpen('courseFilterUserForm'); ?>
|
<?php echo template::formOpen('courseFilterUserForm'); ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col10 offset1">
|
<div class="col12">
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<h4>
|
<h4>
|
||||||
<?php echo helper::translate('Filtres'); ?>
|
<?php echo helper::translate('Filtres'); ?>
|
||||||
</h4>
|
</h4>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col2">
|
<div class="col3">
|
||||||
<?php echo template::select('courseFilterGroup', $module::$courseGroups, [
|
<?php echo template::select('courseFilterGroup', $module::$courseGroups, [
|
||||||
'label' => 'Groupes / Profils',
|
'label' => 'Groupes / Profils',
|
||||||
'selected' => isset($_POST['courseFilterGroup']) ? $_POST['courseFilterGroup'] : 'all',
|
'selected' => isset($_POST['courseFilterGroup']) ? $_POST['courseFilterGroup'] : 'all',
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col2">
|
<div class="col3">
|
||||||
<?php echo template::select('courseFilterFirstName', $module::$alphabet, [
|
<?php echo template::select('courseFilterFirstName', $module::$alphabet, [
|
||||||
'label' => 'Prénom commence par',
|
'label' => 'Prénom commence par',
|
||||||
'selected' => isset($_POST['courseFilterFirstName']) ? $_POST['courseFilterFirstName'] : 'all',
|
'selected' => isset($_POST['courseFilterFirstName']) ? $_POST['courseFilterFirstName'] : 'all',
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col2">
|
<div class="col3">
|
||||||
<?php echo template::select('courseFilterLastName', $module::$alphabet, [
|
<?php echo template::select('courseFilterLastName', $module::$alphabet, [
|
||||||
'label' => 'Nom commence par',
|
'label' => 'Nom commence par',
|
||||||
'selected' => isset($_POST['courseFilterLastName']) ? $_POST['courseFilterLastName'] : 'all',
|
'selected' => isset($_POST['courseFilterLastName']) ? $_POST['courseFilterLastName'] : 'all',
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col2 offset4">
|
<div class="col2 offset1">
|
||||||
<?php echo template::submit('courseFilterSubmit', [
|
<?php echo template::submit('courseFilterSubmit', [
|
||||||
'value' => 'Filtrer',
|
'value' => 'Filtrer',
|
||||||
'uniqueSubmission' => true
|
'uniqueSubmission' => true
|
||||||
|
@ -40,31 +40,31 @@
|
|||||||
</div>
|
</div>
|
||||||
<?php echo template::formOpen('userFilterUserForm'); ?>
|
<?php echo template::formOpen('userFilterUserForm'); ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col10 offset1">
|
<div class="col12">
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<h4>
|
<h4>
|
||||||
<?php echo helper::translate('Filtres'); ?>
|
<?php echo helper::translate('Filtres'); ?>
|
||||||
</h4>
|
</h4>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col2">
|
<div class="col3">
|
||||||
<?php echo template::select('userFilterGroup', $module::$courseGroups, [
|
<?php echo template::select('userFilterGroup', $module::$courseGroups, [
|
||||||
'label' => 'Groupes / Profils',
|
'label' => 'Groupes / Profils',
|
||||||
'selected' => isset($_POST['userFilterGroup']) ? $_POST['userFilterGroup'] : 'all',
|
'selected' => isset($_POST['userFilterGroup']) ? $_POST['userFilterGroup'] : 'all',
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col2">
|
<div class="col3">
|
||||||
<?php echo template::select('userFilterFirstName', $module::$alphabet, [
|
<?php echo template::select('userFilterFirstName', $module::$alphabet, [
|
||||||
'label' => 'Prénom commence par',
|
'label' => 'Prénom commence par',
|
||||||
'selected' => isset($_POST['userFilterFirstName']) ? $_POST['userFilterFirstName'] : 'all',
|
'selected' => isset($_POST['userFilterFirstName']) ? $_POST['userFilterFirstName'] : 'all',
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col2">
|
<div class="col3">
|
||||||
<?php echo template::select('userFilterLastName', $module::$alphabet, [
|
<?php echo template::select('userFilterLastName', $module::$alphabet, [
|
||||||
'label' => 'Nom commence par',
|
'label' => 'Nom commence par',
|
||||||
'selected' => isset($_POST['userFilterLastName']) ? $_POST['userFilterLastName'] : 'all',
|
'selected' => isset($_POST['userFilterLastName']) ? $_POST['userFilterLastName'] : 'all',
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col2 offset4">
|
<div class="col2 offset1">
|
||||||
<?php echo template::submit('userFilterSubmit', [
|
<?php echo template::submit('userFilterSubmit', [
|
||||||
'value' => 'Filtrer',
|
'value' => 'Filtrer',
|
||||||
'uniqueSubmission' => true
|
'uniqueSubmission' => true
|
||||||
|
Loading…
Reference in New Issue
Block a user