Added predavanja, restructure, progress on solar.
This commit is contained in:
@@ -4,51 +4,35 @@
|
||||
<meta charset="UTF-8">
|
||||
<title>Portal za oddajanje besedil</title>
|
||||
<!--{{ dropzone.load_css() }}-->
|
||||
<link rel="stylesheet" href="static/dropzone.css" type="text/css">
|
||||
<link rel="stylesheet" href="/static/dropzone.css" type="text/css">
|
||||
{{ dropzone.style('position: absolute;
|
||||
top: -0.5px;
|
||||
width: 388px;
|
||||
height: 632px;
|
||||
height: 732px;
|
||||
left: 385px;
|
||||
background: linear-gradient(198.62deg, rgba(255, 255, 255, 0.49) -1.62%, rgba(255, 255, 255, 0.73) -1.61%, rgba(255, 255, 255, 0.41) 79.34%);
|
||||
box-shadow: 20px 4px 40px rgba(0, 0, 0, 0.25);
|
||||
backdrop-filter: blur(20px);
|
||||
border: 0px;
|
||||
border-radius: 0px 20px 20px 0px;') }}
|
||||
<link rel="stylesheet" href="static/style.css" type="text/css">
|
||||
<link rel="stylesheet" href="/static/style.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="bg"></div>
|
||||
<div id="main-window">
|
||||
<div id="rect1">
|
||||
<div id="logo-container">
|
||||
<img src="static/image/logo.svg" alt="logo"/>
|
||||
<img src="/static/image/logo.svg" alt="logo"/>
|
||||
</div>
|
||||
|
||||
<form id="my-dropzone" class="dropzone">
|
||||
<div style="position: relative; right: 390px;">
|
||||
<h1 id="title">Korpus ŠOLAR</h1>
|
||||
<h1 id="title" style="font-size: 25px;">Korpus ŠOLAR</h1>
|
||||
|
||||
<!--<label for="ime">IME</label>
|
||||
<input type="text" id="ime" name="ime" required="required"/>
|
||||
|
||||
<label for="institucija">INSTITUCIJA</label>
|
||||
<input type="text" id="institucija" name="institucija"/>
|
||||
|
||||
<label for="regija">REGIJA</label>
|
||||
<select id="regija" name="regija">
|
||||
<option value="CE" selected="selected">Celje (CE)</option>
|
||||
<option value="GO">Nova Gorica (GO)</option>
|
||||
<option value="KK">Krško (KK)</option>
|
||||
<option value="KP">Koper (KP)</option>
|
||||
<option value="KR">Kranj (KR)</option>
|
||||
<option value="LJ">Ljubljana (LJ)</option>
|
||||
<option value="MB">Maribor (MB)</option>
|
||||
<option value="MS">Murska Sobota (MS)</option>
|
||||
<option value="NM">Novo Mesto (NM)</option>
|
||||
<option value="PO">Postojna (PO)</option>
|
||||
<option value="SG">Slovenj Gradec (SG)</option>
|
||||
</select>-->
|
||||
<div class="selection-tabs">
|
||||
<button class="selection-tab-button selected">ODDAJA</button>
|
||||
<button class="selection-tab-button">ZGODOVINA</button>
|
||||
<button class="selection-tab-button">POGODBE</button>
|
||||
</div>
|
||||
|
||||
<label for="program">PROGRAM</label>
|
||||
<select id="program" name="program">
|
||||
@@ -71,6 +55,10 @@
|
||||
<option value="drug-strok">Drugi strokovni predmeti</option>
|
||||
<option value="drug-izb">Drugi izbirni ali dodatni predmeti</option>
|
||||
</select>
|
||||
<div id="predmet-custom-box" style="display: none;">
|
||||
<label for="predmet-custom">Ime predmeta:</label>
|
||||
<input type="text" id="predmet-custom" name="predmet-custom"/>
|
||||
</div>
|
||||
|
||||
<label for="letnik">LETNIK</label>
|
||||
<select id="letnik" name="letnik">
|
||||
@@ -92,6 +80,11 @@
|
||||
<option value="solski-test">Šolski test</option>
|
||||
<option value="delo-v-razredu">Delo v razredu, ne za oceno</option>
|
||||
</select>
|
||||
<div id="vrsta-custom-box" style="display: none;">
|
||||
<label for="vrsta-custom">Vtipkajte besedilno vrsto:</label>
|
||||
<input type="text" id="vrsta-custom" name="vrsta-custom"/>
|
||||
</div>
|
||||
|
||||
|
||||
<label for="solsko-leto">ŠOLSKO LETO</label>
|
||||
<select id="solsko-leto" name="solsko-leto">
|
||||
@@ -222,11 +215,13 @@ zagotovili vse potrebne informacije v skladu s predpisi o varstvu osebnih podatk
|
||||
</div>
|
||||
|
||||
<!--{{ dropzone.load_js() }}-->
|
||||
<script src="static/dropzone.js"></script>
|
||||
<script src="/static/dropzone.js"></script>
|
||||
<script>
|
||||
/////////////////////////
|
||||
// Dropzone //
|
||||
/////////////////////////
|
||||
var selectPredmet = document.getElementById("predmet");
|
||||
var selectVrsta = document.getElementById("vrsta");
|
||||
var btnSubmit = document.getElementById("button-submit");
|
||||
var btnSubmitFinal = document.getElementById("button-submit-final");
|
||||
var btnSubmitCancel = document.getElementById("button-submit-cancel");
|
||||
@@ -265,6 +260,23 @@ zagotovili vse potrebne informacije v skladu s predpisi o varstvu osebnih podatk
|
||||
init: function() {
|
||||
var dz = this;
|
||||
|
||||
selectPredmet.addEventListener("change", function(e) {
|
||||
var predmetCustomBox = document.getElementById("predmet-custom-box");
|
||||
if (selectPredmet.value.startsWith("drug")) {
|
||||
predmetCustomBox.style.display = "inherit";
|
||||
} else {
|
||||
predmetCustomBox.style.display = "none";
|
||||
}
|
||||
});
|
||||
|
||||
selectVrsta.addEventListener("change", function(e) {
|
||||
var vrstaCustomBox = document.getElementById("vrsta-custom-box");
|
||||
if (selectVrsta.value == "delo-v-razredu") {
|
||||
vrstaCustomBox.style.display = "inherit";
|
||||
} else {
|
||||
vrstaCustomBox.style.display = "none";
|
||||
}
|
||||
});
|
||||
|
||||
btnSubmit.addEventListener("click", function(e) {
|
||||
// Make sure that the form isn't actually being sent.
|
||||
@@ -272,17 +284,19 @@ zagotovili vse potrebne informacije v skladu s predpisi o varstvu osebnih podatk
|
||||
e.stopPropagation();
|
||||
|
||||
// Check form validity.
|
||||
var ime = form["ime"].value;
|
||||
var email = form["email"].value;
|
||||
var podjetje = form["podjetje"].value;
|
||||
var telefon = form["telefon"].value;
|
||||
var izjava = form["izjava"].checked;
|
||||
if (isEmptyOrSpaces(ime) || isEmptyOrSpaces(email) || !izjava) {
|
||||
alert("Izpolnite vsa obvezna polja!");
|
||||
} else if (!reEmail.test(email.toLowerCase())) {
|
||||
alert("Email napačnega formata!");
|
||||
} else if (ime.length > 100 || email.length > 100 || podjetje.length > 100 || telefon.length > 100) {
|
||||
alert("Velikost polj je omejena na 100 znakov.");
|
||||
var program = form["program"].value;
|
||||
var predmet = form["predmet"].value;
|
||||
var predmetCustom = form["predmet-custom"].value;
|
||||
var letnik = form["letnik"].value;
|
||||
var vrsta = form["vrsta"].value;
|
||||
var vrstaCustom = form["vrsta-custom"].value;
|
||||
var solskoLeto = form["solsko-leto"].value;
|
||||
var jezikovniPopravki = form["jezikovni-popravki"].value;
|
||||
|
||||
if (predmet.startsWith("drug") && isEmptyOrSpaces(predmetCustom)) {
|
||||
alert("Polje za predmet ne more biti prazno!");
|
||||
} else if (vrsta === "delo-v-razredu" && isEmptyOrSpaces(vrstaCustom)) {
|
||||
alert("Polje za vrsto besedila ne more biti prazno!");
|
||||
} else {
|
||||
// Then make terms popup visible
|
||||
btnSubmit.disabled = true;
|
||||
|
||||
Reference in New Issue
Block a user