blob: 2642454f874d33bfb5d2e7b09bb51dbe733d26fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
<?php
/**
* @var TermsController $controller
* @var string $return_to
* @var string $redirect_token
* @var string $denial_message
* @var string $compulsory
* @var array{type: string, url: string} $terms_of_use
*/
?>
<form action="<?= $controller->link_for('terms', compact('return_to', 'redirect_token')) ?>" method="post">
<?= CSRFProtection::tokenTag()?>
<? if ($denial_message): ?>
<section class="contentbox">
<header>
<h1><?= _('Was können Sie tun?') ?></h1>
</header>
<section>
<?= $denial_message ?>
</section>
</section>
<? else: ?>
<?= $GLOBALS['template_factory']->render('terms.php', [
'terms_of_use' => $terms_of_use,
]) ?>
<? endif; ?>
<footer style="text-align: center">
<? if ($denial_message): ?>
<?= Studip\Button::createAccept(_('Verstanden'), 'deny', [
'formaction' => URLHelper::getURL('dispatch.php/logout'),
]) ?>
<? else: ?>
<?= Studip\Button::createAccept(_('Ich erkenne die Nutzungsbedingungen an'), 'accept') ?>
<? if (!$compulsory): ?>
<?= Studip\LinkButton::createCancel(
_('Ich stimme den Nutzungsbedingungen nicht zu'),
$controller->url_for('terms', ['action' => 'denied'])
) ?>
<? endif; ?>
<? endif; ?>
</footer>
</form>
|