ZwiiCampus/core/module/course/view/add/add.php
fredtempez f6c0c2d871 copie le theme depuis existant
Supprime la fonction getcourses de core.php
2023-10-27 21:40:53 +02:00

91 lines
3.3 KiB
PHP

<?php echo template::formOpen('courseAddForm'); ?>
<div class="row">
<div class="col1">
<?php echo template::button('courseAddBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'course',
'value' => template::ico('left')
]); ?>
</div>
<div class="col2 offset9">
<?php echo template::submit('courseAddSubmit'); ?>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4>
<?php echo helper::translate('Paramètres'); ?>
</h4>
<div class="row">
<div class="col12">
<?php echo template::text('courseAddTitle', [
'label' => 'Titre'
]); ?>
</div>
</div>
<div class="row">
<div class="col7">
<?php echo template::text('courseAddShortTitle', [
'label' => 'Titre court'
]); ?>
</div>
<div class="col5">
<?php echo template::select('courseAddAuthor', $module::$courseTeachers, [
'label' => 'Auteur'
]); ?>
</div>
</div>
<div class="row">
<div class="col6">
<?php echo template::select('courseAddTheme', $module::$courses, [
'label' => 'Copier le thème depuis',
]); ?>
</div>
<div class="col6">
<?php echo template::select('courseAddCategories', $module::$courseCategories, [
'label' => 'Catégorie',
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
<?php echo template::textarea('courseAddDescription', [
'label' => 'Description'
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::select('courseAddAccess', $module::$courseAccess, [
'label' => 'Accès'
]); ?>
</div>
<div class="col4">
<?php echo template::date('courseAddOpeningDate', [
'type' => 'datetime-local',
'label' => 'Ouverture',
]); ?>
</div>
<div class="col4">
<?php echo template::date('courseAddClosingDate', [
'type' => 'datetime-local',
'label' => 'Fermeture',
]); ?>
</div>
</div>
<div class="row">
<div class="col6">
<?php echo template::select('courseAddEnrolment', $module::$courseEnrolment, [
'label' => 'Inscription'
]); ?>
</div>
<div class="col6">
<?php echo template::text('courseAddEnrolmentKey', [
'label' => 'Clé'
]); ?>
</div>
</div>
</div>
</div>
<?php echo template::formClose(); ?>