Skip to content

Commit

Permalink
fix(area template): added custom field on 'armas' and 'tecnicas'
Browse files Browse the repository at this point in the history
  • Loading branch information
SouOWendel committed Dec 6, 2024
1 parent aa1137d commit a2e0466
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/item/item-armas-sheet.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@
<select name="system.areaTemplate.{{i}}.3">
{{selectOptions ../regraArea selected=(lookup this "3") localize=true}}
</select>
{{#ifEquals (lookup this "3") "custom"}}
<input type="text" name="system.areaTemplate.{{i}}.5" value="{{lookup this "5"}}" data-dtype="Number"/>
{{/ifEquals}}
<i class="fa-solid fa-equals"></i>
<input type="text" name="system.areaTemplate.{{i}}.4" value="{{lookup this "4"}}" data-dtype="Number" disabled/>
<a class="areaTemplate-control delete-areaTemplate"><i class="fa-solid fa-trash"></i></a>
Expand Down
3 changes: 3 additions & 0 deletions templates/item/item-tecnicas-sheet.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@
<select name="system.areaTemplate.{{i}}.3">
{{selectOptions ../regraArea selected=(lookup this "3") localize=true}}
</select>
{{#ifEquals (lookup this "3") "custom"}}
<input type="text" name="system.areaTemplate.{{i}}.5" value="{{lookup this "5"}}" data-dtype="Number"/>
{{/ifEquals}}
<i class="fa-solid fa-equals"></i>
<input type="text" name="system.areaTemplate.{{i}}.4" value="{{lookup this "4"}}" data-dtype="Number" disabled/>
<a class="areaTemplate-control delete-areaTemplate"><i class="fa-solid fa-trash"></i></a>
Expand Down

0 comments on commit a2e0466

Please sign in to comment.