tabletop-frog/ttfrog/assets/templates/character_sheet.html

36 lines
775 B
HTML
Raw Normal View History

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