58 lines
1.7 KiB
HTML
58 lines
1.7 KiB
HTML
<template name="spellListDialog">
|
|
{{#with spellList}}
|
|
{{#baseDialog title=name class=colorClass startEditing=../startEditing}}
|
|
<div>
|
|
<div layout horizontal justified wrap class="subhead">
|
|
{{#if attackBonus}}
|
|
<div>
|
|
Attack Bonus: {{evaluate charId attackBonus}}
|
|
</div>
|
|
{{/if}}
|
|
{{#if saveDC}}
|
|
<div>
|
|
Save DC: {{evaluate charId saveDC}}
|
|
</div>
|
|
{{/if}}
|
|
{{#if maxPrepared}}
|
|
<div>
|
|
Max Prepared: {{evaluateSigned charId maxPrepared}}
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
<hr class="vertMargin">
|
|
<div>{{#markdown}}{{evaluateString charId description}}{{/markdown}}</div>
|
|
</div>
|
|
{{else}}
|
|
<!--Name-->
|
|
<paper-input id="spellListNameInput"
|
|
class="fullwidth"
|
|
label="Name"
|
|
floatinglabel
|
|
value={{name}}></paper-input>
|
|
<!--Save DC-->
|
|
<paper-input id="spellListSaveDCInput"
|
|
label="Save DC"
|
|
floatinglabel
|
|
value={{saveDC}}
|
|
style="width: 100%;"></paper-input><br>
|
|
<!--Attack Bonus-->
|
|
<paper-input id="spellListAttackBonusInput"
|
|
label="Attack Bonus"
|
|
floatinglabel
|
|
value={{attackBonus}}
|
|
style="width: 100%;"></paper-input><br>
|
|
<!--Max Prepared-->
|
|
<paper-input id="spellListMaxPreparedInput"
|
|
label="Maximum Prepared Spells"
|
|
floatinglabel
|
|
value={{maxPrepared}}
|
|
style="width: 100%;"></paper-input><br>
|
|
<!--Description-->
|
|
<paper-input-decorator label="Description" floatinglabel layout vertical>
|
|
<paper-autogrow-textarea>
|
|
<textarea id="spellListDescriptionInput" placeholder value={{description}}></textarea>
|
|
</paper-autogrow-textarea>
|
|
</paper-input-decorator>
|
|
{{/baseDialog}}
|
|
{{/with}}
|
|
</template> |