Ajout des fonctions de gestion des soins
This commit is contained in:
@@ -7,22 +7,6 @@
|
||||
<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>
|
||||
<div class="item-stats-bar">
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Weight' }} ({{unitlabels.weight}})</span>
|
||||
<input type="number" value="{{weight}}" readonly style="opacity:0.7;" />
|
||||
</div>
|
||||
<div class="item-stat-pill-checkbox">
|
||||
<input type="checkbox" name="system.onHand" id="onhand-{{item.id}}" data-dtype="Boolean" {{checked system.onHand}} />
|
||||
<label for="onhand-{{item.id}}">{{ localize 'MGT2.Items.OnHand' }}</label>
|
||||
</div>
|
||||
{{#if isGM}}
|
||||
<div class="item-stat-pill-checkbox">
|
||||
<input type="checkbox" name="system.locked" id="locked-{{item.id}}" data-dtype="Boolean" {{checked system.locked}} />
|
||||
<label for="locked-{{item.id}}">{{ localize 'MGT2.Items.Locked' }}</label>
|
||||
</div>
|
||||
{{/if}}
|
||||
</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>
|
||||
@@ -34,20 +18,40 @@
|
||||
<div class="tab" data-group="primary" data-tab="tab1">
|
||||
<div class="field-group">
|
||||
<label>{{ localize 'MGT2.Items.Description' }}</label>
|
||||
<textarea name="system.description" rows="6">{{system.description}}</textarea>
|
||||
{{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="field-group">
|
||||
<label>{{ localize 'MGT2.Items.Location' }}</label>
|
||||
<input type="text" name="system.location" value="{{system.location}}" data-dtype="String" />
|
||||
<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>
|
||||
<textarea name="system.lockedDescription" rows="6">{{system.lockedDescription}}</textarea>
|
||||
{{formInput systemFields.lockedDescription enriched=enrichedLockedDescription value=system.lockedDescription name="system.lockedDescription" toggled=true}}
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
Reference in New Issue
Block a user