ds4/templates/sheets/shared/components/add-button.hbs

21 lines
658 B
Handlebars
Raw Permalink Normal View History

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.
!-- @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
}}
<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>