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

39 lines
1.4 KiB
PHP
Raw Normal View History

2023-09-23 19:23:41 +02:00
<?php echo template::formOpen('courseSwapForm'); ?>
2023-09-22 19:33:03 +02:00
<div class="row">
<div class="col12">
2023-09-23 19:23:41 +02:00
<?php echo "<h3>Auteur : " . $this->getData(['course', $this->getUrl(2), 'author']) . "</h3>"; ?>
<?php echo "<p> Description : " . $this->getData(['course', $this->getUrl(2), 'description']) . "</p>"; ?>
<?php echo "<p> Disponibilité : " . $module::$courseAccess[$this->getData(['course', $this->getUrl(2), 'access'])] . "</p>"; ?>
<?php echo "<p> Inscription : " . $module::$courseEnrolment[$this->getData(['course', $this->getUrl(2), 'enrolment'])] . "</p>"; ?>
2023-09-22 19:33:03 +02:00
</div>
</div>
2023-09-23 19:23:41 +02:00
<div class="row">
<div class="col12">
<?php if ($module::$swapMessage['enrolmentKey']) {
echo $module::$swapMessage['enrolmentKey'];
}
?>
<?php if ($module::$swapMessage['enrolmentMessage']) {
echo $module::$swapMessage['enrolmentMessage'];
}
?>
</div>
</div>
2023-09-22 19:33:03 +02:00
<div class="row">
<div class="col2">
2023-09-23 19:23:41 +02:00
<?php echo template::button('courseSwapBack', [
2023-09-22 19:33:03 +02:00
'href' => helper::baseUrl(),
'value' => template::ico('left')
]); ?>
</div>
<div class="col3 offset7">
2023-09-23 19:23:41 +02:00
<?php echo template::submit('courseSwapSubmit', [
'value' => $module::$swapMessage['submitLabel'],
2023-09-22 19:33:03 +02:00
'disabled' => !$this->courseIsAvailable($this->getUrl(2)),
'ico' => ''
]); ?>
</div>
</div>
<?php echo template::formClose(); ?>