diff --git a/static/mo.css b/static/mo.css index b5747c40ca6aa12645405ea89af6e563c2a03a90..c1eafafa239bc5dbd2a2b31df91abca8555902e4 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 11a69246e7e77799219dcd52552ea9e41ce80b9f..4229835e00be6a126e4266be8097580474121e15 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 0be9b959c794050c35f9c252d9c40911cad78cca..0cb75bad183e4c8be6ca899f5a7ba4d57a6e6ef7 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 2d50648befa1fe4cdfb7d0d765c69e3ac3462e09..b252172e0b5e1ebc6539b74762a1e41cfba4e1df 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 d7973c809be3d168fc801083e148cad8af6d5cce..ef1b6a2292982f61809441d47aec8c44f60ae9bf 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 758dc42bf7c4b46aa9f00e5b5f881cd152aa2d48..c1ff6c00a2104e4acaf6b09fba70dce3e312ddfa 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 9d5e6dd2bf84b6ab3f99ec30898911c4c4c7340f..0920ae7eeed66dc36f2882796e285d85d47b87a2 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>