-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* port changes to attachments #1215
- Loading branch information
Showing
4 changed files
with
39 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{{!-- qualities List --}} | ||
<ul class="talent-list"> | ||
<li class="talents-header flexrow"> | ||
<div class="header-name">{{ localize "SWFFG.ItemQualities" }}</div> | ||
<div></div> | ||
</li> | ||
<ul class="items-list"> | ||
{{#each data.itemmodifier as |item id|}} | ||
<li class="item flexrow force-power" data-item-id="{{item._id}}" data-desc="{{item.system.description}}" data-upgrade-name="{{item.name}}" data-item-type="itemmodifier" data-item-index="{{ @index }}"> | ||
<div class="item-name"> | ||
{{item.name}} {{ item.system.rank }} | ||
</div> | ||
<div class="item-controls"> | ||
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a> | ||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a> | ||
</div> | ||
</li> | ||
{{/each }} | ||
|
||
{{!-- qualities added by attachments --}} | ||
{{#each data.itemattachment as |item id|}} | ||
{{#each item.system.itemmodifier as |mod mod_id| }} | ||
{{#if mod.system.active }} | ||
<li class="item flexrow force-power" data-item-id="{{mod._id}}" data-desc="{{mod.system.description}}" data-upgrade-name="{{mod.name}}" data-item-type="itemmodifier" data-item-index="{{ @index }}"> | ||
<div class="item-name"> | ||
{{!-- render without controls because these are from the attachment --}} | ||
{{mod.name}} {{ mod.system.rank }} ({{ localize "SWFFG.Items.Sheets.Qualities.From" }} {{item.name}}) | ||
</div> | ||
</li> | ||
{{/if }} | ||
{{/each }} | ||
{{/each}} | ||
</ul> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters