Skip to content
Snippets Groups Projects
Commit 42947462 authored by Jiří Setnička's avatar Jiří Setnička
Browse files

Tabulky: Převedení na class=data, zavedení tabulek an plnou šířku a přidání thead

parent 2dadaacd
Branches
No related tags found
1 merge request!5Základ práce s uživateli
......@@ -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;
......
......@@ -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>
......
......@@ -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() }}
......
......@@ -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 }}
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment