2021-06-26 22:02:00 +02:00
|
|
|
{{!--
|
|
|
|
SPDX-FileCopyrightText: 2021 Johannes Loher
|
|
|
|
|
|
|
|
SPDX-License-Identifier: MIT
|
|
|
|
--}}
|
|
|
|
|
2021-03-24 20:10:14 +01:00
|
|
|
{{!--
|
|
|
|
!-- Render a core value.
|
|
|
|
!--
|
|
|
|
!-- @param core-value-label: The label to display for the core value
|
|
|
|
!-- @param core-value-key: The key of the core value
|
|
|
|
!-- @param core-value-data: The data for the core value
|
|
|
|
!-- @param core-value-variant: The variant of the core value, i.e. attribute or trait
|
2021-07-12 01:00:50 +02:00
|
|
|
!-- @param actor-id: The id of the actor the core value belongs to
|
2021-03-24 20:10:14 +01:00
|
|
|
--}}
|
|
|
|
|
|
|
|
<div class="ds4-core-value ds4-core-value--{{core-value-variant}}">
|
2021-07-12 01:00:50 +02:00
|
|
|
<label for="data.{{core-value-variant}}s.{{core-value-key}}.base-{{actor-id}}"
|
2021-03-24 20:10:14 +01:00
|
|
|
class="ds4-core-value__label">{{core-value-label}}</label>
|
|
|
|
<div class="ds4-core-value__value">
|
|
|
|
<input class="ds4-core-value__value-input" type="number"
|
|
|
|
name="data.{{core-value-variant}}s.{{core-value-key}}.base"
|
2021-07-12 01:00:50 +02:00
|
|
|
id="data.{{core-value-variant}}s.{{core-value-key}}.base-{{actor-id}}" value='{{core-value-data.base}}'
|
2021-03-24 20:10:14 +01:00
|
|
|
data-dtype="Number" title="{{core-value-label}} {{localize 'DS4.TooltipBaseValue'}}" />
|
|
|
|
<span>+</span>
|
|
|
|
<input class="ds4-core-value__value-input" type="number"
|
|
|
|
name="data.{{core-value-variant}}s.{{core-value-key}}.mod"
|
2021-07-12 01:00:50 +02:00
|
|
|
id="data.{{core-value-variant}}s.{{core-value-key}}.mod-{{actor-id}}" value='{{core-value-data.mod}}'
|
|
|
|
data-dtype="Number" title="{{core-value-label}} {{localize 'DS4.TooltipModifier'}}" />
|
2021-03-24 20:10:14 +01:00
|
|
|
<span class="ds4-core-value__value-arrow">➞</span>
|
|
|
|
<span class="ds4-core-value__value-total"
|
|
|
|
title="{{core-value-label}}: {{core-value-data.tooltip}}">{{core-value-data.total}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|