Initial
This commit is contained in:
16
resources/app/templates/dice/config.html
Normal file
16
resources/app/templates/dice/config.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<form class="{{ cssClass }} flexcol" autocomplete="off">
|
||||
<section>
|
||||
{{#each dice}}
|
||||
<div class="form-group">
|
||||
<label>{{{ icon }}} {{ localize label }}</label>
|
||||
<select name="{{ denomination }}">
|
||||
{{ selectOptions @root.methods selected=method labelAttr="label" localize=true
|
||||
blank="DICE.FULFILLMENT.Default" }}
|
||||
</select>
|
||||
</div>
|
||||
{{/each}}
|
||||
</section>
|
||||
<footer>
|
||||
<button type="submit"><i class="fas fa-save"></i> {{ localize "Save" }}</button>
|
||||
</footer>
|
||||
</form>
|
||||
24
resources/app/templates/dice/roll-resolver.hbs
Normal file
24
resources/app/templates/dice/roll-resolver.hbs
Normal file
@@ -0,0 +1,24 @@
|
||||
<section class="flexcol standard-form">
|
||||
<p class="formula">{{ formula }}</p>
|
||||
{{#each groups}}
|
||||
<fieldset class="input-grid" data-term-id="{{ @key }}">
|
||||
<legend>{{ label }} <span data-tooltip="{{ tooltip }}" aria-label="{{ tooltip }}">{{{ icon }}}</span></legend>
|
||||
{{#each results}}
|
||||
<label class="icon die-input {{#if isNew}}new-addition{{/if}}" data-denomination="{{ denomination }}"
|
||||
data-method="{{ method }}">
|
||||
{{ numberInput value min=1 max=faces step=1 name=id readonly=readonly placeholder=(localize denomination)
|
||||
disabled=disabled autofocus=true }}
|
||||
{{#if rerolled}}<i class="fas fa-arrow-rotate-right"></i>{{/if}}
|
||||
{{#if exploded}}<i class="fas fa-burst"></i>{{/if}}
|
||||
{{{ icon }}}
|
||||
</label>
|
||||
{{/each}}
|
||||
</fieldset>
|
||||
{{/each}}
|
||||
<footer class="form-footer">
|
||||
<button type="submit">
|
||||
<i class="fas fa-check"></i>
|
||||
{{ localize "DICE.SubmitRollPl" }}
|
||||
</button>
|
||||
</footer>
|
||||
</section>
|
||||
10
resources/app/templates/dice/roll.html
Normal file
10
resources/app/templates/dice/roll.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<div class="dice-roll">
|
||||
{{#if flavor}}
|
||||
<div class="dice-flavor">{{flavor}}</div>
|
||||
{{/if}}
|
||||
<div class="dice-result">
|
||||
<div class="dice-formula">{{formula}}</div>
|
||||
{{{tooltip}}}
|
||||
<h4 class="dice-total">{{total}}</h4>
|
||||
</div>
|
||||
</div>
|
||||
14
resources/app/templates/dice/table-result.html
Normal file
14
resources/app/templates/dice/table-result.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<div class="table-draw" data-table-id="{{ table.id }}">
|
||||
{{#if description}}
|
||||
<div class="table-description">{{{description}}}</div>
|
||||
{{/if}}
|
||||
{{{ rollHTML }}}
|
||||
<ol class="table-results">
|
||||
{{#each results}}
|
||||
<li class="table-result flexrow" data-result-id="{{ this._id }}">
|
||||
<img class="result-image" src="{{this.icon}}"/>
|
||||
<div class="result-text">{{{this.text}}}</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
</div>
|
||||
25
resources/app/templates/dice/tooltip.html
Normal file
25
resources/app/templates/dice/tooltip.html
Normal file
@@ -0,0 +1,25 @@
|
||||
{{#if parts.length}}
|
||||
<div class="dice-tooltip">
|
||||
{{#each parts}}
|
||||
<section class="tooltip-part">
|
||||
<div class="dice">
|
||||
<header class="part-header flexrow">
|
||||
{{#if icon}}
|
||||
<span class="part-method" data-tooltip="{{ method }}" aria-label="{{ localize method }}">
|
||||
{{{ icon }}}
|
||||
</span>
|
||||
{{/if}}
|
||||
<span class="part-formula">{{this.formula}}</span>
|
||||
{{#if this.flavor}}<span class="part-flavor">{{this.flavor}}</span>{{/if}}
|
||||
<span class="part-total">{{this.total}}</span>
|
||||
</header>
|
||||
<ol class="dice-rolls">
|
||||
{{#each this.rolls}}
|
||||
<li class="roll {{this.classes}}">{{{this.result}}}</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
</div>
|
||||
</section>
|
||||
{{/each}}
|
||||
</div>
|
||||
{{/if}}
|
||||
Reference in New Issue
Block a user