195 lines
9.9 KiB
HTML
195 lines
9.9 KiB
HTML
<form class="pf1 {{cssClass}}" autocomplete="off">
|
|
|
|
<!-- HEADER -->
|
|
<header class="sheet-header flexrow">
|
|
<h1 class="charname">
|
|
<input name="name" type="text" value="{{actor.name}}" placeholder="{{localize "ls.lootName"}}" />
|
|
</h1>
|
|
|
|
{{#if isGM}}
|
|
{{#ifeq lootsheettype "Merchant"}}
|
|
<div class="charbutton">
|
|
<button class="price-modifier" type="price-modifier" name="price-modifier" value=""><i class="fa fa-balance-scale"></i> {{localize "ls.priceModifierTitle"}}</button>
|
|
</div>
|
|
{{/ifeq}}
|
|
{{#ifeq lootsheettype "Loot"}}
|
|
<div class="charbutton">
|
|
<button class="convert-loot" type="convert-loot" name="convert-loot" value=""><i class="fa fa-coins"></i> {{localize "ls.convertLootTitle"}}</button>
|
|
</div>
|
|
{{/ifeq}}
|
|
{{/if}}
|
|
|
|
</header>
|
|
|
|
<section class="sheet-lower flexrow">
|
|
|
|
<!-- SIDEBAR -->
|
|
<section class="sheet-sidebar sidebar">
|
|
<div class="sheet-profile-img">
|
|
{{#if isGM}}<img class="sheet-profile-small" src="{{actor.img}}" title="{{actor.name}}" data-edit="img" />{{/if}}
|
|
{{#unless isGM}}<img class="sheet-profile" src="{{actor.img}}" title="{{actor.name}}" data-edit="img" />{{/unless}}
|
|
</div>
|
|
{{#if isGM}} {{> "modules/lootsheetnpcpf1/template/npc-sheet-gmpart.html"}} {{/if}}
|
|
</section>
|
|
|
|
<!-- BODY -->
|
|
<section class="sheet-content content">
|
|
{{#unless actor.visible}}
|
|
<span class="warning">{{localize "ls.noAccesToSheet"}}</span>
|
|
{{/unless}}
|
|
|
|
{{#if actor.visible}}
|
|
<div class="flexcol active">
|
|
<nav class="sheet-navigation tabs" data-group="primary">
|
|
<a class="item active" data-tab="inventory">{{localize "ls.inventory"}}</a>
|
|
<a class="item" data-tab="biography">{{localize "ls.biography"}}</a>
|
|
</nav>
|
|
<section class="primary-body">
|
|
|
|
<div class="tab biography" data-tab="biography" data-group="primary">
|
|
{{editor content=data.details.biography.value target="data.details.biography.value" button=true owner=owner editable=editable}}
|
|
</div>
|
|
<div class="tab inventory active" data-tab="inventory" data-group="primary">
|
|
|
|
<!-- FEATURES -->
|
|
<div class="features" data-group="primary" data-tab="features">
|
|
{{#ifeq lootsheettype "Loot"}}
|
|
<div class="inventory-filters">
|
|
<ol class="currency flexrow">
|
|
<h3>
|
|
{{localize "PF1.Currency"}}
|
|
</h3>
|
|
{{#each data.currency as |v k|}}
|
|
<label class="denomination {{k}}">{{ lookup ../config.currencies k }}</label>
|
|
<input type="text" name="data.currency.{{k}}" value="{{v}}" data-dtype="Number"/>
|
|
<label class="item currency-controls" data-item-id="{{k}}">
|
|
{{#if ../canAct}}
|
|
{{#unless ../../isGM}}
|
|
<a class="currency-controls item-control item-loot" title="{{localize "ls.lootCoins"}}"><i class="fas fa-gem"></i></a>
|
|
{{/unless}}
|
|
{{/if}}
|
|
</label>
|
|
{{/each}}
|
|
</ol>
|
|
<ol class="currency flexrow">
|
|
<h3>
|
|
{{localize "PF1.WeightlessCurrency"}}
|
|
</h3>
|
|
{{#each data.altCurrency as |v k|}}
|
|
<label class="denomination {{k}}">{{ lookup ../config.currencies k }}</label>
|
|
<input type="text" name="data.altCurrency.{{k}}" value="{{v}}" data-dtype="Number"/>
|
|
<label class="item currency-controls" data-item-id="wl_{{k}}">
|
|
{{#if ../canAct}}
|
|
{{#unless ../../isGM}}
|
|
<a class="currency-controls item-control item-loot" title="{{localize "ls.lootCoins"}}"><i class="fas fa-gem"></i></a>
|
|
{{/unless}}
|
|
{{/if}}
|
|
</label>
|
|
{{/each}}
|
|
</ol>
|
|
</div>
|
|
{{/ifeq}}
|
|
<ul class="inventory-list">
|
|
{{#each actor.features as |section sid|}}
|
|
<li class="inventory-header flexrow">
|
|
<h3 class="item-name flexrow">{{section.label}}</h3>
|
|
{{#if ../isGM}}
|
|
<div class="item-detail item-identified"><i class="icon icon-quill-ink large" title="{{localize "PF1.Identified"}}"></i></div>
|
|
{{/if}}
|
|
<div class="item-detail item-weight"><i class="icon icon-weight large" src="systems/pf1/icons/actions/weight.svg" title="{{localize "PF1.Weight"}}"></i></div>
|
|
<div class="item-detail item-weight"><i class="fas fa-coins large" title="{{localize "ls.price"}}"></i></div>
|
|
<div class="item-controls">
|
|
{{#if ../isGM}}
|
|
<a class="item-control item-create" title="{{localize "ls.createItem"}}" data-type="{{section.type}}">
|
|
<i class="fas fa-plus"></i> {{localize "ls.add"}}
|
|
</a>
|
|
{{/if}}
|
|
</div>
|
|
</li>
|
|
<ol class="item-list">
|
|
{{#each section.items as |item iid|}}
|
|
<li class="item flexrow" data-item-id="{{item._id}}" data-item-quantity="{{item.data.quantity}}">
|
|
<div class="item-name flexrow rollable">
|
|
<div class="item-image" style="background-image: url({{item.img}})"></div>
|
|
<h4 class="rollable{{#if item.empty}} strikethrough-text{{/if}}">{{ lootsheetname item.name item.data.quantity item.flags.lootsheetnpcpf1.infinite}}</h4>
|
|
</div>
|
|
{{#if ../../isGM}}
|
|
<div class="item-detail item-identified">
|
|
<a class="item-control item-identify"><span>{{{item.labels.identified}}}</span></a>
|
|
</div>
|
|
{{/if}}
|
|
<div class="item-detail item-weight"><span>{{ lootsheetweight item.data.quantity item.data.weightConverted }} {{ ../../weightUnit }}</span></div>
|
|
<div class="item-detail item-weight"><span>{{ lootsheetprice item.showPrice ../../priceModifier }}<span></div>
|
|
<div class="item-controls">
|
|
{{#ifeq ../../lootsheettype "Loot"}}
|
|
{{#if ../../canAct}}
|
|
{{#unless ../../isGM}}
|
|
{{#if data.quantity}}
|
|
<a class="item-control item-loot" title="{{localize "ls.lootItem"}}"><i class="fas fa-gem"></i></a>
|
|
{{/if}}
|
|
{{/unless}}
|
|
{{/if}}
|
|
{{/ifeq}}
|
|
|
|
{{#ifeq ../../lootsheettype "Merchant"}}
|
|
{{#if ../../canAct}}
|
|
{{#unless ../../isGM}}
|
|
{{#if data.quantity}}
|
|
<a class="item-control item-buy" title="{{localize "ls.buyItem"}}"><i class="fas fa-dollar-sign"></i></a>
|
|
{{/if}}
|
|
{{/unless}}
|
|
{{/if}}
|
|
{{/ifeq}}
|
|
|
|
{{#if ../../isGM}}
|
|
<a class="item-control item-visibility" title="{{localize "ls.itemToggleVisibility"}}">
|
|
{{#if item.flags.lootsheetnpcpf1.secret}}<i class="fas fa-eye-slash"></i>{{/if}}
|
|
{{#unless item.flags.lootsheetnpcpf1.secret}}<i class="fas fa-eye"></i>{{/unless}}
|
|
</a>
|
|
{{#unless item.flags.lootsheetnpcpf1.infinite}}
|
|
<a class="item-control item-quantity-add"><i class="fas fa-plus"></i></a>
|
|
<a class="item-control item-quantity-subtract"><i class="fas fa-minus"></i></a>
|
|
<a class="item-control item-quantity-infinite"><i class="fas fa-infinity"></i></a>
|
|
{{/unless}}
|
|
{{#if item.flags.lootsheetnpcpf1.infinite}}
|
|
<a class="item-control item-quantity-infinite enabled"><i class="fas fa-infinity"></i></a>
|
|
{{/if}}
|
|
<a class="item-control item-edit" title="{{localize "ls.editItem"}}"><i class="fas fa-edit"></i></a>
|
|
<a class="item-control item-delete" title="{{localize "ls.deleteItem"}}"><i class="fas fa-trash"></i></a>
|
|
{{/if}}
|
|
</div>
|
|
</li>
|
|
{{/each}}
|
|
</ol>
|
|
{{/each}}
|
|
</ul>
|
|
</div>
|
|
|
|
{{#ifeq lootsheettype "Loot"}}
|
|
<div class="form-group totals">
|
|
<div class="item-count {{itemsWarning}}">
|
|
<i class="fas fa-box"> {{localize "ls.totalItems"}}:</i> {{totalItems}} {{maxItems}}
|
|
</div>
|
|
<div class="item-weight {{weightWarning}}">
|
|
<i class="fas fa-weight-hanging"> {{localize "ls.totalWeight"}}:</i> {{totalWeight}} {{maxWeight}} {{weightUnit}}
|
|
</div>
|
|
<div class="item-price">
|
|
<i class="fas fa-coins"> {{localize "ls.totalPrice"}}:</i> {{totalPrice}}
|
|
</div>
|
|
{{#if data.flags.lootsheetnpcpf1.displaySaleValueEnabled}}
|
|
<div class="adjusted-price">
|
|
<i class="fas fa-coins"> {{localize "ls.adjustedPrice"}}:</i> {{adjustedPrice}}
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
{{/ifeq}}
|
|
</div>
|
|
|
|
</section>
|
|
</div>
|
|
{{/if}}
|
|
</section>
|
|
</section>
|
|
</form>
|
|
|