83 lines
No EOL
3.9 KiB
Handlebars
83 lines
No EOL
3.9 KiB
Handlebars
<div class="dh-importer-preview">
|
|
<div class="actor-list">
|
|
{{#each parsedData as |actor idx|}}
|
|
<div class="actor-preview">
|
|
<div class="header-row">
|
|
<div class="image-picker">
|
|
<img src="{{actor.img}}" data-edit="img.{{actor.name}}" height="48" width="48" />
|
|
<input type="text" name="img.{{actor.name}}" value="{{actor.img}}" style="display:none">
|
|
</div>
|
|
<h3>
|
|
<span>{{actor.name}}</span>
|
|
<small>Tier {{actor.system.tier}} {{actor.system.type}}</small>
|
|
</h3>
|
|
</div>
|
|
<div class="stats">
|
|
{{#if actor.system.resources.hitPoints.max}}<span><strong>HP:</strong>
|
|
{{actor.system.resources.hitPoints.max}}</span>{{/if}}
|
|
{{#if actor.system.resources.stress.max}}<span><strong>Stress:</strong>
|
|
{{actor.system.resources.stress.max}}</span>{{/if}}
|
|
<span><strong>Difficulty:</strong> {{actor.system.difficulty}}</span>
|
|
{{#if actor.system.attack.name}}
|
|
{{#if actor.system.attack.name}}
|
|
<span class="attack-pill">
|
|
<div class="image-picker small" style="border:none; margin-right:5px; width:24px; height:24px;">
|
|
<img src="icons/svg/item-bag.svg" data-edit="attackImg.{{actor.name}}" height="24" width="24" />
|
|
<input type="text" name="attackImg.{{actor.name}}" value="icons/svg/item-bag.svg"
|
|
style="display:none">
|
|
</div>
|
|
<strong>Attack:</strong> {{actor.system.attack.name}}
|
|
</span>
|
|
{{/if}}
|
|
{{/if}}
|
|
</div>
|
|
|
|
<div class="features-list">
|
|
<h4>Features</h4>
|
|
<ul>
|
|
{{#each actor.items as |item itemIdx|}}
|
|
{{#if (eq item.type "feature")}}
|
|
<li class="feature-item">
|
|
<div class="feature-header">
|
|
<div class="image-picker small">
|
|
<img src="{{item.img}}" data-edit="itemImg.{{actor.name}}.{{item.name}}" height="24"
|
|
width="24" />
|
|
<input type="text" name="itemImg.{{actor.name}}.{{item.name}}" value="{{item.img}}"
|
|
style="display:none">
|
|
</div>
|
|
<strong>{{item.name}}</strong>
|
|
</div>
|
|
|
|
{{#if (lookup ../foundFeatures item.name)}}
|
|
<div class="feature-match">
|
|
<label>
|
|
<input type="checkbox" name="useFeatures.{{actor.name}}.{{item.name}}"
|
|
value="{{lookup (lookup ../foundFeatures item.name) 'uuid'}}" checked>
|
|
Use found in <strong>{{lookup (lookup ../foundFeatures item.name) 'pack'}}</strong>
|
|
</label>
|
|
</div>
|
|
{{else}}
|
|
<span class="new-tag">New</span>
|
|
{{/if}}
|
|
|
|
<div class="desc">{{{item.system.description}}}</div>
|
|
</li>
|
|
{{/if}}
|
|
{{/each}}
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="actor-options">
|
|
<label>
|
|
<input type="checkbox" name="openSheet.{{actor.name}}"> Open Sheet after Import
|
|
</label>
|
|
</div>
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
|
|
<div class="action-footer">
|
|
<button type="button" data-action="back"><i class="fas fa-arrow-left"></i> Back</button>
|
|
<button type="button" data-action="import"><i class="fas fa-file-import"></i> Confirm Import</button>
|
|
</div>
|
|
</div> |