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

32 lines
691 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-04 11:40:30 -08:00
{{ c.form.csrf_token }}
2024-01-31 22:39:54 -08:00
<ul>
2024-02-04 11:40:30 -08:00
{% for field in c.form %}
2024-02-04 15:22:54 -08:00
{% if field.name not in ['save', 'delete'] %}
2024-02-01 00:28:17 -08:00
<li>{{ field.label }}: {{ field }} {{ field.errors|join(',') }}</li>
2024-02-04 15:22:54 -08:00
{% endif %}
2024-02-01 00:28:17 -08:00
{% endfor %}
2024-01-31 22:39:54 -08:00
</ul>
2024-02-04 15:22:54 -08:00
{{ c.form.save }} &nbsp; {{ c.form.delete }}
2024-01-31 22:39:54 -08:00
</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 %}