diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-01-07 07:33:17 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-01-07 07:33:17 +0000 |
| commit | cede27e88662ff32895e2eacca25a6a8ed0ddb5b (patch) | |
| tree | 75236b2a67ed17223b98d9442da117f5e9719dbb /app | |
| parent | 3f455264b9a89b3122feedd31aa7b26f6d61ef24 (diff) | |
fix oer tags editting, fixes #5094
Closes #5094
Merge request studip/studip!3812
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/oer/mymaterial/edit.php | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/app/views/oer/mymaterial/edit.php b/app/views/oer/mymaterial/edit.php index 71e0101..188ea3b 100644 --- a/app/views/oer/mymaterial/edit.php +++ b/app/views/oer/mymaterial/edit.php @@ -1,3 +1,11 @@ +<?php +/** + * @var Oer_MymaterialController $controller + * @var OERMaterial $material + * @var string $usersearch + * @var string $tagsearch + */ +?> <form action="<?= $controller->edit($material->isNew() ? '' : $material) ?>" method="post" class="default" @@ -178,7 +186,6 @@ </div> <? endif ?> - <div class="oer_tags_container"> <?= _('Themen (am besten mindestens 5)') ?> <? @@ -194,19 +201,20 @@ ?> <ul class="clean oer_tags" data-defaulttags="<?= htmlReady(json_encode($tags)) ?>"> - <li v-for="(tag, index) in displayTags" :key="index"> + <li v-for="(tag, index) in displayTags" :key="`tag-${index}`"> # <quicksearch name="tags[]" searchtype="<?= htmlReady($tagsearch) ?>" - v-model="tags[index]" + v-model="tag" :autocomplete="true" :keep-value="true" ></quicksearch> - <a href="#" + <button class="as-link" @click.prevent="removeTag(index)" - title="<?= _('Thema aus der Liste streichen') ?>"> + title="<?= _('Thema aus der Liste streichen') ?>" + > <studip-icon shape="trash" class="text-bottom"></studip-icon> - </a> + </button> </li> </ul> |
