Files
uberwald 3db03f5159 fix(templates): complete revision of actor templates to remove duplicates and fix inconsistencies
- Fixed grid-2 to grid-2col CSS class usage
- Replaced improper <p><a> tags with <div><a> in item lists (actor-weapons, actor-defenses, group-items, group-vehicles)
- Fixed typos: smarttlk -> smarttl, compétence -> Compétence
- Fixed duplicate class attributes
- Standardized HTML comments to Handlebars comments ({{!-- --}})
- Added missing localizations for Character and Skills headers
- Removed orphan {{/if}} tag in character-id.hbs
- Created npc-skill-category.hbs partial to eliminate 150+ lines of duplicated skill category code in actor-npc-sheet.hbs
- Created item-list.hbs partial for reusable item list display
- Fixed html.find(...).forEach error in roll.mjs by ensuring jQuery object
- Added .history/ to .gitignore

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-04 22:58:46 +02:00

86 lines
2.5 KiB
Handlebars

<div class="grid grid-2col">
<div>
<ol class="items-list">
<li class="item flexrow items-header">
<div
class="item-name"
style="flex:4;"
>{{ localize
'IDENTITY.name'}}</div>
<div class="item-quantity">{{ localize 'VERMINE.qty'}}</div>
<div class="item-weight">{{ localize 'VERMINE.weight'}}</div>
<div class="item-controls">
<a
class="item-control item-create"
title="Create item"
data-type="item"
><i class="fas fa-plus"></i></a>
</div>
</li>
{{#each gear as |item id|}}
<li
class="item flexrow flex-group-center"
data-item-id="{{item._id}}"
>
<div
class="item-name"
style="flex:4;"
>
<div class="item-image">
<a
class="item-control item-edit"
data-roll-type="item"
><img
src="{{item.img}}"
title="{{item.name}}"
width="24"
height="24"
/></a>
</div>
<a
class="item-control item-edit"
data-tooltip="Edit Item"
>{{item.name}} </a>
{{#if item.system.damages.value}}
/
<span data-tooltip="{{item.damagedLabel}}">{{{item.damagedIcon}}}</span>
{{/if}}
</div>
<div>
<a class="item-control item-edit" title="Edit Item">
{{item.system.quantity}}
</a>
</div>
<div>
<a class="item-control item-edit" title="Edit Item">
{{item.system.weight}}
</a>
</div>
<div class="item-controls">
<a
class="item-control item-delete"
title="Delete Item"
><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ol>
</div>
<div>
<h4>{{ localize 'IDENTITY.notes'}}</h4>
{{editor system.equipment.description target="system.equipment.description"
button=true owner=owner editable=editable}}
</div>
</div>
<div class="grid grid-2col">
<div class="weapons">
<h4>{{localize 'ITEMS.weapons'}}</h4>
{{> "systems/vermine2047/templates/actor/parts/actor-weapons.hbs"}}
</div>
<div class="protections">
<h4>{{localize 'ITEMS.defenses'}}</h4>
{{> "systems/vermine2047/templates/actor/parts/actor-defenses.hbs"}}
</div>
</div>