<!DOCTYPE html>
<html>
 
<head>
    <title>D&D Characters</title>
    <link
  rel="stylesheet"
  href="https://cdn.jsdelivr.net/npm/bulma@1.0.2/css/bulma.min.css"
>
</head>
 
<body>
<nav class="navbar" role="navigation" aria-label="main navigation">
    <div class="navbar-brand">
        <a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample">
            <span aria-hidden="true"></span>
            <span aria-hidden="true"></span>
            <span aria-hidden="true"></span>
            <span aria-hidden="true"></span>
        </a>
    </div>
  
    <div id="navbarBasicExample" class="navbar-menu">
        <div class="navbar-start">
            <a class="navbar-item" href="/">Home</a>
            <a class="navbar-item" href="party?cache=true">Generate Adventurer Party</a>
            <a class="navbar-item" href="character">Generate Single Adventurer</a>
        </div>
    </div>
</nav>

<div class="card">
    <div class="container">
    <div class="content">
        <div class="card-content">
            <div class="content">
                <div class="block">
                    <h3>{{character.adv_class.title()}} - Level {{character.level}}</h3>
                    <div class="columns">
                        <div class="column">
                            <table class="table"> 
                            <thead><tr><th>Ability Scores</th><th></th><th>Saving Throws</th><th></th></tr></thead>
                            <tbody><tr><th>Strength</th><td>{{character.strength}}</td><th>Death / Poison</th><td>{{character.progression[character.level]['saves']['death / poison']}}</tr></tbody>
                            <tbody><tr><th>Intelligence</th><td>{{character.intelligence}}</td><th>Magic Wands</th><td>{{character.progression[character.level]['saves']['wands']}}</tr></tbody>
                            <tbody><tr><th>Wisdom</th><td>{{character.wisdom}}</td><th>Paralysis / Petrification</th><td>{{character.progression[character.level]['saves']['paralysis / petrify']}}</tr></tbody>
                            <tbody><tr><th>Dexterity</th><td>{{character.dexterity}}</td><th>Breath Attacks</th><td>{{character.progression[character.level]['saves']['breath attack']}}</tr></tbody>
                            <tbody><tr><th>Constitution</th><td>{{character.constitution}}</td><th>Spells, Rods, Staves</th><td>{{character.progression[character.level]['saves']['spells / rods / staves']}}</tr></tbody>
                            <tbody><tr><th>Charisma</th><td>{{character.charisma}}</td><th>Wisdom Mod. to Saves v. Magic</th><td>+1</tr></tbody>
                            </table>
                        </div>
                        <div class="column">
                            <table class="table"> 
                            <thead><tr><th>Combat</th><th></th><th>Dungeon Gear</th><th></th></thead>
                            <tbody><tr><th>Hit Points</th><td>{{character.hp}}</td><th>Torches</th><td>{{character.torches}}</td></tr></tbody>
                            <tbody><tr><th>Armor Class</th><td>{{character.ac}}</td><th>Rations</th><td>{{character.rations}}</td></tr></tbody>
                            <tbody><tr><th>Attack Bonus</th><td>{{character.atk}}</td><th>Gold</th><td>{{character.gold}}</td></tbody>
                            </table>
                        </div>
                    </div>
                    <div class="columns">
                        <div class="column">
                            <table class="table"> 
                            <thead><tr><th>Equipment</th><th></th><th></th><th></th></tr></thead>
                            {% for e in character.equipment %}
                            <tbody><tr><th>{{e}}</th></tr></tbody>
                            {% endfor %}
                            </table>
                        </div>
                        {% if character.spells %}
                        <div class="column">
                            <h5>Spellbook</h5>
                            <table class="table"> 
                            <thead><tr><th>Spellname</th><th></th><th></th><th></th></thead>
                            {%for spell in character.spell_book %}
                            <tbody><tr><th>{{spell}}</th><td></td><th></th><td></td></tr></tbody>
                            {%endfor%}
                            </table>
                        </div>
                        {% endif %}
                        {% if character.turn_undead %}
                        <div class="column">
                            <h5>Turn Undead</h5>
                            <table class="table"> 
                            <thead><tr><th>Monster Hit Die</th><th>Roll to Turn</th><th></th><th></th></thead>
                            {%for k,v in character.turn_undead['1'].items() %}
                            <tbody><tr><th>{{k}}  Hit Die</th><td>{{v}}</td><th></th><td></td></tr></tbody>
                            {%endfor%}
                            </table>
                        </div>
                        {% endif %}
                        {% if character.thief_skills %}
                        <div class="column">
                            <h5>Thief Skills</h5>
                            <table class="table"> 
                            <thead><tr><th>Thief Skills</th><th></th><th></th><th></th></thead>
                            {%for spell in character.spell_book %}
                            <tbody><tr><th>{{spell}}</th><td></td><th></th><td></td></tr></tbody>
                            {%endfor%}
                            </table>
                        </div>
                        {% endif %}
                    </div>
                </div>
            </div>
        <br>
        </div>
    </div>
    </div>
</div>

</body>
 
</html>

