2021-07-20 02:16:43 +02:00
|
|
|
{{!--
|
|
|
|
SPDX-FileCopyrightText: 2021 Johannes Loher
|
|
|
|
SPDX-FileCopyrightText: 2021 Gesina Schwalbe
|
|
|
|
|
|
|
|
SPDX-License-Identifier: MIT
|
|
|
|
--}}
|
|
|
|
|
|
|
|
{{!
|
|
|
|
!-- Render an "add" button.
|
2021-07-22 02:02:35 +02:00
|
|
|
!-- @param documentType: The type of document this button controls, item or effect
|
2021-07-20 02:16:43 +02:00
|
|
|
!-- @param title: The title to use for the link element (will be localized)
|
|
|
|
!-- @param type: An optional property to use as data-type attribute
|
|
|
|
}}
|
2022-11-03 23:39:49 +01:00
|
|
|
{{#if @root/editable}}
|
2022-02-13 00:12:42 +01:00
|
|
|
<div class="ds4-add-button">
|
2021-07-23 00:43:15 +02:00
|
|
|
<a class="control-{{documentType}}" title="{{localize title}}" data-action="create" {{#if type}}data-type="{{type}}"
|
|
|
|
{{/if}}>
|
2021-07-20 02:16:43 +02:00
|
|
|
<i class="fas fa-plus"></i>
|
|
|
|
{{localize "DS4.UserInteractionAdd"}}
|
|
|
|
</a>
|
|
|
|
</div>
|
2022-11-03 23:39:49 +01:00
|
|
|
{{/if}}
|