aboutsummaryrefslogtreecommitdiffstats
path: root/server/templates
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-06-18 23:17:08 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2020-06-18 23:17:08 +0200
commitfbb4637a77dc5982b4e694dd31a0aa7d11cec17c (patch)
tree2b277a09a8dacff187211cacfad7da5b5a3dda9b /server/templates
downloadscout-subs-fbb4637a77dc5982b4e694dd31a0aa7d11cec17c.tar.gz
scout-subs-fbb4637a77dc5982b4e694dd31a0aa7d11cec17c.zip
initial commit
Diffstat (limited to '')
-rw-r--r--server/templates/server/approve_user.html34
-rw-r--r--server/templates/server/index.html61
-rw-r--r--server/templates/server/user_list.html36
3 files changed, 131 insertions, 0 deletions
diff --git a/server/templates/server/approve_user.html b/server/templates/server/approve_user.html
new file mode 100644
index 0000000..ae9dc8b
--- /dev/null
+++ b/server/templates/server/approve_user.html
@@ -0,0 +1,34 @@
+{% extends 'registration/base.html' %}
+
+{% block title %}Admin - Approva Utente{% endblock %}
+
+{% block nav %}
+<nav>
+ <div class="nav-wrapper">
+ <a style="margin-left: 10px;" href="{% url 'index' %}" class="breadcrumb">Home</a>
+ <a href="{% url 'server'%}" class="breadcrumb">Admin</a>
+ <a href="#!" class="breadcrumb">Approva Utente</a>
+ <ul class="right hide-on-med-and-down">
+ <li>{{ user.username}}</li>
+ <li><a href="{% url 'logout' %}"><i class="material-icons">exit_to_app</i></a></li>
+ </ul>
+ </div>
+</nav>
+{% endblock %}
+
+{% block content %}
+<p>Inserire un codice per riga</p>
+<ul class="collection">
+{% for i in messages %}
+ <li class="collection-item">{{ i }}</li>
+{% endfor %}
+</ul>
+<form action="{% url 'uapprove'%}" method="post">
+ {% csrf_token %}
+ <textarea name="codes" class="materialize-textarea"></textarea>
+ <br><br>
+ <button type="submit" class="btn waves-effect waves-light">Invia
+ <i class="material-icons right">send</i>
+ </button>
+</form>
+{% endblock %} \ No newline at end of file
diff --git a/server/templates/server/index.html b/server/templates/server/index.html
new file mode 100644
index 0000000..4790a1d
--- /dev/null
+++ b/server/templates/server/index.html
@@ -0,0 +1,61 @@
+{% extends 'registration/base.html' %}
+
+{% block title %}Admin{% endblock %}
+
+{% block nav %}
+<nav>
+ <div class="nav-wrapper">
+ <a style="margin-left: 10px;" href="{% url 'index' %}" class="breadcrumb">Home</a>
+ <a href="#!" class="breadcrumb">Admin</a>
+ <ul class="right hide-on-med-and-down">
+ <li>{{ user.username}}</li>
+ <li><a href="{% url 'logout' %}"><i class="material-icons">exit_to_app</i></a></li>
+ </ul>
+ </div>
+</nav>
+{% endblock %}
+
+{% block content %}
+<div class="row">
+ <div class="col s6">
+ <div class="card large">
+ <div class="card-content">
+ <p>
+ <table>
+ <tr>
+ <th>Username</th>
+ <th>Nome</th>
+ <th>Cognome</th>
+ <th>Codice</th>
+ <th>Stato</th>
+ </tr>
+ {% for user in users %}
+ <tr>
+ {% for att in user %}
+ <td>{{att}}</td>
+ {% endfor %}
+ </tr>
+ {% endfor %}
+ </table>
+ </p>
+ </div>
+ <div class="card-action">
+ <a href="{% url 'ulist' %}">Lista utenti</a>
+ <a href="{% url 'uapprove' %}">Approva utente</a>
+ </div>
+ </div>
+ </div>
+ <div class="col s6">
+ <div class="card large">
+ <div class="card-content">
+ <p>I am a very simple card. I am good at containing small bits of information.
+ I am convenient because I require little markup to use effectively.</p>
+ </div>
+ <div class="card-action">
+ <a href="{% url 'ulist' %}">Lista documenti</a>
+ <a href="{% url 'uapprove' %}">Approva documento</a>
+ </div>
+ </div>
+ </div>
+</div>
+{% endblock %} \ No newline at end of file
diff --git a/server/templates/server/user_list.html b/server/templates/server/user_list.html
new file mode 100644
index 0000000..daf7303
--- /dev/null
+++ b/server/templates/server/user_list.html
@@ -0,0 +1,36 @@
+{% extends 'registration/base.html' %}
+
+{% block title %}Admin - Lista Utenti{% endblock %}
+
+{% block nav %}
+<nav>
+ <div class="nav-wrapper">
+ <a style="margin-left: 10px;" href="{% url 'index' %}" class="breadcrumb">Home</a>
+ <a href="{% url 'server'%}" class="breadcrumb">Admin</a>
+ <a href="#!" class="breadcrumb">Lista Utenti</a>
+ <ul class="right hide-on-med-and-down">
+ <li>{{ user.username}}</li>
+ <li><a href="{% url 'logout' %}"><i class="material-icons">exit_to_app</i></a></li>
+ </ul>
+ </div>
+</nav>
+{% endblock %}
+
+{% block content %}
+<table>
+ <tr>
+ <th>Username</th>
+ <th>Nome</th>
+ <th>Cognome</th>
+ <th>Codice</th>
+ <th>Stato</th>
+ </tr>
+ {% for user in users %}
+ <tr>
+ {% for att in user %}
+ <td>{{att}}</td>
+ {% endfor %}
+ </tr>
+ {% endfor %}
+</table>
+{% endblock %} \ No newline at end of file