manjsi popravki
This commit is contained in:
@@ -47,10 +47,10 @@
|
||||
<p>Niste član nobene institucije!</p>
|
||||
</div>
|
||||
{% elif not institution_contract %}
|
||||
<div class="alert">
|
||||
<!--<div class="alert">
|
||||
<img src="../static/image/alert.svg" alt="alert"/>
|
||||
<p>Pogodba s šolo še ni naložena!</p>
|
||||
</div>
|
||||
</div>-->
|
||||
{% endif %}
|
||||
<div class="alert" id="error-message">
|
||||
<img src="../static/image/alert.svg" alt="alert"/>
|
||||
@@ -267,7 +267,7 @@
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<br/><br/><br/><br/><br/><br/><br/>
|
||||
|
||||
|
||||
<!--{{ dropzone.load_js() }}-->
|
||||
|
||||
@@ -35,91 +35,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h2>Oddaj pogodbo</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if show_upload_form %}
|
||||
<form action="" method="POST" id="form-pogodbe" enctype="multipart/form-data">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="form-wrapper">
|
||||
<input type="radio" id="sola" name="tip-pogodbe" value="sola" {% if enable_upload_school_contract %}{%else%}disabled{%endif%}>
|
||||
<label for="sola">Pogodba s šolo</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="form-wrapper">
|
||||
<input type="radio" id="ucenci-starsi" name="tip-pogodbe" value="ucenci-starsi">
|
||||
<label for="ucenci-starsi">Pogodba z učenci / starši</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="form-wrapper">
|
||||
<div id="dropzone-previews" class="dropzone-previews"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="form-wrapper">
|
||||
<label for="my-dropzone">Datoteka</label>
|
||||
<div id="my-dropzone" class="dropzone"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<p>lalala</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<button class="btn" id="btn-submit" type="submit">Oddaj pogodbo</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{% endif %}
|
||||
-->
|
||||
|
||||
<!--
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h2>Oddane pogodbe</h2>
|
||||
</div>
|
||||
</div>
|
||||
{% if contract_school %}
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="contract-item">
|
||||
<img src="../static/image/contract.png" alt="contract" class="contract-item-icon"/>
|
||||
<div class="contract-item-title">Pogodba s šolo</div>
|
||||
<div class="contract-item-date">DODANO: {{contract_school.timestamp.strftime('%d. %m. %Y')}}</div>
|
||||
<a href="../pogodbe-institucije/{{ contract_school.file_contract }}.pdf" class="contract-item-download">Prenesi</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
{% for item in contracts_students %}
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="contract-item">
|
||||
<img src="../static/image/contract.svg" alt="contract" class="contract-item-icon"/>
|
||||
<div class="contract-item-title">Pogodba o prenosu lastništva</div>
|
||||
<div class="contract-item-date">DODANO: {{item.timestamp.strftime('%d. %m. %Y')}}</div>
|
||||
<a href="../pogodbe-ucencistarsi/{{ item.file_contract }}.pdf" class="contract-item-download">Prenesi</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
-->
|
||||
|
||||
|
||||
<!--<div class="row">
|
||||
@@ -127,56 +45,6 @@
|
||||
<h2>Sodelujoči</h2>
|
||||
</div>
|
||||
</div>-->
|
||||
<div class="row">
|
||||
PLACEHOLDER - GRAF SODELOVANJA
|
||||
</div>
|
||||
{% set vars = {'prev_schoolyear': ''} %}
|
||||
{% for item in cooperation_history %}
|
||||
{% if item.school_year != vars.prev_schoolyear %}
|
||||
<div class="row">
|
||||
<b>Šolsko leto {{item.school_year}}</b>
|
||||
</div>
|
||||
{% if vars.update({'prev_schoolyear': item.school_year}) %} {% endif %}
|
||||
{% endif %}
|
||||
<div class="row">
|
||||
{{item.name}}
|
||||
{{item.badge_text}}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
<!--<div class="row">
|
||||
<div class="col-6">
|
||||
{#{% for collaborator in collaborators %}
|
||||
<div class="team-item">
|
||||
<div class="team-item-name">{{collaborator.name}}</div>
|
||||
<div class="team-item-collaborations">
|
||||
{% if collaborator.id in cooperation_history %}
|
||||
{% if cooperation_history[collaborator.id]["coordinator"]|length > 0 %}
|
||||
<div class="team-item-years">Vodenje: {% for item in cooperation_history[collaborator.id]["coordinator"] %}
|
||||
{% if loop.index != 1 %}, {% endif %}
|
||||
{{item[0]}}
|
||||
{% endfor %}</div>
|
||||
{% endif %}
|
||||
{% if cooperation_history[collaborator.id]["mentor"]|length > 0 %}
|
||||
<div class="team-item-years">Mentorstvo: {% for item in cooperation_history[collaborator.id]["mentor"] %}
|
||||
{% if loop.index != 1 %}, {% endif %}
|
||||
{{item[0]}}
|
||||
{% endfor %}</div>
|
||||
{% endif %}
|
||||
{% if cooperation_history[collaborator.id]["other"]|length > 0 %}
|
||||
<div class="team-item-years">Drugo: {% for item in cooperation_history[collaborator.id]["other"] %}
|
||||
{% if loop.index != 1 %}, {% endif %}
|
||||
{{item[0]}}
|
||||
{% endfor %}</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h2>Število oddaj na uporabnika</h2>
|
||||
@@ -189,167 +57,34 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>-->
|
||||
{% set vars = {'prev_schoolyear': ''} %}
|
||||
{% for item in cooperation_history %}
|
||||
{% if item.school_year != vars.prev_schoolyear %}
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h2>Šolsko leto {{item.school_year}}</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if vars.update({'prev_schoolyear': item.school_year}) %} {% endif %}
|
||||
{% endif %}
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="team-item">
|
||||
<div class="team-item-name">{{item.name}} <span class="team-item-role">{{item.badge_text}}</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
|
||||
|
||||
|
||||
|
||||
|
||||
<!--{#
|
||||
<a href="../logout">Odjavi se</a>
|
||||
{% if is_institution_coordinator %}
|
||||
<br><a href="../manage-institution">Upravljaj z institucijo</a>
|
||||
{% endif %}
|
||||
{% if is_admin %}
|
||||
<br><a href="../admin">Administracijski meni</a>
|
||||
{% endif %}
|
||||
<br><a href="https://slovenscina.eu/" target="_blank">Več informacij</a>
|
||||
<div class="bg"></div>
|
||||
<div id="main-window">
|
||||
<div id="rect1">
|
||||
|
||||
{% with messages = get_flashed_messages() %}
|
||||
{% if messages %}
|
||||
<div class="message-notification">
|
||||
{{ messages[0] }}
|
||||
</div>
|
||||
<div id="contract-container" style="height: 250px;">
|
||||
{% else %}
|
||||
<div id="contract-container">
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
||||
{% if contract_school %}
|
||||
<div class="contract-item">
|
||||
<img src="../static/image/contract.png" alt="contract" class="contract-item-icon"/>
|
||||
<div class="contract-item-title">Pogodba s šolo</div>
|
||||
<div class="contract-item-data">{{contract_school.original_filename}}</div>
|
||||
<div class="contract-item-data">DODANO: {{contract_school.timestamp}}</div>
|
||||
<a href="../pogodbe-institucije/{{ contract_school.file_contract }}.pdf" class="contract-item-button">Prenesi</a>
|
||||
</div>
|
||||
</br>
|
||||
{% endif %}
|
||||
{% for item in contracts_students %}
|
||||
<div class="contract-item">
|
||||
<img src="../static/image/contract.png" alt="contract" class="contract-item-icon"/>
|
||||
<div class="contract-item-title" style="font-size: 12px;">{{item.original_filename}}</div>
|
||||
<div class="contract-item-data">Pogodba o prenosu lastništva</div>
|
||||
<div class="contract-item-data">DODANO: {{item.timestamp}}</div>
|
||||
<a href="../pogodbe-ucencistarsi/{{ item.file_contract }}.pdf" class="contract-item-button">Prenesi</a>
|
||||
</div>
|
||||
</br>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</br>
|
||||
</br>
|
||||
{% if show_upload_form %}
|
||||
<div style="padding: 20px; position: absolute; top: 500px; width: 89%;">
|
||||
<div class="section-desc">Oddaj pogodbo</div>
|
||||
<form action="../pogodbe" method="post" enctype="multipart/form-data">
|
||||
{% if enable_upload_school_contract %}
|
||||
<div style="display:flex; flex-direction: row; justify-content: left; align-items: center">
|
||||
<label style="width: 80%; text-align: right;" for="sola">Pogodba s šolo</label>
|
||||
<input style="width: 20%;" type="radio" id="sola" name="tip-pogodbe" value="sola">
|
||||
</div>
|
||||
{% else %}
|
||||
<div style="display:flex; flex-direction: row; justify-content: left; align-items: center">
|
||||
<label style="width: 80%; text-align: right;" for="sola">Pogodba s šolo</label>
|
||||
<input style="width: 20%;"type="radio" id="sola" name="tip-pogodbe" value="sola" disabled>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div style="display:flex; flex-direction: row; justify-content: left; align-items: center">
|
||||
<label style="width: 80%; text-align: right;" for="ucenci-starsi">Pogodba z učenci / starši</label>
|
||||
<input style="width: 20%;" type="radio" id="ucenci-starsi" name="tip-pogodbe" value="ucenci-starsi" checked>
|
||||
</div>
|
||||
<input style="font-size: 10px;" type="file" id="file-contract" name="file[]" multiple="">
|
||||
<button style="float: right;" type="submit">Oddaj pogodbo</button>
|
||||
</form>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div id="rect2" class="mock-side">
|
||||
<div id="collaborators-container">
|
||||
<div class="container-title">Sodelujoči</div>
|
||||
<div style="overflow-y: auto;">
|
||||
{% for collaborator in collaborators %}
|
||||
<div class="collaborators-item">
|
||||
<div class="collaborators-item-name">{{collaborator.name}}</div>
|
||||
{% if collaborator.id in cooperation_history %}
|
||||
{% if cooperation_history[collaborator.id]["coordinator"]|length > 0 %}
|
||||
<div class="collaborators-item-years"><b>Vodenje:</b> {% for item in cooperation_history[collaborator.id]["coordinator"] %}
|
||||
{% if loop.index != 1 %}, {% endif %}
|
||||
{{item[0]}}
|
||||
{% endfor %}</div>
|
||||
{% endif %}
|
||||
{% if cooperation_history[collaborator.id]["mentor"]|length > 0 %}
|
||||
<div class="collaborators-item-years"><b>Mentorstvo:</b> {% for item in cooperation_history[collaborator.id]["mentor"] %}
|
||||
{% if loop.index != 1 %}, {% endif %}
|
||||
{{item[0]}}
|
||||
{% endfor %}</div>
|
||||
{% endif %}
|
||||
{% if cooperation_history[collaborator.id]["other"]|length > 0 %}
|
||||
<div class="collaborators-item-years"><b>Drugo:</b> {% for item in cooperation_history[collaborator.id]["other"] %}
|
||||
{% if loop.index != 1 %}, {% endif %}
|
||||
{{item[0]}}
|
||||
{% endfor %}</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
<div id="awards-container">
|
||||
<div class="container-title">Sodelovanje v letih</div>
|
||||
<div style="overflow-y: auto; margin: auto; width: 100%; height: 200px;">
|
||||
{% if cooperation_history.keys()|length > 0 %}
|
||||
{% if user_id in cooperation_history %}
|
||||
{% for item in cooperation_history[user_id]['coordinator'] %}
|
||||
<div style="border-bottom: 2px solid #c4c4c4; min-height: 50px; margin-bottom: 10px;">
|
||||
<img src="../static/image/star.png" alt="star" style="float: left; width: 40px;"/>
|
||||
<div class="collaborators-item-name"
|
||||
style="float: right; width: 250px; text-align: left; margin-left: 20px;text-overflow: ellipsis; overflow: hidden; white-space: nowrap;">
|
||||
{{item[1]}}
|
||||
</div>
|
||||
<div class="collaborators-item-name"
|
||||
style="float: right; width: 250px; text-align: left; margin-left: 20px;">
|
||||
{{item[0]}}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% for item in cooperation_history[user_id]['mentor'] %}
|
||||
<div style="border-bottom: 2px solid #c4c4c4; min-height: 50px; margin-bottom: 10px;">
|
||||
<img src="../static/image/star.png" alt="star" style="float: left; width: 40px;"/>
|
||||
<div class="collaborators-item-name"
|
||||
style="float: right; width: 250px; text-align: left; margin-left: 20px;text-overflow: ellipsis; overflow: hidden; white-space: nowrap;">
|
||||
{{item[1]}}
|
||||
</div>
|
||||
<div class="collaborators-item-name"
|
||||
style="float: right; width: 250px; text-align: left; margin-left: 20px;">
|
||||
{{item[0]}}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% for item in cooperation_history[user_id]['other'] %}
|
||||
<div style="border-bottom: 2px solid #c4c4c4; min-height: 50px; margin-bottom: 10px;">
|
||||
<img src="../static/image/star.png" alt="star" style="float: left; width: 40px;"/>
|
||||
<div class="collaborators-item-name"
|
||||
style="float: right; width: 250px; text-align: left; margin-left: 20px;text-overflow: ellipsis; overflow: hidden; white-space: nowrap;">
|
||||
{{item[1]}}
|
||||
</div>
|
||||
<div class="collaborators-item-name"
|
||||
style="float: right; width: 250px; text-align: left; margin-left: 20px;">
|
||||
{{item[0]}}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>#}-->
|
||||
</body>
|
||||
<script src="https://d3js.org/d3.v6.js"></script>
|
||||
<style>
|
||||
|
||||
@@ -48,7 +48,8 @@
|
||||
<img src="../static/image/password.svg" alt="user" class="input-icon"/>
|
||||
<div class="input-floating-label">
|
||||
<label>Geslo</label>
|
||||
<input type="password" name="password">
|
||||
<input type="password" name="password">
|
||||
<label class="input-hint">Geslo naj bo dolgo vsaj 8 znakov.</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-wrapper">
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
<div class="input-floating-label">
|
||||
<label>Novo geslo</label>
|
||||
<input type="password" name="new_password">
|
||||
<label class="input-hint">Geslo naj bo dolgo vsaj 8 znakov.</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -161,6 +161,7 @@
|
||||
</div>
|
||||
|
||||
|
||||
<br/><br/><br/><br/><br/><br/><br/>
|
||||
|
||||
|
||||
|
||||
@@ -168,111 +169,6 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!--<div class="bg"></div>
|
||||
<div id="main-window">
|
||||
<div id="rect1">
|
||||
<div style="padding: 20px;">
|
||||
<div id="logo-container">
|
||||
<img src="../static/image/logo.svg" alt="logo"/>
|
||||
</div>
|
||||
<h1 id="title" style="font-size: 25px; position: relative;">Korpus ŠOLAR</h1>
|
||||
<div class="selection-tabs">
|
||||
<button onclick="window.location.replace('../oddaja');" class="selection-tab-button">ODDAJA</button>
|
||||
<button onclick="window.location.replace('../zgodovina');" class="selection-tab-button selected">ZGODOVINA</button>
|
||||
<button onclick="window.location.replace('../pogodbe');" class="selection-tab-button">POGODBE</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="history-container" style="padding: 20px;">
|
||||
{% for item in upload_history %}
|
||||
<div class="history-item">
|
||||
<div class="history-item-date">{{ item.timestamp }}</div>
|
||||
<div class="history-item-uploader">{{ uploader_names[loop.index - 1] }}</div>
|
||||
<div class="history-item-filecount">Št. datotek: {{ item.upload_file_hashes|length }}</div>
|
||||
<div class="history-item-desc">
|
||||
[
|
||||
{% 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 %}
|
||||
]
|
||||
</div>
|
||||
</div>
|
||||
</br>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
<div id="rect2" class="mock-side">
|
||||
<canvas id="myChart" width="400" height="400"></canvas>
|
||||
<script>
|
||||
function drawChart(data) {
|
||||
var ctx = document.getElementById('myChart').getContext('2d');
|
||||
var myChart = new Chart(ctx, {
|
||||
type: 'bar',
|
||||
data: {
|
||||
labels: Object.keys(data),
|
||||
datasets: [{
|
||||
label: 'št. naloženih datotek',
|
||||
data: Object.values(data),
|
||||
backgroundColor: 'rgba(54, 162, 235, 1.0)',
|
||||
borderWidth: 1
|
||||
}]
|
||||
},
|
||||
options: {
|
||||
plugins: {
|
||||
title: {
|
||||
display: true,
|
||||
text: ''
|
||||
}
|
||||
},
|
||||
scales: {
|
||||
y: {
|
||||
beginAtZero: true
|
||||
}
|
||||
},
|
||||
indexAxis: 'y'
|
||||
}
|
||||
});
|
||||
}
|
||||
fetch('../topuploads').then(r => r.json()).then(j => drawChart(j));
|
||||
|
||||
</script>-->
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
var toggleOpen = function() {
|
||||
|
||||
Reference in New Issue
Block a user