From 33939f631c9a206594cf5b2e7f6c5eeb50e5e1ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Sat, 18 Feb 2023 22:36:26 +0100 Subject: [PATCH] Fix form styling --- common/input.css | 8 ++++++++ games/templates/add.html | 11 +++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/common/input.css b/common/input.css index a37820a..6d7bc5b 100644 --- a/common/input.css +++ b/common/input.css @@ -20,3 +20,11 @@ textarea { #button-container button { @apply mx-1; } + +th { + @apply text-left; +} + +th label { + @apply mr-4; +} diff --git a/games/templates/add.html b/games/templates/add.html index ed1d003..369dbe4 100644 --- a/games/templates/add.html +++ b/games/templates/add.html @@ -3,11 +3,14 @@ {% block title %}{{ title }}{% endblock title %} {% block content %} -
+ + {% csrf_token %} - {{ form.as_p }} - - + {{ form.as_table }} + + + +
{% endblock content %} \ No newline at end of file