ZwiiCampus/core/module/course/view/add/add.php

91 lines
3.3 KiB
PHP
Raw Normal View History

2023-09-08 22:09:25 +02:00
<?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">
2023-09-10 09:59:54 +02:00
<div class="col12">
2023-09-08 22:09:25 +02:00
<?php echo template::text('courseAddTitle', [
'label' => 'Titre'
]); ?>
</div>
2023-09-10 09:59:54 +02:00
</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'
2023-09-08 22:09:25 +02:00
]); ?>
</div>
</div>
2023-09-29 04:28:17 +02:00
<div class="row">
2023-09-30 13:35:20 +02:00
<div class="col6">
2023-10-04 07:04:58 +02:00
<?php echo template::select('courseaDDHomePageId', $module::$pagesList, [
2023-09-30 13:35:20 +02:00
'label' => 'Accueil du cours',
]); ?>
</div>
<div class="col6">
<?php echo template::select('courseaDDCategories', $module::$courseCategories, [
2023-09-29 04:28:17 +02:00
'label' => 'Catégorie',
]); ?>
</div>
</div>
2023-09-08 22:09:25 +02:00
<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('courseOpeningDate', [
2023-09-12 22:16:25 +02:00
'type' => 'datetime-local',
2023-09-08 22:09:25 +02:00
'label' => 'Ouverture',
]); ?>
</div>
<div class="col4">
<?php echo template::date('courseClosingDate', [
2023-09-12 22:16:25 +02:00
'type' => 'datetime-local',
2023-09-08 22:09:25 +02:00
'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>
2023-09-10 09:59:54 +02:00
</div>
2023-09-08 22:09:25 +02:00
</div>
</div>
2023-09-10 09:59:54 +02:00
<?php echo template::formClose(); ?>