Adds skills and how to add them to the sheet

This commit is contained in:
mstein
2022-06-09 23:50:19 +02:00
parent 403109921c
commit 0f06d4020b
16 changed files with 478 additions and 162 deletions
+22 -12
View File
@@ -4,19 +4,29 @@
<h1><input name="name" type="text" value="{{item.name}}" placeholder="Name" /></h1>
</header>
<div class="sheet-content">
<div class="flexrow">
<span>{{localize "midgard5.skill-value"}}</span>
<input name="data.fw" type="text" value="{{data.fw}}" data-dtype="Number" />
<table>
<tbody>
<tr>
<td>{{localize "midgard5.skill-value"}}</td>
<td><input name="data.fw" type="text" value="{{data.fw}}" data-dtype="Number" /></td>
</tr>
<span>{{localize "midgard5.attribute"}}</span>
<select class="select-attribute" name="data.attribute" data-type="String">
{{#select data.attribute}}
{{#each data.attributes as |attribute key|}}
<option value="{{key}}">{{localize attribute.long}}</option>
{{/each}}
{{/select}}
</select>
</div>
{{#unless (eq data.type "combat")}}
<tr>
<td>{{localize "midgard5.attribute"}}</td>
<td>
<select class="select-attribute" name="data.attribute" data-type="String">
{{#select data.attribute}}
{{#each data.attributes as |attribute key|}}
<option value="{{key}}">{{localize attribute.long}}</option>
{{/each}}
{{/select}}
</select>
</td>
</tr>
{{/unless}}
</tbody>
</table>
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
+10
View File
@@ -0,0 +1,10 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-img" src="{{item.img}}" data-edit="img" title="{{item.name}}" />
<h1><input name="name" type="text" value="{{item.name}}" placeholder="Name" /></h1>
</header>
<div class="sheet-content">
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
</form>