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.
This commit is contained in:
Johannes Loher 2022-11-03 23:02:46 +01:00
parent 63e888e39d
commit fc9f4b49b5
9 changed files with 52 additions and 4 deletions

View file

@ -11,7 +11,7 @@ SPDX-License-Identifier: MIT
!-- @param @partial-block: Properties to render in the second header row.
--}}
<header class="ds4-actor-header">
<img class="ds4-actor-header__img" src="{{data.img}}" data-edit="img" alt="{{localize 'DS4.ActorImageAltText'}}"
<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">
@ -20,10 +20,14 @@ SPDX-License-Identifier: MIT
<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>