diff options
| author | Michaela Brückner <brueckner@data-quest.de> | 2024-01-10 12:44:53 +0100 |
|---|---|---|
| committer | Michaela Brückner <brueckner@data-quest.de> | 2024-01-10 12:44:53 +0100 |
| commit | aa22011a9e61b47d368562f4314c87ee972762e2 (patch) | |
| tree | 3e412ce8618b0b7cfa2a283431a45ef5ff34846a /app/views | |
| parent | 304241997ac8de6af372379ad35b230c4bb01c1f (diff) | |
initial commit, re #3616issue-3616-2.4
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/course/wizard/step.php | 4 | ||||
| -rw-r--r-- | app/views/course/wizard/steps/studygroups/index.php | 79 |
2 files changed, 83 insertions, 0 deletions
diff --git a/app/views/course/wizard/step.php b/app/views/course/wizard/step.php index 0fe1dfc..c32a09b 100644 --- a/app/views/course/wizard/step.php +++ b/app/views/course/wizard/step.php @@ -23,11 +23,15 @@ !empty($dialog) ? ['data-dialog' => 'size=50%'] : [] ) ?> <? endif; ?> + <? if (!$studygroup) : ?> <?= Studip\Button::create( _('Weiter'), 'next', !empty($dialog) ? ['data-dialog' => 'size=50%'] : [] ) ?> + <? else : ?> + <?= Studip\Button::createAccept(_('Studiengruppe anlegen'), 'create') ?> + <? endif; ?> </footer> </form> <? else : ?> diff --git a/app/views/course/wizard/steps/studygroups/index.php b/app/views/course/wizard/steps/studygroups/index.php new file mode 100644 index 0000000..e270033 --- /dev/null +++ b/app/views/course/wizard/steps/studygroups/index.php @@ -0,0 +1,79 @@ +<legend> + <?= _('Grunddaten') ?> +</legend> + +<label class=""> + <span class="required"><?= _('Name') ?></span> + <input type="text" name="name" id="wizard-name" maxlength="254" value="<?= htmlReady($values['name'] ?? '') ?>" required/> +</label> + +<? if(count($types) > 1) : ?> + <label class=""> + <span class="required"><?= _('Typ') ?></span> + <select name="coursetype" id="wizard-coursetype"> + <?php foreach ($types as $class => $subtypes) : ?> + <optgroup label="<?= htmlReady($class) ?>"> + <?php foreach ($subtypes as $type) : ?> + <option value="<?= $type['id'] ?>"<?= $type['id'] == $values['coursetype'] ? ' selected="selected"' : '' ?>> + <?= htmlReady($type['name']) ?> + </option> + <?php endforeach ?> + </optgroup> + <?php endforeach ?> + </select> + </label> +<? else : ?> + <? $type = array_values($types)[0]; ?> + <input type="hidden" name="coursetype" value="<?= htmlReady($type[0]['id']) ?>"> +<? endif ?> + + +<label class=""> + <?= _('Beschreibung') ?> + <textarea name="description" id="wizard-description" + rows="4"><?= htmlReady($values['description'] ?? '') ?></textarea> +</label> + + +<label class=""> + <span class="required"><?= _('Zugang') ?></span> + + <select name="access" id="wizard-access"> + <option value="all" + <? if (isset($values['access']) && $values['access'] === 'all') echo 'selected'; ?>> + <?= _('offen für alle') ?> + </option> + <option value="invite" + <? if (isset($values['access']) && $values['access'] === 'invite') echo 'selected'; ?>> + <?= _('auf Anfrage') ?> + </option> + <?php if (Config::get()->STUDYGROUPS_INVISIBLE_ALLOWED) : ?> + <option value="invisible" + <? if (isset($values['access']) && $values['access'] === 'invisible') echo 'selected'; ?>> + <?= _('unsichtbar') ?> + </option> + <?php endif ?> + </select> +</label> + + +<label><span class="required"><?= _('Nutzungsbedingungen')?></span></label> + +<? if ($GLOBALS['perm']->have_perm('admin')) : ?> + <p style="font-weight: bold;"> + <?= _('Ich habe die eingetragenen Personen darüber informiert, dass in Ihrem Namen eine Studiengruppe angelegt wird und versichere, dass Sie mit folgenden Nutzungsbedingungen einverstandenen sind:') ?> + </p> +<? endif ?> +<?= formatReady(Config::Get()->STUDYGROUP_TERMS) ?> + +<label> + <input type="checkbox" name="accept" id="wizard-accept" required> + <?= _('Einverstanden') ?> +</label> + +<input type="hidden" name="institute" value="<?= $values['institute'] ?>"/> +<input type="hidden" name="start_time" value="<?= $values['start_time'] ?>"/> +<input type="hidden" name="studygroup" value="1"/> +<?php foreach ($values['lecturers'] as $id => $assigned) : ?> + <input type="hidden" name="lecturers[<?= $id ?>]" value="1"/> +<?php endforeach ?> |
