tabletop-frog/ttfrog/assets/templates/character_sheet.html
2024-02-01 00:28:17 -08:00

36 lines
775 B
HTML

{% extends "base.html" %}
{% from "list.html" import build_list %}
{% block content %}
{{ build_list(all_records) }}
<div style='float:left;'>
<h1>{{ record.name }}</h1>
<form name="character_sheet" method="post" novalidate class="form">
{{ form.csrf_token }}
{% if 'process' in form.errors %}
Error: {{ form.errors['process'] |join(',') }}
{% endif %}
<ul>
{% for field in form %}
<li>{{ field.label }}: {{ field }} {{ field.errors|join(',') }}</li>
{% endfor %}
</ul>
<button type="submit">Submit</button>
</form>
</div>
{% endblock %}
{% block debug %}
<div style='clear:both;display:block;'>
<h2>Debug</h2>
<h3>Record</h3>
<pre>{{ record }}</pre>
<h3>Config</h3>
<pre>{{ config }}</pre>
</div>
{% endblock %}