136 lines
8.3 KiB
HTML
136 lines
8.3 KiB
HTML
<form class="flexcol {{cssClass}}" autocomplete="off">
|
|
|
|
{{!-- Sheet Header --}}
|
|
<header class="sheet-header">
|
|
<div class="header-container">
|
|
<div><input name="name" class="pc-name" type="text" placeholder="Name" value="{{data.name}}"></div>
|
|
<div class="caracs">
|
|
<div class="caracs-header"><h3>Caracteristiques</h3></div>
|
|
<div><label for="strenght">Str</label></div>
|
|
<div><input name="data.caracteristics.str" id="strenght" type="number" value="{{systemData.caracteristics.str}}"></div>
|
|
<div><label for="intelligence">Int</label></div>
|
|
<div><input name="data.caracteristics.int" id="intelligence" type="number" value="{{systemData.caracteristics.int}}"></div>
|
|
<div><label for="agility">Agi</label></div>
|
|
<div><input name="data.caracteristics.agi" id="agility" type="number" value="{{systemData.caracteristics.agi}}"></div>
|
|
<div><label for="willpower">WP</label></div>
|
|
<div><input name="data.caracteristics.wpr" id="willpower" type="number" value="{{systemData.caracteristics.wpr}}"></div>
|
|
<div><label for="psy">Psy</label></div>
|
|
<div><input name="data.caracteristics.psy" id="psy" type="number" value="{{systemData.caracteristics.psy}}"></div>
|
|
<div><label for="charisma">Chr</label></div>
|
|
<div><input name="data.caracteristics.chr" id="charisma" type="number" value="{{systemData.caracteristics.chr}}"></div>
|
|
<div><label for="perception">Per</label></div>
|
|
<div><input name="data.caracteristics.per" id="perception" type="number" value="{{systemData.caracteristics.per}}"></div>
|
|
<div><label for="chance">Luk</label></div>
|
|
<div><input name="data.caracteristics.chn" id="chance" type="number" value="{{systemData.caracteristics.chn}}"></div>
|
|
</div>
|
|
<div>Zone PV</div>
|
|
<div>Zone Armure</div>
|
|
</div>
|
|
</header>
|
|
|
|
{{!-- Sheet Tab Navigation --}}
|
|
<nav class="sheet-tabs tabs" data-group="primary">
|
|
<a class="item" data-tab="description">Description</a>
|
|
<a class="item" data-tab="items">Items</a>
|
|
<a class="item" data-tab="attributes">Attributes</a>
|
|
<a class="item" data-tab="torque">Torque</a>
|
|
</nav>
|
|
|
|
{{!-- Sheet Body --}}
|
|
<section class="sheet-body">
|
|
|
|
{{!-- Biography Tab --}}
|
|
<div class="tab description" data-group="primary" data-tab="description">
|
|
{{editor content=systemData.biography target="data.biography" button=true owner=owner editable=editable rollData=rollData}}
|
|
</div>
|
|
|
|
{{!-- Owned Items Tab --}}
|
|
<div class="tab items" data-group="primary" data-tab="items">
|
|
<ol class="item-list">
|
|
{{#each data.items as |item id|}}
|
|
<li class="item flexrow" data-item-id="{{item._id}}">
|
|
<img src="{{item.img}}" title="{{item.name}}" width="24" height="24" />
|
|
<h4 class="item-name">{{item.name}}</h4>
|
|
{{!-- Iterate through all attributes on the item and output buttons for any that are formula. --}}
|
|
<div class="item-buttons">
|
|
{{#each item.data.attributes as |itemAttr key|}}
|
|
{{#if itemAttr.dtype}}
|
|
{{#if itemAttr.isFormula}}
|
|
{{!-- Use the items.name.key format for shorthand. --}}
|
|
{{#if ../../shorthand}}
|
|
<button class="item-button rollable" data-roll="@items.{{slugify item.name}}.{{key}}" data-label="{{ itemAttr.label }}"
|
|
title="{{itemAttr.value}}">{{itemAttr.label}}</button>
|
|
{{!-- Use the items.name.attributes.key.value format otherwise. --}}
|
|
{{else}}
|
|
<button class="item-button rollable"
|
|
data-roll="@items.{{slugify item.name}}.attributes.{{key}}.value" data-label="{{ itemAttr.label }}"
|
|
title="{{itemAttr.value}}">{{itemAttr.label}}</button>
|
|
{{/if}}
|
|
{{/if}}
|
|
{{else}}
|
|
{{#each itemAttr as |itemGroupedAttr groupedKey|}}
|
|
{{#if itemGroupedAttr.isFormula}}
|
|
{{!-- Use the items.name.key format for shorthand. --}}
|
|
{{#if ../../../shorthand}}
|
|
<button class="item-button rollable" data-roll="@items.{{slugify item.name}}.{{key}}.{{groupedKey}}" data-label="{{ itemGroupedAttr.label }}"
|
|
title="{{itemGroupedAttr.value}}">{{itemGroupedAttr.label}}</button>
|
|
{{!-- Use the items.name.attributes.key.value format otherwise. --}}
|
|
{{else}}
|
|
<button class="item-button rollable"
|
|
data-roll="@items.{{slugify item.name}}.attributes.{{key}}.{{groupedKey}}.value" data-label="{{ itemGroupedAttr.label }}"
|
|
title="{{itemGroupedAttr.value}}">{{itemGroupedAttr.label}}</button>
|
|
{{/if}}
|
|
{{/if}}
|
|
{{/each}}
|
|
{{/if}}
|
|
{{/each}}
|
|
</div>
|
|
<div class="item-controls">
|
|
<a class="item-control" title="{{ localize "SIMPLE.ItemEdit" }}" data-action="edit"><i class="fas fa-edit"></i></a>
|
|
<a class="item-control" title="{{ localize "SIMPLE.ItemDelete" }}" data-action="delete"><i class="fas fa-trash"></i></a>
|
|
</div>
|
|
</li>
|
|
{{/each}}
|
|
</ol>
|
|
<p>
|
|
<a class="item-control" title="{{ localize "SIMPLE.ItemCreate" }}" data-action="create"><i class="fas fa-plus"></i> {{ localize "SIMPLE.ItemCreate" }}</a>
|
|
</p>
|
|
</div>
|
|
|
|
{{!-- Attributes Tab --}}
|
|
<div class="tab attributes" data-group="primary" data-tab="attributes">
|
|
<header class="attributes-header flexrow">
|
|
<span class="attribute-key">{{localize "SIMPLE.AttributeKey"}}</span>
|
|
<span class="attribute-value">{{localize "SIMPLE.AttributeValue"}}</span>
|
|
<span class="attribute-label">{{localize "SIMPLE.AttributeLabel"}}</span>
|
|
<span class="attribute-dtype">{{localize "SIMPLE.AttributeDtype"}}</span>
|
|
<a class="attribute-control" data-action="create" data-group="{{group}}"><i class="fas fa-plus"></i></a>
|
|
</header>
|
|
|
|
{{!-- Render the attribute list partial. --}}
|
|
{{> "systems/vtt_sys_ravenous/templates/parts/sheet-attributes.html" attributes=systemData.ungroupedAttributes dtypes=dtypes}}
|
|
|
|
{{!-- Render the grouped attributes partial and control. --}}
|
|
<div class="groups">
|
|
{{> "systems/vtt_sys_ravenous/templates/parts/sheet-groups.html" attributes=systemData.groupedAttributes groups=systemData.groups dtypes=dtypes}}
|
|
|
|
<div class="group-controls flexrow">
|
|
<input class="group-prefix" type="text" value=""/>
|
|
<a class="button group-control" data-action="create-group"><i class="fas fa-plus"></i>Add Attribute Group</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{{!-- Torque Tab --}}
|
|
<div class="tab attributes" data-group="primary" data-tab="torque">
|
|
<header class="attributes-header flexrow">
|
|
<span class="attribute-key">{{localize "SIMPLE.AttributeKey"}}</span>
|
|
<span class="attribute-value">{{localize "SIMPLE.AttributeValue"}}</span>
|
|
<span class="attribute-label">{{localize "SIMPLE.AttributeLabel"}}</span>
|
|
<span class="attribute-dtype">{{localize "SIMPLE.AttributeDtype"}}</span>
|
|
<a class="attribute-control" data-action="create" data-group="{{group}}"><i class="fas fa-plus"></i></a>
|
|
</header>
|
|
</div>
|
|
</section>
|
|
</form>
|