59 lines
2.8 KiB
HTML
59 lines
2.8 KiB
HTML
<div class="{{cssClass}} itemsheet">
|
|
<div class="item-type-bar">
|
|
<span class="item-type-label"><i class="fas fa-box"></i> {{ localize 'MGT2.Items.Container' }}</span>
|
|
{{#if system.locked}}<span class="item-type-label" style="margin-left:8px;"><i class="fa-solid fa-lock"></i></span>{{/if}}
|
|
</div>
|
|
<div class="item-sheet-header">
|
|
<img class="item-header-img" src="{{item.img}}" data-edit="img" data-tooltip="{{item.name}}" />
|
|
<input class="item-header-name" name="name" type="text" value="{{item.name}}" data-dtype="String" />
|
|
</div>
|
|
<nav class="horizontal-tabs tabs" data-group="primary">
|
|
<a class="item tab-select" data-tab="tab1">{{ localize 'MGT2.Items.Description' }}</a>
|
|
<a class="item tab-select" data-tab="tab2">{{ localize 'MGT2.Items.Details' }}</a>
|
|
{{#if isGM}}
|
|
<a class="item tab-select" data-tab="tab3">{{ localize 'MGT2.Items.Configuration' }}</a>
|
|
{{/if}}
|
|
</nav>
|
|
<div class="tab-content-area">
|
|
<div class="tab" data-group="primary" data-tab="tab1">
|
|
<div class="field-group">
|
|
<label>{{ localize 'MGT2.Items.Description' }}</label>
|
|
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
|
</div>
|
|
</div>
|
|
<div class="tab" data-group="primary" data-tab="tab2">
|
|
<div class="item-details-grid">
|
|
<div class="field-row">
|
|
<label>{{ localize 'MGT2.Items.Weight' }} ({{unitlabels.weight}})</label>
|
|
<input type="number" value="{{weight}}" readonly style="opacity:0.7;" class="short" />
|
|
</div>
|
|
<div class="field-row">
|
|
<label>{{ localize 'MGT2.Items.Location' }}</label>
|
|
<input type="text" name="system.location" value="{{system.location}}" data-dtype="String" />
|
|
</div>
|
|
<div class="field-row field-row--check">
|
|
<label class="mgt2-checkbox">
|
|
<input type="checkbox" name="system.onHand" id="onhand-{{item.id}}" data-dtype="Boolean" {{checked system.onHand}} />
|
|
{{ localize 'MGT2.Items.OnHand' }}
|
|
</label>
|
|
</div>
|
|
{{#if isGM}}
|
|
<div class="field-row field-row--check">
|
|
<label class="mgt2-checkbox">
|
|
<input type="checkbox" name="system.locked" id="locked-{{item.id}}" data-dtype="Boolean" {{checked system.locked}} />
|
|
{{ localize 'MGT2.Items.Locked' }}
|
|
</label>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
{{#if isGM}}
|
|
<div class="tab" data-group="primary" data-tab="tab3">
|
|
<div class="field-group">
|
|
<label>{{ localize 'MGT2.Items.LockedDescription' }}</label>
|
|
{{formInput systemFields.lockedDescription enriched=enrichedLockedDescription value=system.lockedDescription name="system.lockedDescription" toggled=true}}
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
</div> |