aboutsummaryrefslogtreecommitdiff
path: root/app/views/course/wizard/step.php
blob: 6df4594ffc8a0780331ea7f494da5f56cea841ac (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
<? if ($content) : ?>
    <form class="default course-wizard-step-<?= $stepnumber ?>" action="<?= $controller->url_for('course/wizard/process', $stepnumber, $temp_id) ?>" method="post" data-secure>
        <fieldset>
        <?= $content ?>
        </fieldset>

        <footer data-dialog-button>
            <input type="hidden" name="step" value="<?= $stepnumber ?>">
        <? if (!$first_step): ?>
            <?= Studip\Button::create(
                _('Zurück'),
                'back',
                $dialog ? ['data-dialog' => 'size=50%'] : []
            ) ?>
        <? endif; ?>
            <?= Studip\Button::create(
                _('Weiter'),
                'next',
                $dialog ? ['data-dialog' => 'size=50%'] : []
            ) ?>
        </footer>
    </form>
<? else : ?>
    <?= Studip\LinkButton::createCancel(
        _('Zurück zu meiner Veranstaltungsübersicht'),
        $controller->url_for($GLOBALS['perm']->have_perm('admin') ? 'admin/courses' : 'my_courses'),
        ['data-dialog-button' => '']
    ) ?>
<? endif ?>