working on advancements
This commit is contained in:
9
system/templates/item/advancement-entry.html
Normal file
9
system/templates/item/advancement-entry.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<li class="item advancement flexcol" data-advancement-id="{{advancement._id}}">
|
||||
<ul class="item-header advancement-controls">
|
||||
<li class="item-img"><img src="{{advancement.img}}" title="{{advancement.name}}" width="32px" height="32px"/></li>
|
||||
<li class="item-name">{{ advancement.name }}</li>
|
||||
<li class="item-control advancement-edit" title="Edit advancement"><i class="fas fa-edit"></i></li>
|
||||
<li class="item-control advancement-delete" title="Delete advancement"><i class="fas fa-trash"></i></li>
|
||||
</ul>
|
||||
<div class="item-description">{{{ advancement.data.description }}}</div>
|
||||
</li>
|
||||
31
system/templates/item/advancement-sheet.html
Normal file
31
system/templates/item/advancement-sheet.html
Normal file
@@ -0,0 +1,31 @@
|
||||
<form class="{{cssClass}}" autocomplete="off">
|
||||
<header class="sheet-header">
|
||||
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
|
||||
<div class="header-fields">
|
||||
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
|
||||
</div>
|
||||
</header>
|
||||
{{!-- Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
{{!-- Sheet Tab Navigation --}}
|
||||
<nav class="sheet-tabs tabs" data-group="primary">
|
||||
<a class="item" data-tab="description">Description</a>
|
||||
<a class="item" data-tab="attributes">Attributes</a>
|
||||
</nav>
|
||||
{{!-- Description Tab --}}
|
||||
<article class="tab flexcol" data-group="primary" data-tab="description">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</article>
|
||||
{{!-- Attributes Tab --}}
|
||||
<article class="tab attributes" data-group="primary" data-tab="attributes">
|
||||
<label class="attribute">
|
||||
{{ localize 'l5r5e.xp.spent' }}
|
||||
<input type="text" name="data.xp_used" value="{{data.xp_used}}" data-dtype="Number" placeholder="0"/>
|
||||
</label>
|
||||
<label class="attribute">
|
||||
{{ localize 'l5r5e.rank' }}
|
||||
<input type="text" name="data.rank" value="{{data.rank}}"/>
|
||||
</label>
|
||||
</article>
|
||||
</section>
|
||||
</form>
|
||||
10
system/templates/item/advancements.html
Normal file
10
system/templates/item/advancements.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<fieldset class="weapons-content">
|
||||
<legend class="section-header">{{ localize 'l5r5e.xp.Acquisitions' }}</legend>
|
||||
<ul class="item-list">
|
||||
{{#each actor.items as |item id|}}
|
||||
{{#if item.isAdvancement }}
|
||||
{{> 'systems/l5r5e/templates/item/advancement-entry.html' advancement=item id=id }}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
</fieldset>
|
||||
@@ -42,7 +42,7 @@
|
||||
<li class="attribute-value">Value</li>
|
||||
<li class="attribute-label">Label</li>
|
||||
<li class="attribute-dtype">Data Type</li>
|
||||
<li class="attribute-control" data-action="create"><i class="fas fa-plus"></i></li>
|
||||
<li class="attribute-control" data-action="create" title="{{ localize 'l5r5e.add' }}"><i class="fas fa-plus"></i></li>
|
||||
</ul>
|
||||
<ol class="attributes-list">
|
||||
{{#each data.attributes as |attr key|}}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<tr class="flexrow row">
|
||||
<th class="name" name="acquisition.name">{{ acquisition.name }}</li>
|
||||
<td class="xp" name="acquisition.xp">{{ acquisition.data.xp_used }}</li>
|
||||
<td class="rank" name="acquisition.rank">{{ acquisition.data.rank }}</li>
|
||||
<td class="name" name="advancement.name">{{ advancement.name }}</td>
|
||||
<td class="xp" name="advancement.xp">{{ advancement.data.xp_used }}</td>
|
||||
<td class="rank" name="advancement.rank">{{ advancement.data.rank }}</td>
|
||||
</tr>
|
||||
@@ -24,9 +24,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="flex">
|
||||
{{#each data.advancements as |acquisition acquisitionId| }}
|
||||
{{> 'systems/l5r5e/templates/sheets/actor/advancement.html' acquisition=acquisition }}
|
||||
{{/each}}
|
||||
{{#each actor.items as |advancement advancementId|}}
|
||||
{{#if advancement.isAdvancement }}
|
||||
{{> 'systems/l5r5e/templates/sheets/actor/advancement.html' advancement=advancement }}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</tbody>
|
||||
</table>
|
||||
</fieldset>
|
||||
@@ -2,7 +2,7 @@
|
||||
<fieldset class="section-header flexrow">
|
||||
<legend class="technique-controls">
|
||||
{{ localize 'l5r5e.techniques.title' }}
|
||||
<a class="technique-control technique-add" title="Add {{ localize 'l5r5e.techniques.title' }}"><i class="fas fa-plus"></i></a>
|
||||
<a class="technique-control technique-add" title="{{ localize 'l5r5e.add' }}"><i class="fas fa-plus"></i></a>
|
||||
</legend>
|
||||
<ul class="item-list">
|
||||
{{#each actor.items as |item id|}}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<fieldset class="section-header flexrow">
|
||||
<legend class="technique-controls">
|
||||
{{ localize 'l5r5e.techniques.title' }}
|
||||
<a class="technique-control technique-add" title="Add {{ localize 'l5r5e.techniques.title' }}"><i class="fas fa-plus"></i></a>
|
||||
<a class="technique-control technique-add" title="{{ localize 'l5r5e.add' }}"><i class="fas fa-plus"></i></a>
|
||||
</legend>
|
||||
<ul class="item-list">
|
||||
{{#each actor.items as |item id|}}
|
||||
|
||||
Reference in New Issue
Block a user