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

SPDX-License-Identifier: MIT
--}}

{{!--
!-- Render an actor sheet header.
!-- @param @partial-block: Properties to render in the second header row.
--}}
<header class="ds4-actor-header">
    <img class="ds4-actor-header__img{{#if editable}} ds4-actor-header__img--editable{{/if}}" src="{{data.img}}" data-edit="img" alt="{{localize 'DS4.ActorImageAltText'}}"
        title="{{data.name}}" height="100" width="100" />
    <div class="ds4-actor-header__data">
        <div class="ds4-actor-header__data-row">
            <h1 class="ds4-actor-header__name">
                <label for="name-{{data._id}}" class="ds4-hidden">{{localize 'DS4.ActorName'}}</label>
                <input class="ds4-actor-header__name-input" name="name" type="text" id="name-{{data._id}}"
                    value="{{data.name}}" placeholder="{{localize 'DS4.ActorName'}}" />
            </h1>
            {{#unless limited}}
            {{> systems/ds4/templates/sheets/actor/components/actor-progression.hbs}}
            {{/unless}}
        </div>
        {{#unless limited}}
        <div class="ds4-actor-header__data-row">
            {{> @partial-block}}
        </div>
        {{/unless}}
    </div>
</header>
