2021-08-22 17:07:19 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Upravljanje institucije - Šolar</title>
|
|
|
|
<style>
|
|
|
|
.tableFixHead {
|
2021-09-02 12:40:54 +00:00
|
|
|
overflow-y: scroll;
|
|
|
|
max-height: 306px;
|
2021-08-22 17:07:19 +00:00
|
|
|
}
|
|
|
|
.tableFixHead thead th {
|
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
table {
|
|
|
|
border-collapse: collapse;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
padding: 8px 16px;
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
}
|
|
|
|
th {
|
|
|
|
background: #eee;
|
|
|
|
}
|
2021-09-02 12:40:54 +00:00
|
|
|
h2 {
|
|
|
|
color: blue;
|
|
|
|
}
|
2021-08-22 17:07:19 +00:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2021-10-12 09:11:37 +00:00
|
|
|
<a href="../oddaja">Nazaj na oddajo</a>
|
2021-08-22 17:07:19 +00:00
|
|
|
{% with messages = get_flashed_messages() %}
|
|
|
|
{% if messages %}
|
2021-09-02 12:40:54 +00:00
|
|
|
<div style="background: blue;">
|
2021-08-22 17:07:19 +00:00
|
|
|
{{ messages[0] }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endwith %}
|
|
|
|
<h3>Seznam vseh aktivnih uporabnikov</h3>
|
|
|
|
<div class="tableFixHead">
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>ID</th>
|
|
|
|
<th>Ime in priimek</th>
|
|
|
|
<th>Email</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for item in users %}
|
|
|
|
<tr>
|
|
|
|
<td>{{item.id}}</td>
|
|
|
|
<td>{{item.name}}</td>
|
|
|
|
<td>{{item.email}}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h3>Seznam uporabnikov v vaši instituciji</h3>
|
|
|
|
<div class="tableFixHead">
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>ID</th>
|
|
|
|
<th>Ime in priimek</th>
|
|
|
|
<th>Email</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for item in institution_users %}
|
|
|
|
<tr>
|
|
|
|
<td>{{item.id}}</td>
|
|
|
|
<td>{{item.name}}</td>
|
|
|
|
<td>{{item.email}}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<br>
|
2021-09-02 12:40:54 +00:00
|
|
|
<h3>Dodaj uporabnika instituciji</h3>
|
2021-10-12 09:11:37 +00:00
|
|
|
<form action="../addusertoinstitution" method="post">
|
2021-08-22 17:07:19 +00:00
|
|
|
<label for="user_id">ID uporabnika:</label>
|
|
|
|
<input type="text" id="user_id" name="user_id"><br>
|
|
|
|
<label for="role">Vloga v instituciji:</label>
|
|
|
|
<select name="role" id="role">
|
2021-09-02 12:40:54 +00:00
|
|
|
<option value="coordinator">Koordinator/-ka</option>
|
|
|
|
<option value="mentor">Mentor/-ica</option>
|
|
|
|
<option value="other">Druga vloga</option>
|
2021-08-22 17:07:19 +00:00
|
|
|
</select>
|
|
|
|
<input type="submit" value="Dodeli">
|
|
|
|
</form>
|
|
|
|
<h3>Odstrani uporabnika iz institucije</h3>
|
2021-10-12 09:11:37 +00:00
|
|
|
<form action="../deluserfrominstitution" method="post">
|
2021-08-22 17:07:19 +00:00
|
|
|
<label for="user_id">ID uporabnika:</label>
|
|
|
|
<input type="text" id="user_id" name="user_id"><br>
|
|
|
|
<input type="submit" value="Odstrani">
|
|
|
|
</form>
|
|
|
|
<div> </div>
|
|
|
|
</body>
|