52 lines
1.5 KiB
HTML
52 lines
1.5 KiB
HTML
<template name="spellListDialog">
|
|
{{#with spellList}}
|
|
{{#baseDialog title=name class=colorClass startEditing=../startEditing}}
|
|
<div>
|
|
<div class="paper-font-subhead layout horizontal justified wrap">
|
|
{{#if attackBonus}}
|
|
<div>
|
|
Attack Bonus: {{evaluateSigned charId attackBonus}}
|
|
</div>
|
|
{{/if}}
|
|
{{#if saveDC}}
|
|
<div>
|
|
Save DC: {{evaluate charId saveDC}}
|
|
</div>
|
|
{{/if}}
|
|
{{#if maxPrepared}}
|
|
<div>
|
|
Max Prepared Spells: {{evaluate charId maxPrepared}}
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
<hr class="vertMargin">
|
|
<div>{{#markdown}}{{evaluateString charId description}}{{/markdown}}</div>
|
|
</div>
|
|
{{else}}
|
|
<div class="layout vertical">
|
|
<!--Name-->
|
|
<paper-input id="spellListNameInput" label="Name" value={{name}}>
|
|
</paper-input>
|
|
<!--Save DC-->
|
|
<paper-input id="spellListSaveDCInput" label="Save DC" value={{saveDC}}>
|
|
{{> formulaSuffix}}
|
|
</paper-input>
|
|
<!--Attack Bonus-->
|
|
<paper-input id="spellListAttackBonusInput" label="Attack Bonus" value={{attackBonus}}>
|
|
{{> formulaSuffix}}
|
|
</paper-input>
|
|
<!--Max Prepared-->
|
|
<paper-input id="spellListMaxPreparedInput" label="Maximum Prepared Spells" value={{maxPrepared}}>
|
|
{{> formulaSuffix}}
|
|
</paper-input>
|
|
<!--Description-->
|
|
<div class="description-input layout horizontal end">
|
|
<paper-textarea id="spellListDescriptionInput" label="Description" value={{description}}>
|
|
</paper-textarea>
|
|
{{> textareaBracketSuffix}}
|
|
</div>
|
|
</div>
|
|
{{/baseDialog}}
|
|
{{/with}}
|
|
</template>
|