{{!--
SPDX-FileCopyrightText: 2021 Johannes Loher
SPDX-FileCopyrightText: 2021 Oliver Rümpelein
SPDX-FileCopyrightText: 2021 Gesina Schwalbe

SPDX-License-Identifier: MIT
--}}

<div class="ds4-actor-progression">
    <div class="ds4-actor-progression__entry">
        <h2 class="ds4-actor-progression__label"><label for="system.combatValues.hitPoints.value-{{data._id}}"
                title="{{localize 'DS4.CombatValuesHitPointsCurrent'}}">{{localize
                "DS4.CombatValuesHitPointsCurrentAbbr"}}</label>
        </h2>
        <input class="ds4-actor-progression__input" type="number" name="system.combatValues.hitPoints.value"
            id="system.combatValues.hitPoints.value-{{data._id}}" value="{{data.system.combatValues.hitPoints.value}}"
            data-dtype="Number" />
    </div>
    {{#if (eq data.type "character")}}
    {{#if settings.showSlayerPoints}}
    <div class="ds4-actor-progression__entry">
        <h2 class="ds4-actor-progression__label"><label for="system.slayersPoints.value-{{data._id}}"
                title="{{localize 'DS4.CharacterSlayerPoints'}}">{{localize "DS4.CharacterSlayerPointsAbbr"}}</label>
        </h2>
        <input class="ds4-actor-progression__input ds4-actor-progression__input--slayer-points" type="number"
            max="{{data.system.slayerPoints.max}}" min="0" step="1" name="system.slayerPoints.value"
            id="system.slayersPoints.value-{{data._id}}" value="{{data.system.slayerPoints.value}}"
            data-dtype="Number" />
    </div>
    {{/if}}
    <div class="ds4-actor-progression__entry">
        <h2 class="ds4-actor-progression__label"><label for="system.progression.level-{{data._id}}"
                title="{{localize 'DS4.CharacterProgressionLevel'}}">{{localize
                "DS4.CharacterProgressionLevelAbbr"}}</label>
        </h2>
        <input class="ds4-actor-progression__input" type="number" min="0" name="system.progression.level"
            id="system.progression.level-{{data._id}}" value="{{data.system.progression.level}}" data-dtype="Number" />
    </div>
    <div class="ds4-actor-progression__entry">
        <h2 class="ds4-actor-progression__label"><label for="system.progression.experiencePoints-{{data._id}}"
                title="{{localize 'DS4.CharacterProgressionExperiencePoints'}}">{{localize
                "DS4.CharacterProgressionExperiencePointsAbbr"}}</label>
        </h2>
        <input class="ds4-actor-progression__input" type="number" min="0" name="system.progression.experiencePoints"
            id="system.progression.experiencePoints-{{data._id}}" value="{{data.system.progression.experiencePoints}}"
            data-dtype="Number" />
    </div>
    {{/if}}
</div>
