mirror of
https://github.com/RoY7x/worldbuilding.git
synced 2025-04-30 10:41:40 -04:00
55 lines
No EOL
2.7 KiB
HTML
55 lines
No EOL
2.7 KiB
HTML
<form class="flexcol {{cssClass}}" autocomplete="off">
|
|
<header class="sheet-header">
|
|
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}" />
|
|
<div class="header-fields">
|
|
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name" /></h1>
|
|
<div class="resource">
|
|
<label>Quantity</label>
|
|
<input type="text" name="data.quantity" value="{{data.quantity}}" data-dtype="Number" />
|
|
</div>
|
|
<div class="resource">
|
|
<label>Weight</label>
|
|
<input type="text" name="data.weight" value="{{data.weight}}" data-dtype="Number" />
|
|
</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="attributes">Attributes</a>
|
|
</nav>
|
|
|
|
{{!-- Sheet Body --}}
|
|
<section class="sheet-body">
|
|
|
|
{{!-- Description Tab --}}
|
|
<div class="tab" data-group="primary" data-tab="description">
|
|
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
|
</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/worldbuilding/templates/parts/sheet-attributes.html" attributes=data.ungroupedAttributes dtypes=dtypes}}
|
|
|
|
{{!-- Render the grouped attributes partial and control. --}}
|
|
<div class="groups">
|
|
{{> "systems/worldbuilding/templates/parts/sheet-groups.html" attributes=data.groupedAttributes groups=data.groups dtypes=dtypes}}
|
|
|
|
<div class="group-controls flexrow">
|
|
<input class="group-prefix" type="text" val=""/>
|
|
<a class="button group-control" data-action="create-group"><i class="fas fa-plus"></i>Add Attribute Group</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</form> |