diff --git a/app/views/admin/tree/create.php b/app/views/admin/tree/create.php index 55d26a587452cb7bb6a7bfc0ba42a96975ee7d2f..11ebaad7b88b90eb77b1b2ad0fe8b2b25bd5afe5 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 093dd9c7a4c2b938a3bf69a3494e72216ad05d12..1dc45a0166efe833d0114028f373a6959fca36aa 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"