foundry-sw5e/templates/actors/newActor/character-sheet.html
supervj 48b6ab8e18 Move cogs closer to Armor and Movement headers
The cogs still show up at the same time on both sheets, but this is certainly better, at least they are clickable now.
2021-08-13 10:21:36 -04:00

157 lines
No EOL
6.9 KiB
HTML

<form class="{{cssClass}} swalt-sheet" autocomplete="off">
{{!-- Sheet Header --}}
<header class="panel">
<img class="profile" src="{{actor.img}}" title="{{actor.name}}" data-edit="img" />
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-warnings.html"}}
<h1 class="character-name">
<input name="name" type="text" value="{{actor.name}}" placeholder="{{ localize 'SW5E.Name' }}" />
</h1>
<div class="level-experience">
<div class="charlevel" title="{{multiclassLabels}}">
{{ localize "SW5E.Level" }} {{data.details.level}} {{classLabels}}
</div>
{{#unless disableExperience}}
<div class="experience">
<input name="data.details.xp.value" type="text" value="{{data.details.xp.value}}" data-dtype="Number"
placeholder="0" />
<span class="sep">/</span>
<span class="max">{{data.details.xp.max}}</span>
</div>
<div class="xpbar">
<span class="bar" style="width: {{data.details.xp.pct}}%"></span>
</div>
{{/unless}}
</div>
<div class="summary">
<input type="text" name="data.details.species" value="{{data.details.species}}"
placeholder="{{ localize 'SW5E.Species' }}" />
<input type="text" name="data.details.background" value="{{data.details.background}}"
placeholder="{{ localize 'SW5E.Background' }}" />
<input type="text" name="data.details.alignment" value="{{data.details.alignment}}"
placeholder="{{ localize 'SW5E.Alignment' }}" />
<div class="proficiency">
{{ localize "SW5E.Proficiency" }} {{numberFormat data.attributes.prof decimals=0 sign=true}}
</div>
</div>
{{!-- Header Attributes --}}
<div class="attributes">
{{!-- ARMOR CLASS --}}
<section>
<h1 class="attribute-name armor">
{{ localize "SW5E.ArmorClass" }}
<a class="config-button" data-action="armor" title="{{localize 'SW5E.ArmorConfig'}}"><i class="fas fa-cog"></i></a>
</h1>
<div class="attribute-value attributable" data-property="attributes.ac">
<span>{{data.attributes.ac.value}}</span>
</div>
</section>
{{!-- HIT POINTS --}}
<section>
<h1>{{ localize "SW5E.HP" }}</h1>
<div class="attribute-value multiple">
<input name="data.attributes.hp.value" type="text" value="{{data.attributes.hp.value}}"
data-dtype="Number" placeholder="10" class="value-number" />
<span class="value-separator">/</span>
<input name="data.attributes.hp.max" type="text" value="{{data.attributes.hp.max}}"
data-dtype="Number" placeholder="10" class="value-number" />
</div>
<footer class="attribute-footer hit-points">
<input name="data.attributes.hp.temp" type="text" class="temphp" placeholder="+Temp"
value="{{data.attributes.hp.temp}}" data-dtype="{{data.attributes.hp.type}}" />
<input name="data.attributes.hp.tempmax" type="text" class="temphp" placeholder="+Max"
value="{{data.attributes.hp.tempmax}}" data-dtype="{{data.attributes.hp.type}}" />
</footer>
</section>
{{!-- HIT DICE / SHORT & LONG REST BUTTONS --}}
<section>
<h1>
{{ localize "SW5E.HitDice" }}
<a class="config-button" data-action="hit-dice" title="{{localize 'SW5E.HitDiceConfig'}}"><i class="fas fa-cog"></i></a>
</h1>
<div class="attribute-value multiple">
<span class="value-number">{{data.attributes.hd}}</span>
<span class="value-separator">/</span>
<span class="value-number">{{data.details.level}}</span>
</div>
<footer class="attribute-footer hit-dice">
<button type="button" class="rest short-rest">{{ localize "SW5E.RestS" }}</button>
<button type="button" class="rest long-rest">{{ localize "SW5E.RestL" }}</button>
</footer>
</section>
{{!-- INITIATIVE --}}
<section>
<h1 class="attribute-name box-title rollable" data-action="rollInitiative">{{ localize "SW5E.Initiative" }}</h1>
<div class="attribute-value">
<span class="initiative">{{numberFormat data.attributes.init.total decimals=0 sign=true}}</span>
</div>
<footer class="attribute-footer initiative">
<span>{{ localize "SW5E.Modifier" }}</span>
<input name="data.attributes.init.value" type="text" data-dtype="Number" placeholder="0"
value="{{numberFormat data.attributes.init.value decimals=0 sign=true}}"/>
</footer>
</section>
{{!-- SPEED / MOVEMENT TYPES --}}
<section>
<h1 class="attribute-name movement">
{{ localize "SW5E.Movement" }}
<a class="config-button" data-action="movement" title="{{localize 'SW5E.MovementConfig'}}"><i class="fas fa-cog"></i></a>
</h1>
<div class="attribute-value">
<span>{{movement.primary}}</span>
</div>
<footer class="attribute-footer">
<span>{{movement.special}} {{data.attributes.movement.units}}</span>
</footer>
</section>
</div>
</header>
{{!-- PC Sheet Navigation --}}
<nav class="sheet-navigation root-tabs" data-group="primary">
<button class="item active" data-tab="attributes">{{localize "SW5E.Core"}}</button>
<button class="item" data-tab="inventory">{{ localize "SW5E.Inventory" }}</button>
<button class="item" data-tab="features">{{ localize "SW5E.Features" }}</button>
<button class="item" data-tab="force-powerbook">{{ localize "SW5E.ForcePowerbook" }}</button>
<button class="item" data-tab="tech-powerbook">{{ localize "SW5E.TechPowerbook" }}</button>
<button class="item" data-tab="effects">{{ localize "SW5E.Effects" }}</button>
<button class="item" data-tab="biography">{{ localize "SW5E.Biography" }}</button>
</nav>
{{!-- PC Sheet Body --}}
<section class="sheet-body">
{{!-- Core Tab --}}
<section class="tab attributes core" data-group="primary" data-tab="attributes">
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-core.html" sections=attributes}}
</section>
{{!-- Inventory Tab --}}
<section class="tab inventory" data-group="primary" data-tab="inventory">
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-inventory.html" sections=inventory}}
</section>
{{!-- Features Tab --}}
<section class="tab features" data-group="primary" data-tab="features">
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-features.html" sections=features}}
</section>
{{!-- Powerbook Tabs --}}
<section class="tab force-powerbook" data-group="primary" data-tab="force-powerbook">
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-force-powerbook.html"}}
</section>
<section class="tab tech-powerbook" data-group="primary" data-tab="tech-powerbook">
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-tech-powerbook.html"}}
</section>
{{!-- Effects Tab --}}
<section class="tab effects flexcol" data-group="primary" data-tab="effects">
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-active-effects.html"}}
</section>
{{!-- Biography Tab --}}
<section class="tab biography" data-group="primary" data-tab="biography">
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-biography.html"}}
</section>
</section>
</form>