ds4/templates/sheets/actor/components/actor-header.hbs

34 lines
1.3 KiB
Handlebars
Raw Permalink Normal View History

2021-07-12 00:12:59 +02:00
{{!--
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'}}"
2021-07-12 00:12:59 +02:00
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">
2022-01-21 03:22:17 +01:00
<label for="name-{{data._id}}" class="ds4-hidden">{{localize 'DS4.ActorName'}}</label>
2021-07-12 00:12:59 +02:00
<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}}
2021-07-12 00:12:59 +02:00
{{> systems/ds4/templates/sheets/actor/components/actor-progression.hbs}}
{{/unless}}
2021-07-12 00:12:59 +02:00
</div>
{{#unless limited}}
2021-07-12 00:12:59 +02:00
<div class="ds4-actor-header__data-row">
{{> @partial-block}}
</div>
{{/unless}}
2021-07-12 00:12:59 +02:00
</div>
</header>