aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRasmus Fuhse <fuhse@data-quest.de>2025-01-10 12:13:24 +0000
committerRasmus Fuhse <fuhse@data-quest.de>2025-01-10 12:13:24 +0000
commit39745c9aa8bb099e8bda1f4d775ed229dbe97be4 (patch)
treea2a96deecf48e62d995507c5c8b39eea9ae9293d /templates
parent03e8e1d8f9100cf9bfcb111b63ac4077f510a026 (diff)
Resolve "Studiengruppen erweitern" - Hauptbronch
Closes #3616 Merge request studip/studip!2509
Diffstat (limited to 'templates')
-rw-r--r--templates/forms/multiquicksearch_input.php17
-rw-r--r--templates/forms/quicksearch_input.php1
-rw-r--r--templates/header.php6
-rw-r--r--templates/start/my_studygroups.php3
-rw-r--r--templates/start/studygroups.php3
5 files changed, 29 insertions, 1 deletions
diff --git a/templates/forms/multiquicksearch_input.php b/templates/forms/multiquicksearch_input.php
new file mode 100644
index 0000000..acb28ae
--- /dev/null
+++ b/templates/forms/multiquicksearch_input.php
@@ -0,0 +1,17 @@
+<div class="formpart" data-form-input-for="<?= htmlReady($name) ?>">
+ <label<?= ($this->required ? ' class="studiprequired"' : '') ?> for="<?= $id ?>">
+ <span class="textlabel">
+ <?= htmlReady($this->title) ?>
+ </span>
+ <? if ($this->required) : ?>
+ <span class="asterisk" title="<?= _('Dies ist ein Pflichtfeld') ?>" aria-hidden="true">*</span>
+ <? endif ?>
+ </label>
+ <multiquicksearch name="<?= htmlReady($name) ?>"
+ v-model="<?= htmlReady($name) ?>"
+ <?= ($required ? 'required aria-required="true"' : '') ?>
+ :value="<?= htmlReady(json_encode($value)) ?>"
+ id="<?= $id ?>"
+ <?= $attributes ?>>
+ </multiquicksearch>
+</div>
diff --git a/templates/forms/quicksearch_input.php b/templates/forms/quicksearch_input.php
index 6fbaff1..46680a1 100644
--- a/templates/forms/quicksearch_input.php
+++ b/templates/forms/quicksearch_input.php
@@ -10,6 +10,7 @@
<span>
<quicksearch value="<?= htmlReady($value) ?>"
name="<?= htmlReady($name) ?>"
+ @update:modelValue="(new_id, new_item_name) => { console.log(new_id); this.<?= htmlReady($name) ?> = new_id; }"
id="<?= $id ?>"
<?= ($this->required ? 'required aria-required="true"' : '') ?>
<?= $attributes ?>>
diff --git a/templates/header.php b/templates/header.php
index fda7471..2f1d509 100644
--- a/templates/header.php
+++ b/templates/header.php
@@ -317,7 +317,11 @@ if ($navigation) {
<? endif ?>
<? endif ?>
<? if (Context::isCourse()) : ?>
- <?= CourseAvatar::getAvatar(Context::get()->id)->getImageTag(Avatar::NORMAL, ['class' => 'context-avatar']) ?>
+ <? if (Context::get()->isStudygroup()) : ?>
+ <?= StudygroupAvatar::getAvatar(Context::getId())->getImageTag(Avatar::NORMAL, ['class' => 'context-avatar']) ?>
+ <? else : ?>
+ <?= CourseAvatar::getAvatar(Context::getId())->getImageTag(Avatar::NORMAL, ['class' => 'context-avatar']) ?>
+ <? endif ?>
<span class="course-type"><?= htmlReady(Context::get()->getFullName('type')) ?>:</span> <span class="course-name"><?= htmlReady(Context::get()->getFullName('name')) ?></span>
<? if ($GLOBALS['user']->config->SHOWSEM_ENABLE && !Context::get()->isOpenEnded()): ?>
<span class="course-semester">(<?= htmlReady(Context::get()->getTextualSemester()) ?>)</span>
diff --git a/templates/start/my_studygroups.php b/templates/start/my_studygroups.php
new file mode 100644
index 0000000..f2770cb
--- /dev/null
+++ b/templates/start/my_studygroups.php
@@ -0,0 +1,3 @@
+<article class="studip">
+ <?= $content ?>
+</article>
diff --git a/templates/start/studygroups.php b/templates/start/studygroups.php
new file mode 100644
index 0000000..aa7b6e6
--- /dev/null
+++ b/templates/start/studygroups.php
@@ -0,0 +1,3 @@
+<article class="studip">
+ <?= $proposals ?>
+</article>