From 304a4d9c79cc6ee6c952fe1314101911274ef751 Mon Sep 17 00:00:00 2001 From: evilchili Date: Mon, 26 Feb 2024 01:12:45 -0800 Subject: [PATCH] adding support for managing class attributes --- ttfrog/assets/templates/character_sheet.html | 19 ++- ttfrog/db/bootstrap.py | 31 ++-- ttfrog/db/schema/character.py | 27 ++-- ttfrog/db/schema/classes.py | 17 ++- ttfrog/webserver/controllers/base.py | 22 ++- .../webserver/controllers/character_sheet.py | 133 +++++++++++++----- ttfrog/webserver/forms.py | 2 +- 7 files changed, 175 insertions(+), 76 deletions(-) diff --git a/ttfrog/assets/templates/character_sheet.html b/ttfrog/assets/templates/character_sheet.html index dbe8095..1b39856 100644 --- a/ttfrog/assets/templates/character_sheet.html +++ b/ttfrog/assets/templates/character_sheet.html @@ -143,11 +143,9 @@
Attributes
- + {% if c.record.class_attributes %} + {{ field('class_attributes') }} + {% endif %}
Defenses
@@ -171,18 +169,17 @@

Debug

-{{ DISABLED }} - -{{ c.record }} +{% for field, msg in c.form.errors.items() %} + {{ field }}: {{ msg }} +{% endfor %} + +{{ c.record.class_attributes }} {% endblock %} {% block script %}