From 48230b623a84a08609b87312d62995b3f30f0077 Mon Sep 17 00:00:00 2001 From: Leon Noe Jovan Date: Wed, 5 Jan 2022 19:33:43 +0100 Subject: [PATCH] success messages, graph --- portal/solar.py | 4 +-- static/css/contracts.css | 3 +- static/css/contracts.css.map | 2 +- static/css/contracts.scss | 1 + static/css/header.css | 2 +- templates/solar-forgotpass.html | 4 +-- templates/solar-login.html | 15 ++++++--- templates/solar-oddaja.html | 6 ++-- templates/solar-pogodbe.html | 56 +++++++++++++++++++++++---------- templates/solar-register.html | 17 +++++----- templates/solar-zgodovina.html | 38 ++++++++++++---------- 11 files changed, 93 insertions(+), 55 deletions(-) diff --git a/portal/solar.py b/portal/solar.py index b5a6d26..163f603 100644 --- a/portal/solar.py +++ b/portal/solar.py @@ -789,8 +789,8 @@ def send_resetpass_mail(email, config): body = ''' Zahtevali ste ponastavitev gesla vašega uporabniškega računa. - Geslo lahko ponastavite na naslednji povezavi: https://zbiranje.slovenscina.eu/solar/resetpass/{}'''.format(jwt_token) - + Geslo lahko ponastavite na naslednji povezavi: http://proc1.cjvt.si:5000/resetpass/{}'''.format(jwt_token) + logging.info(body) message = MIMEMultipart() message['From'] = config['MAIL_LOGIN'] message['To'] = email diff --git a/static/css/contracts.css b/static/css/contracts.css index 2769c6c..6fbfa67 100644 --- a/static/css/contracts.css +++ b/static/css/contracts.css @@ -148,7 +148,8 @@ em { background: white; width: 100%; padding-left: 1rem; - position: relative; } + position: relative; + margin-bottom: 1rem; } .team-item .team-item-name { line-height: 3.25rem; } .team-item .team-item-collaborations { diff --git a/static/css/contracts.css.map b/static/css/contracts.css.map index c23411e..3ccb354 100644 --- a/static/css/contracts.css.map +++ b/static/css/contracts.css.map @@ -1,6 +1,6 @@ { "version": 3, -"mappings": "AAAQ,+IAAuI;AAa/I,IAAK;EACH,WAAW,EAAE,oBAAoB;EACjC,SAAS,EAAC,IAAI;EACd,KAAK,EAZC,OAAO;;AAef,IAAK;EACH,SAAS,EAAC,IAAI;EACd,OAA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,IAAI;EACV,YAAY,EAAC,IAAI;EACjB,QAAQ,EAAC,QAAQ;EACjB,aAAa,EAAC,IAAI;EAClB,0BAAgB;IACd,WAAW,EAAC,OAAO;EAErB,oCAA0B;IACxB,QAAQ,EAAC,QAAQ;IACjB,KAAK,EAAC,IAAI;IACV,GAAG,EAAC,MAAM;IACV,qDAAiB;MACf,OAAO,EAAC,KAAK;MACb,cAAc,EAAE,SAAS;MACzB,SAAS,EAAE,QAAQ;MACnB,WAAW,EAAE,OAAO", "sources": ["slovenscina-theme.scss","slovenscina-elements.scss","contracts.scss"], "names": [], "file": "contracts.css" diff --git a/static/css/contracts.scss b/static/css/contracts.scss index e3a71cb..fdf8c42 100644 --- a/static/css/contracts.scss +++ b/static/css/contracts.scss @@ -40,6 +40,7 @@ width:100%; padding-left:1rem; position:relative; + margin-bottom:1rem; .team-item-name { line-height:3.25rem; } diff --git a/static/css/header.css b/static/css/header.css index 02acbc0..a266f1a 100644 --- a/static/css/header.css +++ b/static/css/header.css @@ -168,7 +168,7 @@ h1.title { p.subtitle { font-size: 14px; - line-height: 150%; + line-height: 150%; margin-top: 0.5rem; } /*# sourceMappingURL=header.css.map */ diff --git a/templates/solar-forgotpass.html b/templates/solar-forgotpass.html index fe0ce83..1eac752 100644 --- a/templates/solar-forgotpass.html +++ b/templates/solar-forgotpass.html @@ -27,8 +27,8 @@ {% with messages = get_flashed_messages() %} {% if messages %} -
- alert +
+ alert

{{ messages[0] }}

{% endif %} diff --git a/templates/solar-login.html b/templates/solar-login.html index 197edd2..d61a070 100644 --- a/templates/solar-login.html +++ b/templates/solar-login.html @@ -21,10 +21,17 @@

Prijava

{% with messages = get_flashed_messages() %} {% if messages %} -
- alert -

{{ messages[0] }}

-
+ {% if "potrditev" in messages[0] or "uspešna" in messages[0] %} +
+ alert +

{{ messages[0] }}

+
+ {% else %} +
+ alert +

{{ messages[0] }}

+
+ {% endif %} {% endif %} {% endwith %}
diff --git a/templates/solar-oddaja.html b/templates/solar-oddaja.html index f547438..feb2c98 100644 --- a/templates/solar-oddaja.html +++ b/templates/solar-oddaja.html @@ -26,7 +26,7 @@

Korpus Šolar

-

Prosimo, določite podatke o besedilih, ki jih želite oddati, in nato naložite besedila. Če oddajate besedila, ki so nastala v različnih razredih, se razlikujejo glede učiteljskih popravkov in podobno, jih oddajte v ločenih paketih.

+

Prosimo, določite podatke o besedilih, ki jih želite oddati, in nato naložite besedila. Če oddajate besedila, ki so nastala v različnih razredih, se razlikujejo glede učiteljskih popravkov in podobno, jih oddajte v ločenih paketih.

@@ -237,7 +237,7 @@
-

Oddate lahko eno ali (hkrati) več besedil, ki ustrezajo izbranim podatkom. Sprejemljivi formati so: txt, doc, docx, pdf, jpg in png.

+

Oddate lahko eno ali (hkrati) več besedil, ki ustrezajo izbranim podatkom. Sprejemljivi formati so: txt, csv, pdf, doc, docx, xls, xlsx, ppt, pptx, jpg, jpeg, png.

@@ -347,7 +347,7 @@ paramName: "file", // The name that will be used to transfer the file maxFilesize: 1000, // MB timeout: 5000000, // milliseconds - acceptedFiles: ".txt, .csv, .pdf, .doc, .docx, .xls, .xlsx, .ppt, .pptx, .jpg, .jpeg, .png, .mkv", + acceptedFiles: ".txt, .csv, .pdf, .doc, .docx, .xls, .xlsx, .ppt, .pptx, .jpg, .jpeg, .png", maxFiles: 20, previewsContainer: "#dropzone-previews", dictDefaultMessage: "Kliknite to polje ali povlecite datoteke vanj.", diff --git a/templates/solar-pogodbe.html b/templates/solar-pogodbe.html index 2d486f0..6a1726c 100644 --- a/templates/solar-pogodbe.html +++ b/templates/solar-pogodbe.html @@ -159,11 +159,22 @@ {% endfor %}
+ +
+
+

Število oddaj na uporabnika

+
+
+
+
+
+ +
+
+
-
-


















@@ -335,22 +346,29 @@