Create PlayerSheet
This commit is contained in:
parent
e0578d425d
commit
e224f819a3
11 changed files with 252 additions and 0 deletions
32
templates/PlayerSheet/attributes.hbs
Normal file
32
templates/PlayerSheet/attributes.hbs
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{{#if hasAttributes}}
|
||||
<div class="attributes">
|
||||
{{#each attrs as | attr |}}
|
||||
<fieldset>
|
||||
<legend>
|
||||
{{ attr.name }}
|
||||
</legend>
|
||||
<div class="attr-range">
|
||||
<input
|
||||
type="number"
|
||||
class="attr-range__value"
|
||||
name="{{attr.path}}.value"
|
||||
value="{{attr.value}}"
|
||||
aria-label="Current value"
|
||||
>
|
||||
{{#if attr.isRange}}
|
||||
<span aria-hidden="true">/</span>
|
||||
<input
|
||||
type="number"
|
||||
class="attr-range__max"
|
||||
name="{{attr.path}}.max"
|
||||
value="{{attr.max}}"
|
||||
aria-label="Maximum value"
|
||||
>
|
||||
{{/if}}
|
||||
</div>
|
||||
</fieldset>
|
||||
{{/each}}
|
||||
</div>
|
||||
{{else}}
|
||||
<template />
|
||||
{{/if}}
|
||||
16
templates/PlayerSheet/content.hbs
Normal file
16
templates/PlayerSheet/content.hbs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<div class="content">
|
||||
{{log this}}
|
||||
{{#if editable}}
|
||||
<prose-mirror
|
||||
class="actor-text"
|
||||
name="system.content"
|
||||
value="{{system.content}}"
|
||||
collaborate="true"
|
||||
data-document-uuid="{{actor.uuid}}"
|
||||
>
|
||||
{{{ enriched.system.content }}}
|
||||
</prose-mirror>
|
||||
{{else}}
|
||||
{{{ enriched.system.content }}}
|
||||
{{/if}}
|
||||
</div>
|
||||
16
templates/PlayerSheet/header.hbs
Normal file
16
templates/PlayerSheet/header.hbs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<header class="sheet-header">
|
||||
<img
|
||||
src="{{actor.img}}"
|
||||
data-action="editImage"
|
||||
title="{{actor.name}}"
|
||||
height="64"
|
||||
width="64"
|
||||
/>
|
||||
<input
|
||||
type="text"
|
||||
name="name"
|
||||
class="large"
|
||||
value="{{actor.name}}"
|
||||
placeholder="{{ localize 'Name' }}"
|
||||
/>
|
||||
</header>
|
||||
Loading…
Add table
Add a link
Reference in a new issue