Added route prefix support.
This commit is contained in:
@@ -3,23 +3,23 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Portal za oddajanje besedil</title>
|
||||
<link rel="stylesheet" href="../static/css/header.css" type="text/css">
|
||||
<link rel="stylesheet" href="../static/css/form.css" type="text/css">
|
||||
<link rel="stylesheet" href="../static/css/simple-grid.css" type="text/css">
|
||||
<link rel="stylesheet" href="../static/css/utils.css" type="text/css">
|
||||
<link rel="stylesheet" href="{{ROUTE_PREFIX}}/static/css/header.css" type="text/css">
|
||||
<link rel="stylesheet" href="{{ROUTE_PREFIX}}/static/css/form.css" type="text/css">
|
||||
<link rel="stylesheet" href="{{ROUTE_PREFIX}}/static/css/simple-grid.css" type="text/css">
|
||||
<link rel="stylesheet" href="{{ROUTE_PREFIX}}/static/css/utils.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="logo"><a href="../"><img src="../static/image/logo-white.svg"/></a></div>
|
||||
<div class="logo"><a href="{{ROUTE_PREFIX}}/"><img src="{{ROUTE_PREFIX}}/static/image/logo-white.svg"/></a></div>
|
||||
<div class="menu-items">
|
||||
{% if is_institution_coordinator %}
|
||||
<a href="../manage-institution">Upravljaj z institucijo</a>
|
||||
<a href="{{ROUTE_PREFIX}}/manage-institution">Upravljaj z institucijo</a>
|
||||
{% endif %}
|
||||
{% if is_admin %}
|
||||
<a href="../admin">Administracijski meni</a>
|
||||
<a href="{{ROUTE_PREFIX}}/admin">Administracijski meni</a>
|
||||
{% endif %}
|
||||
<a href="https://slovenscina.eu/" target="_blank">Več informacij</a>
|
||||
<a href="../logout">Odjava</a>
|
||||
<a href="{{ROUTE_PREFIX}}/logout">Odjava</a>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container" style="margin-top:8rem;">
|
||||
@@ -30,9 +30,9 @@
|
||||
|
||||
|
||||
<div class="tab-nav">
|
||||
<a href="../oddaja" class="active">Oddaja besedil</a>
|
||||
<a href="../zgodovina">Zgodovina sodelovanja</a>
|
||||
<a href="../pogodbe">Ekipa</a>
|
||||
<a href="{{ROUTE_PREFIX}}/oddaja" class="active">Oddaja besedil</a>
|
||||
<a href="{{ROUTE_PREFIX}}/zgodovina">Zgodovina sodelovanja</a>
|
||||
<a href="{{ROUTE_PREFIX}}/pogodbe">Ekipa</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -43,21 +43,21 @@
|
||||
<div class="col-6">
|
||||
{% if not institution %}
|
||||
<div class="alert">
|
||||
<img src="../static/image/alert.svg" alt="alert"/>
|
||||
<img src="{{ROUTE_PREFIX}}/static/image/alert.svg" alt="alert"/>
|
||||
<p>Niste član nobene institucije!</p>
|
||||
</div>
|
||||
{% elif not institution_contract %}
|
||||
<!--<div class="alert">
|
||||
<img src="../static/image/alert.svg" alt="alert"/>
|
||||
<img src="{{ROUTE_PREFIX}}/static/image/alert.svg" alt="alert"/>
|
||||
<p>Pogodba s šolo še ni naložena!</p>
|
||||
</div>-->
|
||||
{% endif %}
|
||||
<div class="alert" id="error-message">
|
||||
<img src="../static/image/alert.svg" alt="alert"/>
|
||||
<img src="{{ROUTE_PREFIX}}/static/image/alert.svg" alt="alert"/>
|
||||
<p></p>
|
||||
</div>
|
||||
<div class="alert alert-success" id="success-message">
|
||||
<img src="../static/image/success.svg" alt="alert"/>
|
||||
<img src="{{ROUTE_PREFIX}}/static/image/success.svg" alt="alert"/>
|
||||
<p></p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -271,7 +271,7 @@
|
||||
|
||||
|
||||
<!--{{ dropzone.load_js() }}-->
|
||||
<script src="../static/dropzone.js"></script>
|
||||
<script src="{{ROUTE_PREFIX}}/static/dropzone.js"></script>
|
||||
<script>
|
||||
/////////////////////////
|
||||
// Dropzone //
|
||||
@@ -340,7 +340,7 @@
|
||||
|
||||
|
||||
Dropzone.options.myDropzone = { // The camelized version of the ID of the form element
|
||||
url: "../upload",
|
||||
url: "{{ROUTE_PREFIX}}/upload",
|
||||
autoProcessQueue: false,
|
||||
uploadMultiple: true,
|
||||
parallelUploads: 20,
|
||||
|
||||
Reference in New Issue
Block a user