From b927a032f8f5c95f8feafb7703fb52d4ce069545 Mon Sep 17 00:00:00 2001 From: Leon Noe Jovan Date: Fri, 26 Nov 2021 13:50:32 +0100 Subject: [PATCH] pogodbe, updates --- static/css/contracts.css | 149 +++++++++++++ static/css/contracts.css.map | 7 + static/css/contracts.scss | 41 ++++ static/css/form.css | 26 ++- static/css/form.css.map | 2 +- static/css/form.scss | 13 +- static/css/header.css | 14 +- static/css/header.css.map | 2 +- static/css/history.css | 35 +++- static/css/history.css.map | 2 +- static/css/history.scss | 24 ++- static/css/login-styles.css | 14 +- static/css/login-styles.css.map | 2 +- static/css/slovenscina-elements.scss | 11 + static/image/contract.svg | 5 + templates/solar-oddaja.html | 147 +------------ templates/solar-pogodbe.html | 303 +++++++++++++++++++++++++-- templates/solar-zgodovina.html | 119 +++++++---- 18 files changed, 703 insertions(+), 213 deletions(-) create mode 100644 static/css/contracts.css create mode 100644 static/css/contracts.css.map create mode 100644 static/css/contracts.scss create mode 100644 static/image/contract.svg diff --git a/static/css/contracts.css b/static/css/contracts.css new file mode 100644 index 0000000..3d604ea --- /dev/null +++ b/static/css/contracts.css @@ -0,0 +1,149 @@ +@import url(https://fonts.googleapis.com/css?family=Roboto:400,400italic,500,500italic,700,700italic,900,900italic,300italic,300,100italic,100); +html { + font-family: 'Roboto', sans-serif; + font-size: 16px; + color: #46535B; } + +body { + font-size: 16px; + padding: 0; + margin: 0; } + +h1 { + font-size: 30px; + font-style: normal; + font-weight: 300; + line-height: 35px; + color: #006CB7; } + +h2 { + font-size: 18px; + font-style: normal; + font-weight: 300; + line-height: 21px; + text-transform: uppercase; + color: #006CB7; } + +h3 { + font-size: 18px; + font-style: normal; + font-weight: 300; + line-height: 21px; } + +em { + font-weight: 300; } + +.btn { + border: none; + line-height: 2.5rem; + padding: 0 2.5rem; + color: white; + background: #006CB7; + border-radius: 20px; + font-size: 1.125rem; + font-weight: 400; + cursor: pointer; + transition: opacity 0.3s ease-out; } + .btn:hover { + opacity: 0.8; } + .btn:disabled { + cursor: default; + opacity: 0.5; } + +.panel { + background: #F5F5F5; + padding: 40px 60px; + border-radius: 20px; + max-width: 30rem; } + .panel .panel-logo { + position: absolute; + top: -60px; + left: 0; + right: 0; + display: block; + margin: auto; + background: #F5F5F5; + padding: 20px 30px; + width: 100px; + border-radius: 100%; + text-align: center; } + +.line { + background: #C4C4C4; + height: 2px; + width: 200px; + margin: auto; } + +.a-right { + display: block; + text-align: right; + font-size: 10px; + text-decoration: none; + color: #006CB7; + text-transform: uppercase; } + +.alert { + position: relative; + color: #8D3D3D; + margin-bottom: 2rem; } + .alert img { + position: relative; + top: 0.25rem; + width: 1.8rem; } + .alert p { + position: absolute; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + height: 2rem; + left: 3rem; + top: 0; + margin: 0; + text-transform: uppercase; } + +.submit-alert { + background: white; + border: 2px solid #B7DB70; + box-sizing: border-box; + border-radius: 8px; } + .submit-alert .btn { + margin-top: 0.5rem; + background: #88B52F; + border-radius: 4px; } + +.contract-item { + position: relative; + margin-left: 3rem; + border-bottom: 1px solid #C4C4C4; + padding-bottom: 1.25rem; } + .contract-item .contract-item-icon { + position: absolute; + left: -3rem; + top: 0; + width: 2rem; + height: 2rem; } + .contract-item .contract-item-title { + font-weight: 500; + font-size: 0.875rem; + line-height: 1rem; } + .contract-item .contract-item-date { + font-weight: normal; + font-size: 0.625rem; + line-height: 0.75rem; + text-transform: uppercase; } + .contract-item .contract-item-download { + position: absolute; + right: 0; + top: 1rem; + font-size: 0.75rem; + line-height: 0.825rem; + text-transform: uppercase; + color: #006CB7; + text-decoration: none; } + +.collaborators-item { + background: white; + width: 100%; } + +/*# sourceMappingURL=contracts.css.map */ diff --git a/static/css/contracts.css.map b/static/css/contracts.css.map new file mode 100644 index 0000000..3bda67e --- /dev/null +++ b/static/css/contracts.css.map @@ -0,0 +1,7 @@ +{ +"version": 3, +"mappings": "AAAQ,+IAAuI;AAa/I,IAAK;EACH,WAAW,EAAE,oBAAoB;EACjC,SAAS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GAAG;IAChB,SAAS,EAAE,QAAQ;IACnB,WAAW,EAAE,IAAI;EAEnB,kCAAoB;IAClB,WAAW,EAAE,MAAM;IACnB,SAAS,EAAE,QAAQ;IACnB,WAAW,EAAE,OAAO;IACpB,cAAc,EAAE,SAAS;EAE3B,sCAAwB;IACtB,QAAQ,EAAC,QAAQ;IACjB,KAAK,EAAC,CAAC;IACP,GAAG,EAAC,IAAI;IACR,SAAS,EAAE,OAAO;IAClB,WAAW,EAAE,QAAQ;IACrB,cAAc,EAAE,SAAS;IACzB,KAAK,EF9BF,OAAO;IE+BV,eAAe,EAAE,IAAI;;AAIzB,mBAAoB;EAClB,UAAU,EAAC,KAAK;EAChB,KAAK,EAAC,IAAI", +"sources": ["slovenscina-theme.scss","slovenscina-elements.scss","contracts.scss"], +"names": [], +"file": "contracts.css" +} \ No newline at end of file diff --git a/static/css/contracts.scss b/static/css/contracts.scss new file mode 100644 index 0000000..7fc2d84 --- /dev/null +++ b/static/css/contracts.scss @@ -0,0 +1,41 @@ +@import "slovenscina-elements.scss"; + +.contract-item { + position:relative; + margin-left:3rem; + border-bottom: 1px solid $grey; + padding-bottom:1.25rem; + .contract-item-icon { + position:absolute; + left:-3rem; + top:0; + width:2rem; + height:2rem; + } + .contract-item-title { + font-weight: 500; + font-size: 0.875rem; + line-height: 1rem; + } + .contract-item-date { + font-weight: normal; + font-size: 0.625rem; + line-height: 0.75rem; + text-transform: uppercase; + } + .contract-item-download { + position:absolute; + right:0; + top:1rem; + font-size: 0.75rem; + line-height: 0.825rem; + text-transform: uppercase; + color:$blue; + text-decoration: none; + } +} + +.collaborators-item { + background:white; + width:100%; +} \ No newline at end of file diff --git a/static/css/form.css b/static/css/form.css index 76c4993..3c044b7 100644 --- a/static/css/form.css +++ b/static/css/form.css @@ -46,11 +46,15 @@ em { transition: opacity 0.3s ease-out; } .btn:hover { opacity: 0.8; } + .btn:disabled { + cursor: default; + opacity: 0.5; } .panel { background: #F5F5F5; padding: 40px 60px; - border-radius: 20px; } + border-radius: 20px; + max-width: 30rem; } .panel .panel-logo { position: absolute; top: -60px; @@ -80,13 +84,19 @@ em { .alert { position: relative; - color: #8D3D3D; } + color: #8D3D3D; + margin-bottom: 2rem; } .alert img { position: relative; top: 0.25rem; width: 1.8rem; } .alert p { position: absolute; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + height: 2rem; left: 3rem; top: 0; margin: 0; @@ -123,6 +133,10 @@ em { border: 1px solid #B6BEC3; padding: 0.75rem 1rem; width: 100%; } + .form-wrapper input[type="radio"] { + float: left; + margin: 0; + margin-right: 0.5rem; } .form-wrapper .dropzone { box-sizing: border-box; padding: 0.5rem; @@ -161,10 +175,14 @@ em { .form-wrapper .dz-preview.dz-file-preview .dz-details .dz-filename { position: absolute; top: 1.5rem; - left: 1.5rem; } + left: 4rem; + width: 50%; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } .form-wrapper .dz-preview.dz-file-preview .dz-details .dz-size { position: absolute; - top: 1rem; + top: 1.5rem; right: 1rem; } .form-wrapper .dz-preview.dz-file-preview .dz-success-mark, .form-wrapper .dz-preview.dz-file-preview .dz-error-mark { display: none; } diff --git a/static/css/form.css.map b/static/css/form.css.map index 326d70e..e6b5a9b 100644 --- a/static/css/form.css.map +++ b/static/css/form.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,OAAO,EAAC,CAAC;EACT,MAAM,EAAC,CAAC;;ACpBV,EAAG;EACD,SAAS,EAAE,IAAI;EACf,UAAU,EAAE,MAAM;EAClB,WAAW,EAAE,GAAG;EAChB,WAAW,EAAE,IAAI;EACjB,KAAK,EDLA,OAAO;;ACOd,EAAG;EACD,SAAS,EAAE,IAAI;EACf,UAAU,EAAE,MAAM;EAClB,WAAW,EAAE,GAAG;EA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MAChB,iEAAW;QACT,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,YAAY;QACrB,UAAU,EFjGX,OAAO", "sources": ["slovenscina-theme.scss","slovenscina-elements.scss","form.scss"], "names": [], "file": "form.css" diff --git a/static/css/form.scss b/static/css/form.scss index 579c854..a5e2675 100644 --- a/static/css/form.scss +++ b/static/css/form.scss @@ -24,6 +24,11 @@ padding: 0.75rem 1rem; width:100%; } + input[type="radio"] { + float:left; + margin:0; + margin-right:0.5rem; + } .dropzone { box-sizing: border-box; padding:0.5rem; @@ -68,11 +73,15 @@ .dz-filename { position:absolute; top:1.5rem; - left:1.5rem; + left:4rem; + width:50%; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } .dz-size { position:absolute; - top:1rem; + top:1.5rem; right:1rem; } diff --git a/static/css/header.css b/static/css/header.css index 1329195..99545ad 100644 --- a/static/css/header.css +++ b/static/css/header.css @@ -46,11 +46,15 @@ em { transition: opacity 0.3s ease-out; } .btn:hover { opacity: 0.8; } + .btn:disabled { + cursor: default; + opacity: 0.5; } .panel { background: #F5F5F5; padding: 40px 60px; - border-radius: 20px; } + border-radius: 20px; + max-width: 30rem; } .panel .panel-logo { position: absolute; top: -60px; @@ -80,13 +84,19 @@ em { .alert { position: relative; - color: #8D3D3D; } + color: #8D3D3D; + margin-bottom: 2rem; } .alert img { position: relative; top: 0.25rem; width: 1.8rem; } .alert p { position: absolute; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + height: 2rem; left: 3rem; top: 0; margin: 0; diff --git a/static/css/header.css.map b/static/css/header.css.map index a9bab79..9c63089 100644 --- a/static/css/header.css.map +++ b/static/css/header.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,OAAO,EAAC,CAAC;EACT,MAAM,EA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G;EAChB,SAAS,EAAE,MAAM;EACjB,WAAW,EAAE,OAAO;EACpB,MAAM,EAAC,CAAC;EACR,KAAK,EF7DA,OAAO;;AE+Dd,UAAW;EACT,SAAS,EAAE,IAAI;EACf,WAAW,EAAE,IAAI;EACjB,UAAU,EAAC,MAAM", "sources": ["slovenscina-theme.scss","slovenscina-elements.scss","header.scss"], "names": [], "file": "header.css" diff --git a/static/css/history.css b/static/css/history.css index 2562aba..a5acf15 100644 --- a/static/css/history.css +++ b/static/css/history.css @@ -46,11 +46,15 @@ em { transition: opacity 0.3s ease-out; } .btn:hover { opacity: 0.8; } + .btn:disabled { + cursor: default; + opacity: 0.5; } .panel { background: #F5F5F5; padding: 40px 60px; - border-radius: 20px; } + border-radius: 20px; + max-width: 30rem; } .panel .panel-logo { position: absolute; top: -60px; @@ -80,13 +84,19 @@ em { .alert { position: relative; - color: #8D3D3D; } + color: #8D3D3D; + margin-bottom: 2rem; } .alert img { position: relative; top: 0.25rem; width: 1.8rem; } .alert p { position: absolute; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + height: 2rem; left: 3rem; top: 0; margin: 0; @@ -104,9 +114,11 @@ em { .history-item { background: white; - height: 2.875rem; + min-height: 2.875rem; + max-height: 2.875rem; padding: 1rem 1.5rem; - position: relative; } + position: relative; + transition: max-height 0.3s ease-out; } .history-item .history-item-date { text-transform: uppercase; display: inline-block; @@ -137,5 +149,20 @@ em { font-size: 1rem; line-height: 1.25rem; color: #46535B; } + .history-item .history-item-desc-full { + display: none; } + .history-item.open { + max-height: 10rem; } + .history-item.open .history-item-date { + display: block; } + .history-item.open .history-item-uploader { + display: block; + padding-left: 0; + margin-left: 0; + border-left: none; } + .history-item.open .history-item-desc { + display: none; } + .history-item.open .history-item-desc-full { + display: block; } /*# sourceMappingURL=history.css.map */ diff --git a/static/css/history.css.map b/static/css/history.css.map index c091269..10bf192 100644 --- a/static/css/history.css.map +++ b/static/css/history.css.map @@ -1,6 +1,6 @@ { "version": 3, -"mappings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,WAAW,EAAE,IAAI;IAEnB,qCAAmB;MACjB,OAAO,EAAE,IAAI;IAEf,0CAAwB;MACtB,OAAO,EAAE,KAAK", "sources": ["slovenscina-theme.scss","slovenscina-elements.scss","history.scss"], "names": [], "file": "history.css" diff --git a/static/css/history.scss b/static/css/history.scss index a38f034..e254b34 100644 --- a/static/css/history.scss +++ b/static/css/history.scss @@ -2,9 +2,12 @@ .history-item { background:white; - height:2.875rem; + min-height:2.875rem; + max-height:2.875rem; padding:1rem 1.5rem; position:relative; + transition: max-height 0.3s ease-out; + .history-item-date { text-transform: uppercase; display: inline-block; @@ -39,4 +42,23 @@ line-height: 1.25rem; color:$black; } + .history-item-desc-full { + display: none; + } + &.open { + max-height: 10rem; + .history-item-date {display:block;} + .history-item-uploader { + display:block; + padding-left:0; + margin-left:0; + border-left: none; + } + .history-item-desc { + display: none; + } + .history-item-desc-full { + display: block; + } + } } \ No newline at end of file diff --git a/static/css/login-styles.css b/static/css/login-styles.css index 0fa29e4..c1e3f18 100644 --- a/static/css/login-styles.css +++ b/static/css/login-styles.css @@ -46,11 +46,15 @@ em { transition: opacity 0.3s ease-out; } .btn:hover { opacity: 0.8; } + .btn:disabled { + cursor: default; + opacity: 0.5; } .panel { background: #F5F5F5; padding: 40px 60px; - border-radius: 20px; } + border-radius: 20px; + max-width: 30rem; } .panel .panel-logo { position: absolute; top: -60px; @@ -80,13 +84,19 @@ em { .alert { position: relative; - color: #8D3D3D; } + color: #8D3D3D; + margin-bottom: 2rem; } .alert img { position: relative; top: 0.25rem; width: 1.8rem; } .alert p { position: absolute; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + height: 2rem; left: 3rem; top: 0; margin: 0; diff --git a/static/css/login-styles.css.map b/static/css/login-styles.css.map index 38a0753..d1035cd 100644 --- a/static/css/login-styles.css.map +++ b/static/css/login-styles.css.map @@ -1,6 +1,6 @@ { "version": 3, -"mappings": "AAAQ,+IAAuI;AAa/I,IAAK;EACH,WAAW,EAAE,oBAAoB;E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AAC,CAAC;EAEV,kBAAE;IACA,QAAQ,EAAC,QAAQ;IACjB,IAAI,EAAC,IAAI;IACT,MAAM,EAAC,CAAC;IACR,MAAM,EAAC,CAAC;IACR,SAAS,EAAC,QAAQ;IAClB,WAAW,EAAE,GAAG;;AAIpB,cAAe;EACb,QAAQ,EAAC,QAAQ;EACjB,MAAM,EAAC,IAAI;EACX,0BAAY;IACV,QAAQ,EAAC,QAAQ;IACjB,IAAI,EAAC,CAAC;IACN,GAAG,EAAC,MAAM;IACV,OAAO,EAAC,KAAK;IACb,KAAK,EAAC,MAAM;EAEd,oCAAsB;IACpB,QAAQ,EAAC,QAAQ;IACjB,IAAI,EAAE,IAAI;IACV,KAAK,EAAC,CAAC;IACP,OAAO,EAAC,KAAK;IACb,uFAAc;MACZ,OAAO,EAAC,SAAS;MACjB,UAAU,EAAE,IAAI;MAChB,MAAM,EAAC,IAAI;MACX,OAAO,EAAC,KAAK;MACb,KAAK,EAAC,IAAI;MACV,aAAa,EAAE,iBAAe;MAC9B,mGAAQ;QACN,OAAO,EAAE,IAAI;IAIjB,0CAAM;MACJ,SAAS,EAAE,IAAI;MACf,KAAK,EFxEH,OAAO", "sources": ["slovenscina-theme.scss","slovenscina-elements.scss","login-styles.scss"], "names": [], "file": "login-styles.css" diff --git a/static/css/slovenscina-elements.scss b/static/css/slovenscina-elements.scss index 9d544bd..1264bca 100644 --- a/static/css/slovenscina-elements.scss +++ b/static/css/slovenscina-elements.scss @@ -41,6 +41,10 @@ em { &:hover { opacity: 0.8; } + &:disabled { + cursor:default; + opacity:0.5; + } } @@ -49,6 +53,7 @@ em { background: $white; padding: 40px 60px; border-radius: 20px; + max-width:30rem; .panel-logo { position:absolute; top: -60px; @@ -84,6 +89,7 @@ em { .alert { position:relative; color:$red; + margin-bottom:2rem; img { position:relative; top:0.25rem; @@ -91,6 +97,11 @@ em { } p { position: absolute; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + height:2rem; left:3rem; top: 0; margin:0; diff --git a/static/image/contract.svg b/static/image/contract.svg new file mode 100644 index 0000000..a28fed9 --- /dev/null +++ b/static/image/contract.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/templates/solar-oddaja.html b/templates/solar-oddaja.html index e0448fa..f198a65 100644 --- a/templates/solar-oddaja.html +++ b/templates/solar-oddaja.html @@ -21,7 +21,6 @@ {% endif %} Pomoč -
@@ -241,103 +240,7 @@
- @@ -358,7 +261,7 @@ var form = document.forms["form-oddaja"]; {% if not institution %} - btnSubmit.disabled = true; + btnSubmit.disabled = true; {% endif %} function isEmptyOrSpaces(str){ @@ -412,7 +315,7 @@ acceptedFiles: ".txt, .csv, .pdf, .doc, .docx, .xls, .xlsx, .ppt, .pptx, .jpg, .jpeg, .png, .mkv", maxFiles: 20, previewsContainer: "#dropzone-previews", - dictDefaultMessage: `Kliknite ali odložite datoteke sem.`, + dictDefaultMessage: "Kliknite ali odložite datoteke sem.", dictFallbackMessage: "Vaš brskalnik ne podpira izbiranje datotek z odlaganjem (\"drag & drop\").", dictInvalidFileType: "Datoteka je napačnega formata.", dictFileTooBig: "Datoteke je prevelika {{filesize}}. Največja dovoljena velikost: {{maxFilesize}}MiB.", @@ -468,59 +371,24 @@ btnSubmitFinal.addEventListener("click", function(e) { // Hand off data to dropzone dz.processQueue(); - - // Clear fields and hide popup agian - /*btnSubmit.disabled = false; - dataConfirmNotification.style.display = "none"; - btnSubmit.textContent = "Oddaj"; - form.reset(); - scrollboxTriggered = false;*/ }); - /*btnSubmitCancel.addEventListener("click", function(e) { - btnSubmit.disabled = false; - scrollboxTriggered = false; - elemTermsPopup.style.display = "none"; - });*/ - -/* - // Enable final submit button only if user scrolls to the end of the terms. - function checkScrollboxTrigger(event) { - var element = event.target; - if (!scrollboxTriggered - && element.scrollHeight - element.scrollTop <= element.clientHeight + 50 - ) { - scrollboxTriggered = true; - btnSubmitFinal.disabled = false; - } - } - - termsScrollbox.addEventListener('scroll', function(event) { - checkScrollboxTrigger(event); - }); - - termsScrollbox.addEventListener("mouseenter", function(event) { - checkScrollboxTrigger(event); - });*/ - - // Listen to the sendingmultiple event. In this case, it's the sendingmultiple event instead +// Listen to the sendingmultiple event. In this case, it's the sendingmultiple event instead // of the sending event because uploadMultiple is set to true. - /*this.on("sendingmultiple", function() { + this.on("sendingmultiple", function() { // Gets triggered when the form is actually being sent. // Hide the success button or the complete form. }); - this.on("successmultiple", function(files, response) { // Gets triggered when the files have successfully been sent. // Redirect user or notify of success. - alert("Odgovor strežnika: " + response); - location.reload(); }); - this.on("errormultiple", function(files, response) { // Gets triggered when there was an error sending the files. // Maybe show form again, and notify user of error - });*/ + }); + + this.on("sending", function(file, xhr, formData) { formData.append("program",form["program"].value); formData.append("predmet",form["predmet"].value); @@ -530,7 +398,6 @@ formData.append("vrsta-custom",form["vrsta-custom"].value); formData.append("solsko-leto",form["solsko-leto"].value); formData.append("jezikovni-popravki",form["jezikovni-popravki"].value); - }); diff --git a/templates/solar-pogodbe.html b/templates/solar-pogodbe.html index 36701af..10b919a 100644 --- a/templates/solar-pogodbe.html +++ b/templates/solar-pogodbe.html @@ -3,9 +3,170 @@ Portal za oddajanje besedil - + + + + +
+ + +
+
+
+
+

Koprus SOLAR

+

Zbiranje besedil za korpus Šolar poteka po naslednjem postopku, ki prinaša tudi točke za napredovanje.

+ + +
+
+ +
+
+

Oddaj pogodbo

+
+
+ {% if show_upload_form %} +
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+ +
+
+
+ +
+
+
+
+

lalala

+
+
+
+
+ +
+
+
+ {% endif %} + + + +
+
+

Oddane pogodbe

+
+
+ {% if contract_school %} +
+
+
+ contract +
Pogodba s šolo
+
DODANO: {{contract_school.timestamp.strftime('%d. %m. %Y')}}
+ Prenesi +
+
+
+ + {% endif %} + {% for item in contracts_students %} +
+
+
+ contract +
Pogodba o prenosu lastništva
+
DODANO: {{item.timestamp.strftime('%d. %m. %Y')}}
+ Prenesi +
+
+
+ {% endfor %} + + + +
+
+

Sodelujoči

+
+
+
+
+ {% for collaborator in collaborators %} + +
+
{{collaborator.name}}
+ {% if collaborator.id in cooperation_history %} + {% if cooperation_history[collaborator.id]["coordinator"]|length > 0 %} +
Vodenje: {% for item in cooperation_history[collaborator.id]["coordinator"] %} + {% if loop.index != 1 %}, {% endif %} + {{item[0]}} + {% endfor %}
+ {% endif %} + {% if cooperation_history[collaborator.id]["mentor"]|length > 0 %} +
Mentorstvo: {% for item in cooperation_history[collaborator.id]["mentor"] %} + {% if loop.index != 1 %}, {% endif %} + {{item[0]}} + {% endfor %}
+ {% endif %} + {% if cooperation_history[collaborator.id]["other"]|length > 0 %} +
Drugo: {% for item in cooperation_history[collaborator.id]["other"] %} + {% if loop.index != 1 %}, {% endif %} + {{item[0]}} + {% endfor %}
+ {% endif %} + {% endif %} +
+ + {% endfor %} +
+
+
+ + + +

















+ + + + + + + + diff --git a/templates/solar-zgodovina.html b/templates/solar-zgodovina.html index 92e6bec..e7240d0 100644 --- a/templates/solar-zgodovina.html +++ b/templates/solar-zgodovina.html @@ -34,7 +34,67 @@

Zgodovina naloženih datotek

+ {% set map_program = { + "OS" : "Osnovna šola (OŠ)", + "SSG" : "Splošna in strokovna gimnazija (SGG)", + "MGP" : "Mednarodni gimnazijski programi (MGP)", + "ZG" : "Zasebne gimnazije (ZG)", + "NPI" : "Nižje poklicno izobraževanje (NPI)", + "SPI" : "Srednje poklicno izobraževanje (SPI)", + "SSI" : "Srednje strokovno izobraževanje (SSI)", + "PTI" : "Poklicno-tehnično izobraževanje (PTI)" + }%} + {% set map_subject = { + "slo" : "Slovenščina", + "drug-jez" : "Drugi jezikoslovni predmeti", + "drug-druz" : "Drugi družboslovni predmeti", + "drug-narav" : "Drugi naravoslovni predmeti", + "drug-strok" : "Drugi strokovni predmeti", + "drug-izb" : "Drugi izbirni ali dodatni predmeti", + }%} + {% set map_text_type = { + "esej-spis" : "Esej ali spis", + "prakticno" : "Praktično besedilo, napisano za oceno", + "solski-test" : "Šolski test", + "delo-v-razredu" : "Delo v razredu, ne za oceno", + }%} + {% set map_grammar_corrections = { + "popr-ne" : "Besedilo vsebuje učiteljske popravke", + "brez-popr" : "Besedilo ne vsebuje učiteljskih popravkov", + "popr-da" : "Besedilo vsebuje učiteljske popravke in ne strinjam se z njihovo vključitvijo v korpus", + }%} + + + {% for item in upload_history %} + {% set item_values = [] %} + {% if institution_names[loop.index - 1] %} + {% set item_values = item_values + [institution_names[loop.index - 1]] %} + {% endif %} + {% if item.program %} + {% set item_values = item_values + [map_program[item.program]] %} + {% endif %} + {% if item.subject %} + {% set item_values = item_values + [map_subject[item.subject]] %} + {% endif %} + {% if item.subject_custom %} + {% set item_values = item_values + [item.subject_custom] %} + {% endif %} + {% if item.grade %} + {% set item_values = item_values + [item.grade ~ ". razred"] %} + {% endif %} + {% if item.text_type %} + {% set item_values = item_values + [map_text_type[item.text_type]] %} + {% endif %} + {% if item.text_type_custom %} + {% set item_values = item_values + [item.text_type_custom] %} + {% endif %} + {% if item.school_year %} + {% set item_values = item_values + ['20' ~ item.school_year | replace("-", "/")] %} + {% endif %} + {% if item.grammar_corrections %} + {% set item_values = item_values + [map_grammar_corrections[item.grammar_corrections]] %} + {% endif %}
@@ -42,45 +102,12 @@
{{ uploader_names[loop.index - 1] }}
Št. datotek: {{ item.upload_file_hashes|length }}
- - {% set began = False %} - {% if institution_names[loop.index - 1] %} - {% if began %}, {% endif %} {{ institution_names[loop.index - 1] }} - {% set began = True %} - {% endif %} - {% if item.program %} - {% if began %}, {% endif %} {{ item.program }} - {% set began = True %} - {% endif %} - {% if item.subject %} - {% if began %}, {% endif %} {{ item.subject }} - {% set began = True %} - {% endif %} - {% if item.subject_custom %} - {% if began %}, {% endif %} {{ item.subject_custom }} - {% set began = True %} - {% endif %} - {% if item.grade %} - {% if began %}, {% endif %} {{ item.grade }} - {% set began = True %} - {% endif %} - {% if item.text_type %} - {% if began %}, {% endif %} {{ item.text_type }} - {% set began = True %} - {% endif %} - {% if item.text_type_custom %} - {% if began %}, {% endif %} {{ item.text_type_custom }} - {% set began = True %} - {% endif %} - {% if item.school_year %} - {% if began %}, {% endif %} {{ item.school_year }} - {% set began = True %} - {% endif %} - {% if item.grammar_corrections %} - {% if began %}, {% endif %} {{ item.grammar_corrections }} - {% set began = True %} - {% endif %} - + {{ item_values | join(" | ") }} +
+
+ {% for v in item_values %} + {{v}}
+ {% endfor %}
@@ -111,7 +138,7 @@
Administracijski meni {% endif %}
Pomoč -
+
+