From 42e9ba15c5fc5608a49efc0127501a0212347774 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 --- frontend/src/index.css | 10 +++++++++- games/templates/add.html | 11 +++++++---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/frontend/src/index.css b/frontend/src/index.css index 539a4ec..6d7bc5b 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -19,4 +19,12 @@ textarea { #button-container button { @apply mx-1; -} \ No newline at end of file +} + +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