From b0769058b320fb199347a6ad786456c6e39785d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kate=C5=99ina=20=C4=8C=C3=AD=C5=BEkov=C3=A1?= Date: Wed, 27 May 2020 23:13:13 +0200 Subject: [PATCH] =?UTF-8?q?styly=20odevzd=C3=A1v=C3=A1tko=20a=20formul?= =?UTF-8?q?=C3=A1=C5=99e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mamweb/static/css/mamweb.css | 92 ++++++++++++-------- seminar/templates/seminar/nahraj_reseni.html | 58 +++++++++--- 2 files changed, 103 insertions(+), 47 deletions(-) diff --git a/mamweb/static/css/mamweb.css b/mamweb/static/css/mamweb.css index a9621bc5..093da717 100644 --- a/mamweb/static/css/mamweb.css +++ b/mamweb/static/css/mamweb.css @@ -353,7 +353,52 @@ p.license-mobile { display: none; } +/*********************/ +/* přihláška a další formuláře */ + +table.form td, table.form tr { + table-layout: fixed; + word-wrap: break-word; + padding: 5px; +} + +table#reseni.form td, table#reseni.form tr { + display: inline-table; +} + +input[type="file"] { + max-width: 250px; + text-overflow: ellipsis; +} + +.field-with-comment{ + position:relative; +} + +.field-comment{ + display:none; + text-shadow: 0 1px 0 #fff; + background-color: #f0f0f0 ; + border-color: #dbdbdb; + position:absolute; + z-index:100; + border:1px; + border-style:solid; + border-width:1px; + border-radius: 5px; + padding:3px; + top:20px; + left:20px; +} + +.field-with-comment:hover span.field-comment{ + display:block; +} + +input { + margin: 5px; +} /********************** * Zmenšování displeje @@ -420,10 +465,12 @@ ul.submenu { margin-top: 8px; /* mezera mezi hlavním menu a submenu */ } + } /* stránka přes celý menší displej, větší mobil, tablet */ @media(max-width: 800px){ + ul.menu { font-size: 80%; margin-top: -2px; @@ -444,6 +491,11 @@ ul.submenu { a.ref-org-foto { pointer-events: none; } + + table#reseni.form td, table#reseni.form tr { + display: inline-grid; + max-width: 300px; + } } /* malý tablet, mobil */ @@ -594,6 +646,10 @@ ul.submenu { width: 100%; } + table.form td, table.form tr { + display: inherit; + } + } /*stránka organizátorů*/ @@ -953,39 +1009,3 @@ p.gdpr { div.gdpr { font-size: 6pt; } - -/* přihláška a další formuláře */ - -table.form td, table.form tr { - table-layout: fixed; - word-wrap: break-word; - padding: 5px; -} - -.field-with-comment{ - position:relative; -} - -.field-comment{ - display:none; - text-shadow: 0 1px 0 #fff; - background-color: #f0f0f0 ; - border-color: #dbdbdb; - position:absolute; - z-index:100; - border:1px; - border-style:solid; - border-width:1px; - border-radius: 5px; - padding:3px; - top:20px; - left:20px; -} - -.field-with-comment:hover span.field-comment{ - display:block; -} - -input { - margin: 5px; -} diff --git a/seminar/templates/seminar/nahraj_reseni.html b/seminar/templates/seminar/nahraj_reseni.html index 7fa02da7..861d7bdd 100644 --- a/seminar/templates/seminar/nahraj_reseni.html +++ b/seminar/templates/seminar/nahraj_reseni.html @@ -14,13 +14,26 @@
{% csrf_token %} -{{ form }} + + + {% for field in form %} + + + {% endfor %} + +
+ + + {{ field }} +
+
{{ prilohy.management_form }} -

Soubory s řešením

@@ -28,8 +41,7 @@
{{ form.non_field_errors }} {# {{ form.errors }} FIXME: možná tohle chceme zobrazovat? #} - - +
{% for field in form.visible_fields %} @@ -46,12 +58,13 @@ - {# TODO #} {% endfor %} - -
{{ field.errors }}
- + + + + +
{% endfor %}
@@ -60,10 +73,33 @@