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
This commit is part of merge request !5. Comments created here will be created in the context of that merge request.
...@@ -23,6 +23,10 @@ table.data { ...@@ -23,6 +23,10 @@ table.data {
margin-bottom: 2ex; margin-bottom: 2ex;
} }
table.data.full {
width: 100%;
}
table.data tr td, table.data tr th { table.data tr td, table.data tr th {
border: 1px solid blue; border: 1px solid blue;
padding: 0.1ex 0.5ex; padding: 0.1ex 0.5ex;
......
...@@ -3,13 +3,14 @@ ...@@ -3,13 +3,14 @@
<h2>Soutěžní kola</h2> <h2>Soutěžní kola</h2>
<table class=data> <table class=data>
<tr> <thead><tr>
<th>ID <th>ID
<th>Ročník <th>Ročník
<th>Kat. <th>Kat.
<th>Pořadí <th>Pořadí
<th>Oblast <th>Oblast
<th>Název <th>Název
</thead>
{% for r in rounds %} {% for r in rounds %}
<tr> <tr>
<td><a href='{{ url_for('org_contest_round', id=r.round_id) }}'>{{ r.round_code() }}</a> <td><a href='{{ url_for('org_contest_round', id=r.round_id) }}'>{{ r.round_code() }}</a>
......
...@@ -35,10 +35,11 @@ ...@@ -35,10 +35,11 @@
{% if children %} {% if children %}
<table class=data> <table class=data>
<tr> <thead><tr>
<th>Kód <th>Kód
<th>Název <th>Název
<th>Typ <th>Typ
</thead>
{% for child in children %} {% for child in children %}
<tr> <tr>
<td>{{ child.get_code() }} <td>{{ child.get_code() }}
......
...@@ -3,13 +3,14 @@ ...@@ -3,13 +3,14 @@
<h2>Role pro: {{ place.name }}</h2> <h2>Role pro: {{ place.name }}</h2>
<table class=data> <table class=data>
<tr> <thead><tr>
<th>Role <th>Role
<th>Jméno <th>Jméno
<th>Roč. <th>Roč.
<th>Kat. <th>Kat.
<th>Kolo <th>Kolo
<th>Zdroj <th>Zdroj
</thead>
{% for role in roles %} {% for role in roles %}
<tr> <tr>
<td>{{ roles_by_type[role.role].name }} <td>{{ roles_by_type[role.role].name }}
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
{% if user.is_org or user.is_admin %} {% if user.is_org or user.is_admin %}
<h3>Role</h3> <h3>Role</h3>
<table class="table"> <table class="data full">
<thead> <thead>
<tr> <tr>
<th>Role</th><th>Ročník</th><th>Kategorie</th><th>Kolo</th><th>Oblast</th> <th>Role</th><th>Ročník</th><th>Kategorie</th><th>Kolo</th><th>Oblast</th>
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<h3>Registrace v ročnících</h3> <h3>Registrace v ročnících</h3>
{% if participants.count() %} {% if participants.count() %}
<table class="table"> <table class="data full">
<thead> <thead>
<tr> <tr>
<th>Ročník</th><th>Škola</th><th>Třída</th><th>Rok narození</th> <th>Ročník</th><th>Škola</th><th>Třída</th><th>Rok narození</th>
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<h3>Účast v kolech</h3> <h3>Účast v kolech</h3>
{% if rounds.count() %} {% if rounds.count() %}
<table class="table"> <table class="data full">
<thead> <thead>
<tr> <tr>
<th>Ročník</th><th>Kategorie</th><th>Kolo</th><th>Místo</th><th>Stav účasti</th> <th>Ročník</th><th>Kategorie</th><th>Kolo</th><th>Místo</th><th>Stav účasti</th>
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
</form> </form>
{% if users %} {% if users %}
<table class="table"> <table class="data full">
<thead> <thead>
<tr> <tr>
<th>Jméno</th><th>Příjmení</th><th>E-mail</th><th>Akce</th> <th>Jméno</th><th>Příjmení</th><th>E-mail</th><th>Akce</th>
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
</form> </form>
{% if users %} {% if users %}
<table class="table"> <table class="data full">
<thead> <thead>
<tr> <tr>
<th>Jméno</th><th>Příjmení</th><th>E-mail</th><th>Role</th><th>Akce</th> <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