From 7231b373957609ac64290103f85fe8fcea9c723e Mon Sep 17 00:00:00 2001
From: Thomas Hackl <hackl@data-quest.de>
Date: Thu, 27 Jun 2024 12:20:56 +0000
Subject: [PATCH] =?UTF-8?q?Resolve=20"Veranstaltungsverzeichnis:=20Eintr?=
 =?UTF-8?q?=C3=A4ge=20ohne=20Namen=20sind=20nicht=20mehr=20bearbeitbar"?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Closes #3489

Merge request studip/studip!3153
---
 app/views/admin/tree/create.php                   | 6 ++++--
 resources/vue/components/tree/StudipTreeTable.vue | 9 +++++++--
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/app/views/admin/tree/create.php b/app/views/admin/tree/create.php
index 55d26a58745..11ebaad7b88 100644
--- a/app/views/admin/tree/create.php
+++ b/app/views/admin/tree/create.php
@@ -1,8 +1,10 @@
 <form class="default" action="<?= $controller->link_for('admin/tree/store', get_class($node), $node->id ?: null) ?>" method="post">
     <section>
         <label>
-            <?= _('Name') ?>
-            <input type="text" name="name"
+            <span class="required">
+                <?= _('Name') ?>
+            </span>
+            <input type="text" name="name" required
                    placeholder="<?= get_class($node) === RangeTreeNode::class ? _('Name des Eintrags (wird bei Zuweisung zu einer Stud.IP-Einrichtung überschrieben)') : _('Name des Eintrags') ?>">
         </label>
     </section>
diff --git a/resources/vue/components/tree/StudipTreeTable.vue b/resources/vue/components/tree/StudipTreeTable.vue
index 093dd9c7a4c..1dc45a0166e 100644
--- a/resources/vue/components/tree/StudipTreeTable.vue
+++ b/resources/vue/components/tree/StudipTreeTable.vue
@@ -86,8 +86,13 @@
                         </a>
                     </td>
                     <td>
-                        <studip-icon :shape="child.attributes['has-children'] ? 'folder-full' : 'folder-empty'"
-                                     :size="26"></studip-icon>
+                        <a :href="nodeUrl(child.id, semester !== 'all' ? semester : null)" tabindex="0"
+                           @click.prevent="openNode(child)"
+                           :title="$gettextInterpolate($gettext('Unterebene %{ node } öffnen'),
+                                { node: node.attributes.name }, true)">
+                            <studip-icon :shape="child.attributes['has-children'] ? 'folder-full' : 'folder-empty'"
+                                         :size="26"></studip-icon>
+                        </a>
                     </td>
                     <td>
                         <a :href="nodeUrl(child.id, semester !== 'all' ? semester : null)" tabindex="0"
-- 
GitLab