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

34 lines
724 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
2024-02-02 15:40:45 -08:00
{{ build_list(c) }}
2024-02-01 00:28:17 -08:00
<div style='float:left;'>
2024-02-02 15:40:45 -08:00
<h1>{{ c['record'].name }}</h1>
2024-01-31 22:39:54 -08:00
<form name="character_sheet" method="post" novalidate class="form">
2024-02-02 15:40:45 -08:00
{{ c['form'].csrf_token }}
2024-01-28 22:14:50 -08:00
2024-02-02 15:40:45 -08:00
{% if 'process' in c['form'].errors %}
Error: {{ c['form'].errors['process'] |join(',') }}
2024-01-31 22:39:54 -08:00
{% endif %}
<ul>
2024-02-02 15:40:45 -08:00
{% for field in c['form'] %}
2024-02-01 00:28:17 -08:00
<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>
2024-02-02 15:40:45 -08:00
<pre>
{{ c }}
</pre>
2024-01-31 22:39:54 -08:00
{% endblock %}