aboutsummaryrefslogtreecommitdiff
path: root/app/views/contact/editGroup.php
blob: 988a80ab245800f10fd21c451bb5b0e6f6b0724a (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
<form class="default" method="post" action="<?= $controller->link_for('contact/editGroup/' . $group->id) ?>">
    <?= CSRFProtection::tokenTag() ?>
    <fieldset>
        <legend class="hide-in-dialog">
            <? if ($group->isNew()) : ?>
                <?= _('Gruppe anlegen') ?>
            <? else : ?>
                <?= _('Gruppe bearbeiten') ?>
            <? endif ?>
        </legend>
        <label>
            <span class="required"><?= _('Gruppenname') ?></span>
            <input required type="text" name="name"
                   placeholder="<?= _('Gruppenname') ?>"
                   value='<?= htmlReady($group->name) ?>'>
        </label>
    </fieldset>

    <footer data-dialog-button>
        <?= Studip\Button::createAccept($group->isNew() ? _('Anlegen') : _('Speichern'), 'store') ?>
        <?= Studip\LinkButton::createCancel(
            _('Abbrechen'),
            $controller->url_for('contact/index')
        ) ?>
    </footer>
</form>