new menu, manage instutution reorganized

This commit is contained in:
Leon Noe Jovan
2022-02-13 15:20:20 +01:00
parent ab842809c7
commit e1b1d194fd
12 changed files with 422 additions and 90 deletions

View File

@@ -36,16 +36,25 @@
<body>
<header>
<div class="logo"><a href="../"><img src="../static/image/logo-white.svg"/></a></div>
<div class="menu-items">
<a href="../logout">Odjava</a>
{% if is_institution_coordinator %}
<a href="../manage-institution">Upravljaj z institucijo</a>
{% endif %}
{% if is_admin %}
<a href="../admin">Administracijski meni</a>
{% endif %}
<a href="../oddaja">Oddaja</a>
<a href="https://slovenscina.eu/" target="_blank">Več informacij</a>
<div class="dropdown">
<button class="dropbtn"><img src="/static/image/menu.svg"/></button>
<div class="dropdown-content">
<a href="../oddaja">Oddaja</a>
<a href="../zgodovina">Zgodovina</a>
<a href="../pogodbe">Ekipa</a>
{% if is_institution_coordinator %}
<hr/>
<a href="../manage-institution">Upravljaj z institucijo</a>
{% endif %}
{% if is_admin %}
<hr/>
<a href="../admin">Administracijski meni</a>
{% endif %}
<hr/>
<a href="https://slovenscina.eu/" target="_blank">Več informacij</a>
<hr/>
<a href="../logout">Odjava</a>
</div>
</div>
</header>
<div class="container" style="margin-top:8rem;">
@@ -155,6 +164,7 @@
<th>Email</th>
<th>Institucija</th>
<th>Vloga v instituciji</th>
<th>Akcije</th>
</tr>
</thead>
<tbody>
@@ -165,16 +175,17 @@
<td>{{item[0].email}}</td>
<td>{{item[1].institution}}</td>
<td>{{item[1].role}}</td>
<td>
<form action="../activateuser" method="post">
<input type="hidden" id="id" name="id" value="{{item[0].id}}">
<input type="submit" value="Aktiviraj">
</form>
</td>
</tr>
{% endfor %}
</table>
</div>
<h3>Aktiviraj uporabnika</h3>
<form action="../activateuser" method="post">
<label for="id">ID uporabnika:</label>
<input type="text" id="id" name="id"><br>
<input type="submit" value="Aktiviraj">
</form>
<div> </div>
<h2>Institucije</h2>
<h3>Dodaj institucijo</h3>