standardization pass
This commit is contained in:
10
system/templates/items/peculiarity/peculiarities.html
Normal file
10
system/templates/items/peculiarity/peculiarities.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<fieldset class="weapons-content">
|
||||
<legend class="section-header">{{ localize 'l5r5e.advancements.title' }}</legend>
|
||||
<ul class="item-list">
|
||||
{{#each actor.items as |item id|}}
|
||||
{{#ifCond item.type '==' 'advancement'}}
|
||||
{{> 'systems/l5r5e/templates/items/advancement/advancement-entry.html' advancement=item id=id }}
|
||||
{{/ifCond}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
</fieldset>
|
||||
@@ -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="{{localize 'l5r5e.global.edit'}}"><i class="fas fa-edit"></i></li>
|
||||
<li class="item-control advancement-delete" title="{{localize 'l5r5e.global.delete'}}"><i class="fas fa-trash"></i></li>
|
||||
</ul>
|
||||
<div class="item-description">{{{ advancement.data.description }}}</div>
|
||||
</li>
|
||||
64
system/templates/items/peculiarity/peculiarity-sheet.html
Normal file
64
system/templates/items/peculiarity/peculiarity-sheet.html
Normal file
@@ -0,0 +1,64 @@
|
||||
<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=item.data.description target="item.data.description" button=true owner=owner editable=editable}}
|
||||
</article>
|
||||
{{!-- Attributes Tab --}}
|
||||
<article class="tab attributes" data-group="primary" data-tab="attributes">
|
||||
<label class="attribute-value checkbox">
|
||||
<input type="checkbox" name="data.in_curriculum" {{checked item.data.in_curriculum}} />
|
||||
in curriculum
|
||||
</label>
|
||||
|
||||
<!-- TODO j'ai mis tous les attributs en vrac, à réorganiser -->
|
||||
<select name="data.ring">
|
||||
{{#select item.data.ring}}
|
||||
{{#each item.data.ringsList as |obj|}}
|
||||
<option value="{{obj.id}}">{{obj.label}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
|
||||
<select class="attribute" name="data.peculiarity_type">
|
||||
{{#select item.data.peculiarity_type}}
|
||||
{{#each item.data.subTypesList as |type|}}
|
||||
<option value="{{type}}">{{type}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
|
||||
<label class="attribute">
|
||||
{{ localize 'l5r5e.data.types' }}
|
||||
<input type="text" name="data.types" value="{{item.data.types}}" />
|
||||
</label>
|
||||
|
||||
<label class="attribute">
|
||||
{{ localize 'l5r5e.advancements.spent' }}
|
||||
<input type="text" name="data.xp_used" value="{{item.data.xp_used}}" data-dtype="Number" placeholder="0" />
|
||||
</label>
|
||||
<label class="attribute">
|
||||
{{ localize 'l5r5e.rank' }}
|
||||
<input type="text" name="data.rank" value="{{data.rank}}" data-dtype="Number" placeholder="0" />
|
||||
</label>
|
||||
<label class="attribute">
|
||||
{{ localize 'l5r5e.bought_at_rank' }}
|
||||
<input type="text" name="data.bought_at_rank" value="{{data.bought_at_rank}}" data-dtype="Number"
|
||||
placeholder="0" />
|
||||
</label>
|
||||
</article>
|
||||
</section>
|
||||
</form>
|
||||
Reference in New Issue
Block a user