diff --git a/src/character/forms.py b/src/character/forms.py index 227bd96..fbbd8d5 100644 --- a/src/character/forms.py +++ b/src/character/forms.py @@ -53,6 +53,8 @@ class CharacterCreateForm(forms.ModelForm): self.fields[ "racial_capability" ].queryset = RacialCapability.objects.select_related("race") + self.fields["damage_reduction"].widget.attrs.update({"rows": 2}) + self.fields["equipment"].widget.attrs.update({"rows": 3}) class Meta: model = Character diff --git a/src/character/templates/character/character_form.html b/src/character/templates/character/character_form.html index 1ed3e65..cec45ee 100644 --- a/src/character/templates/character/character_form.html +++ b/src/character/templates/character/character_form.html @@ -4,9 +4,54 @@ {% block title %}Création de personnage{% endblock %} {% block content %} +

Création de personnage

{% csrf_token %} - {% bootstrap_form form %} +

Identité

+ {% bootstrap_field form.name %} + {% bootstrap_field form.private %} +
+
{% bootstrap_field form.race %}
+
{% bootstrap_field form.profile %}
+
{% bootstrap_field form.level %}
+
+ {% bootstrap_field form.racial_capability %} +

Apparence

+
+
{% bootstrap_field form.gender %}
+
{% bootstrap_field form.age %}
+
{% bootstrap_field form.height %}
+
{% bootstrap_field form.weight %}
+
+

Compétences

+
+
{% bootstrap_field form.value_strength %}
+
{% bootstrap_field form.value_dexterity %}
+
{% bootstrap_field form.value_constitution %}
+
{% bootstrap_field form.value_intelligence %}
+
{% bootstrap_field form.value_wisdom %}
+
{% bootstrap_field form.value_charisma %}
+
+

Protection

+
+
{% bootstrap_field form.armor %}
+
{% bootstrap_field form.shield %}
+
{% bootstrap_field form.defense_misc %}
+
+ {% bootstrap_field form.damage_reduction %} + {% bootstrap_field form.health_max %} + +

Possessions

+ {% bootstrap_field form.weapons %} + {% bootstrap_field form.equipment %} +
+
{% bootstrap_field form.money_pp %}
+
{% bootstrap_field form.money_po %}
+
{% bootstrap_field form.money_pa %}
+
{% bootstrap_field form.money_pc %}
+
+

Notes

+ {% bootstrap_field form.notes show_label=False %}
{% endblock %}