ds4/templates/sheets/actor/components/actor-header.hbs
Johannes Loher fc9f4b49b5 feat: add a special actor sheet that is displayed to users with the LIMITED permission for the actor
This actor sheet only shows image, name, and biography/description of the actor.
2022-11-03 23:02:46 +01:00

33 lines
1.3 KiB
Handlebars

{{!--
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>