2021-07-22 02:02:35 +02:00
|
|
|
{{!--
|
|
|
|
SPDX-FileCopyrightText: 2021 Johannes Loher
|
|
|
|
SPDX-FileCopyrightText: 2021 Gesina Schwalbe
|
|
|
|
|
|
|
|
SPDX-License-Identifier: MIT
|
|
|
|
--}}
|
|
|
|
|
|
|
|
{{!--
|
|
|
|
!-- Render a group of an "edit" and a "delete" button.
|
2021-07-25 02:40:28 +02:00
|
|
|
!-- The current item is defined by the a corresponding id attribute of the parent li element.
|
2021-07-22 02:02:35 +02:00
|
|
|
!-- @param documentType: The type of document that is controlled by this button group, item or effect
|
|
|
|
!-- @param editTitle: The title to use for the edit link element (will be localized)
|
|
|
|
!-- @param deleteTitle: The title to use for the delete link element (will be localized)
|
|
|
|
--}}
|
|
|
|
<div class="ds4-control-button-group">
|
2022-11-03 23:39:49 +01:00
|
|
|
{{#if @root/editable}}
|
2021-07-23 00:43:15 +02:00
|
|
|
<a class="ds4-control-button-group__button control-{{documentType}}" data-action="edit"
|
2021-07-22 02:02:35 +02:00
|
|
|
title="{{localize editTitle}}"><i class="fas fa-edit"></i></a>
|
2021-07-23 00:43:15 +02:00
|
|
|
<a class="ds4-control-button-group__button control-{{documentType}}" data-action="delete"
|
2021-07-22 02:02:35 +02:00
|
|
|
title="{{localize deleteTitle}}"><i class="fas fa-trash"></i></a>
|
2022-11-03 23:39:49 +01:00
|
|
|
{{/if}}
|
2021-07-22 02:02:35 +02:00
|
|
|
</div>
|