Sortierbare Items (#68)

Changes:
 + Items sind jetzt sortierbar
 + Items können jetzt auf andere Actor übertragen werden
 + Löschen button für Mods
Reviewed-on: #68
This commit was merged in pull request #68.
This commit is contained in:
2024-03-04 10:01:47 +01:00
parent bb9d20f586
commit e465bac5ef
9 changed files with 260 additions and 268 deletions
+5 -2
View File
@@ -5,11 +5,12 @@
<th></th>
<th></th>
<th><button class="add-mod">+</button></th>
<th></th>
</tr>
</thead>
<tbody>
<tbody class="items-list">
{{#each mods as |mod modId|}}
<tr>
<tr data-mod-id="{{modId}}" class="item">
<td>
<select class="select-mod-type" name="data.mods.{{modId}}.type" data-type="String">
{{#select mod.type}}
@@ -51,6 +52,8 @@
<td>
<input name="data.mods.{{modId}}.value" type="number" value="{{mod.value}}" data-dtype="Number" />
</td>
<td class="fixed-value"><a class="mod-delete" title="Delete Roll"><i class="fas fa-trash"></i></a></td>
</tr>
{{/each}}
</tbody>