3db03f5159
- 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>
33 lines
1.2 KiB
Handlebars
33 lines
1.2 KiB
Handlebars
{{!-- Generic Item List Partial --}}
|
|
{{!-- Usage: --}}
|
|
{{!-- itemType - the localization key for the item type (e.g., 'ITEMS.abilities') --}}
|
|
{{!-- items - the array of items to display --}}
|
|
{{!-- createType - the data-type for creating new items --}}
|
|
{{!-- showSkill - whether to show skill association (for specialties) --}}
|
|
<h4>
|
|
<span>{{localize itemType}}</span>
|
|
<a class="item-control item-create" title="{{ localize 'UI.add' }}" data-type="{{createType}}">
|
|
<i class="fas fa-plus"></i>
|
|
</a>
|
|
</h4>
|
|
<ol class="list-item">
|
|
{{#each items as |item id|}}
|
|
<li class="item flexrow" data-item-id="{{item._id}}">
|
|
<div class="item-name" style="flex:4;">
|
|
<a class="item-control item-edit" title="{{ localize 'UI.effect_edit' }}">{{item.name}}</a>
|
|
{{#if showSkill}}
|
|
<span data-tooltip="{{ localize 'VERMINE.skill' }}">{{item.system.skill}}</span>
|
|
{{/if}}
|
|
</div>
|
|
<div class="item-controls flexrow">
|
|
{{#if item.system.description}}
|
|
<i class="fas fa-circle-question" data-tooltip="{{item.system.description}}"></i>
|
|
{{/if}}
|
|
<a class="item-control item-delete" title="{{ localize 'UI.effect_delete' }}">
|
|
<i class="fas fa-trash"></i>
|
|
</a>
|
|
</div>
|
|
</li>
|
|
{{/each}}
|
|
</ol>
|