From 42947462cb308d8dba8a2adcd49ccdfee76f2187 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ji=C5=99=C3=AD=20Setni=C4=8Dka?= <setnicka@seznam.cz>
Date: Sat, 2 Jan 2021 03:21:04 +0100
Subject: [PATCH] =?UTF-8?q?Tabulky:=20P=C5=99eveden=C3=AD=20na=20class=3Dd?=
 =?UTF-8?q?ata,=20zaveden=C3=AD=20tabulek=20an=20plnou=20=C5=A1=C3=AD?=
 =?UTF-8?q?=C5=99ku=20a=20p=C5=99id=C3=A1n=C3=AD=20thead?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 static/mo.css                   | 4 ++++
 templates/org_contest_root.html | 3 ++-
 templates/org_place.html        | 3 ++-
 templates/org_place_rights.html | 3 ++-
 templates/org_user.html         | 6 +++---
 templates/org_users.html        | 2 +-
 templates/org_users_orgs.html   | 2 +-
 7 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/static/mo.css b/static/mo.css
index b5747c40..c1eafafa 100644
--- a/static/mo.css
+++ b/static/mo.css
@@ -23,6 +23,10 @@ table.data {
 	margin-bottom: 2ex;
 }
 
+table.data.full {
+	width: 100%;
+}
+
 table.data tr td, table.data tr th {
 	border: 1px solid blue;
 	padding: 0.1ex 0.5ex;
diff --git a/templates/org_contest_root.html b/templates/org_contest_root.html
index 11a69246..4229835e 100644
--- a/templates/org_contest_root.html
+++ b/templates/org_contest_root.html
@@ -3,13 +3,14 @@
 <h2>Soutěžní kola</h2>
 
 	<table class=data>
-		<tr>
+		<thead><tr>
 			<th>ID
 			<th>Ročník
 			<th>Kat.
 			<th>Pořadí
 			<th>Oblast
 			<th>Název
+		</thead>
 	{% for r in rounds %}
 		<tr>
 			<td><a href='{{ url_for('org_contest_round', id=r.round_id) }}'>{{ r.round_code() }}</a>
diff --git a/templates/org_place.html b/templates/org_place.html
index 0be9b959..0cb75bad 100644
--- a/templates/org_place.html
+++ b/templates/org_place.html
@@ -35,10 +35,11 @@
 {% if children %}
 
 	<table class=data>
-	<tr>
+	<thead><tr>
 		<th>Kód
 		<th>Název
 		<th>Typ
+	</thead>
 	{% for child in children %}
 	<tr>
 		<td>{{ child.get_code() }}
diff --git a/templates/org_place_rights.html b/templates/org_place_rights.html
index 2d50648b..b252172e 100644
--- a/templates/org_place_rights.html
+++ b/templates/org_place_rights.html
@@ -3,13 +3,14 @@
 <h2>Role pro: {{ place.name }}</h2>
 
 	<table class=data>
-	<tr>
+	<thead><tr>
 		<th>Role
 		<th>Jméno
 		<th>Roč.
 		<th>Kat.
 		<th>Kolo
 		<th>Zdroj
+	</thead>
 	{% for role in roles %}
 	<tr>
 		<td>{{ roles_by_type[role.role].name }}
diff --git a/templates/org_user.html b/templates/org_user.html
index d7973c80..ef1b6a22 100644
--- a/templates/org_user.html
+++ b/templates/org_user.html
@@ -20,7 +20,7 @@
 {% if user.is_org or user.is_admin %}
 <h3>Role</h3>
 
-<table class="table">
+<table class="data full">
 	<thead>
 		<tr>
 			<th>Role</th><th>Ročník</th><th>Kategorie</th><th>Kolo</th><th>Oblast</th>
@@ -40,7 +40,7 @@
 
 <h3>Registrace v ročnících</h3>
 {% if participants.count() %}
-<table class="table">
+<table class="data full">
 	<thead>
 		<tr>
 			<th>Ročník</th><th>Škola</th><th>Třída</th><th>Rok narození</th>
@@ -61,7 +61,7 @@
 
 <h3>Účast v kolech</h3>
 {% if rounds.count() %}
-<table class="table">
+<table class="data full">
 	<thead>
 		<tr>
 			<th>Ročník</th><th>Kategorie</th><th>Kolo</th><th>Místo</th><th>Stav účasti</th>
diff --git a/templates/org_users.html b/templates/org_users.html
index 758dc42b..c1ff6c00 100644
--- a/templates/org_users.html
+++ b/templates/org_users.html
@@ -63,7 +63,7 @@
 </form>
 
 {% if users %}
-<table class="table">
+<table class="data full">
 	<thead>
 		<tr>
 			<th>Jméno</th><th>Příjmení</th><th>E-mail</th><th>Akce</th>
diff --git a/templates/org_users_orgs.html b/templates/org_users_orgs.html
index 9d5e6dd2..0920ae7e 100644
--- a/templates/org_users_orgs.html
+++ b/templates/org_users_orgs.html
@@ -37,7 +37,7 @@
 </form>
 
 {% if users %}
-<table class="table">
+<table class="data full">
 	<thead>
 		<tr>
 			<th>Jméno</th><th>Příjmení</th><th>E-mail</th><th>Role</th><th>Akce</th>
-- 
GitLab