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

36 lines
906 B
HTML
Raw Normal View History

2024-01-31 22:39:54 -08:00
{% extends "base.html" %}
{% block content %}
<div style='float:left; max-width:20%;height: 90%'>
2024-01-28 22:14:50 -08:00
<ul>
{% for char in all_characters %}
<li><a href="/sheet/{{char['slug']}}/{{char['name']}}">{{ char['name'] }}</a></li>
{% endfor %}
2024-01-31 22:39:54 -08:00
</ul>
2024-01-28 22:14:50 -08:00
</div>
<div>
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>
<li>{{form.name.label}}: {{ form.name }} {{form.errors['name'] | join(',') }}</li>
<li>{{form.level.label}}: {{ form.level }} {{form.errors['level'] | join(',') }}<//li>
</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 %}
<h2>Debug</h2>
<h3>Record</h3>
<pre>{{ record }}</pre>
<h3>Config</h3>
<pre>{{ config }}</pre>
{% endblock %}