blob: 69d116169d710e322d0fa3fc2da4fffc8c8b0bf1 (
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
|
<?php
/**
* @var TermsController $controller
* @var string $return_to
* @var string $redirect_token
* @var string $denial_message
* @var string $compulsory
*/
?>
<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') ?>
<? endif; ?>
<footer style="text-align: center">
<? if ($denial_message): ?>
<?= Studip\LinkButton::createAccept(
_('Verstanden'),
URLHelper::getURL('logout.php')
) ?>
<? 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>
|