Fix race
This commit is contained in:
@@ -7,11 +7,67 @@
|
||||
<div class="flexcol">
|
||||
|
||||
{{#if (eq step "select-race")}}
|
||||
{{#each races as |race index|}}
|
||||
<span class="flexrow">
|
||||
{{race.name}} : <a class="chat-card-button chat-create-actor" data-step-name="{{@root.step}}" data-item-id="{{race._id}}" >Select it !</a>
|
||||
</span>
|
||||
<div>Select a race from the list below</div>
|
||||
<table class="table-create-actor">
|
||||
{{#each races as |race index|}}
|
||||
<tr>
|
||||
<td>{{race.name}}</td>
|
||||
<td><a class="chat-card-button chat-create-actor" data-step-name="{{@root.step}}" data-item-id="{{race._id}}" >Select it !</a></td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
</table>
|
||||
{{/if}}
|
||||
|
||||
{{#if (eq step "select-race-optionnal")}}
|
||||
<div>The selected Race has some optionnal abilities. Select one ability by clicking the relevant button below<br>
|
||||
Remaining abilities to select : {{nboptionnal}}
|
||||
</div>
|
||||
<table class="table-create-actor">
|
||||
{{#each optionnalabilities as |ability index|}}
|
||||
<tr>
|
||||
<td>{{ability.name}}</td>
|
||||
<td><a class="chat-card-button chat-create-actor" data-step-name="{{@root.step}}" data-item-id="{{ability._id}}" >Select it !</a></td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
</table>
|
||||
{{/if}}
|
||||
|
||||
{{#if (eq step "select-race-stats")}}
|
||||
<div>Select Stats to gain +1 modifier : <br>
|
||||
Remaining stats to select : {{numberstats}}
|
||||
</div>
|
||||
<table class="table-create-actor">
|
||||
{{#each stats as |stat key|}}
|
||||
{{#if @root.statsonlyonce}}
|
||||
{{#if stat.used}}
|
||||
{{else}}
|
||||
<tr>
|
||||
<td>{{stat.label}} ({{stat.abbrev}})</td>
|
||||
<td><a class="chat-card-button chat-create-actor" data-step-name="{{@root.step}}" data-stat-key="{{key}}" >Select it !</a></td>
|
||||
</tr>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<tr>
|
||||
<td>{{stat.label}} ({{stat.abbrev}})</td>
|
||||
<td><a class="chat-card-button chat-create-actor" data-step-name="{{@root.step}}" data-stat-key="{{key}}" >Select it !</a></td>
|
||||
</tr>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</table>
|
||||
{{/if}}
|
||||
|
||||
|
||||
{{#if (eq step "select-role")}}
|
||||
<div>Now select a Role for your character.
|
||||
</div>
|
||||
<table class="table-create-actor">
|
||||
{{#each roles as |role index|}}
|
||||
<tr>
|
||||
<td>{{role.name}}</td>
|
||||
<td><a class="chat-card-button chat-create-actor" data-step-name="{{@root.step}}" data-item-id="{{role._id}}" >Select it !</a></td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
</table>
|
||||
{{/if}}
|
||||
|
||||
</div>
|
||||
|
@@ -26,7 +26,42 @@
|
||||
{{/each}}
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<li class="flexrow"><label class="generic-label">Selectable Stats ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.selectablestats" {{checked data.selectablestats}}/></label>
|
||||
</li>
|
||||
{{#if data.selectablestats}}
|
||||
<li class="flexrow"><label class="generic-label">Select 1 stat only once?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.statsonlyonce" {{checked data.statsonlyonce}}/></label>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Number of selectable stats</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.numberstats" value="{{data.numberstats}}" data-dtype="Number"/>
|
||||
</li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<li class="flexrow"><label class="generic-label">Number of Optionnal Abilities</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.nboptionnal" value="{{data.nboptionnal}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Optionnal Abilities</label>
|
||||
</li>
|
||||
<ul class="ul-level1">
|
||||
<li class="flexrow"><div class="drop-optionnal-abilities"><label>Drop Abilities here !</label></div>
|
||||
</li>
|
||||
{{#each data.optionnalabilities as |ability idx|}}
|
||||
<li class="flexrow">
|
||||
<label name="data.optionnalabilities[{{idx}}].name"><a class="view-subitem" data-type="abilities" data-index="{{idx}}">{{ability.name}}</a></label>
|
||||
<div class="item-controls padd-left">
|
||||
<a class="item-control delete-subitem padd-left" data-type="optionnalabilities" data-index="{{idx}}" title="Delete Ability"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
<label class="generic-label">Description</label>
|
||||
<div class="small-editor item-text-long-line">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
|
Reference in New Issue
Block a user