aboutsummaryrefslogtreecommitdiffstats
path: root/client/templates/client/index.html
blob: 64b4d4281076e3563dd5c6e87f14f25ca0dacee6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{% extends 'registration/base.html' %}

{% block title %}Home{% endblock %}

{%block nav%}
  <a style="margin-left: 10px;" href="{% url 'index' %}" class="breadcrumb">Home</a>
{% endblock%}

{% block content %}
{% if user.is_authenticated %}
  {% if user.is_staff or perms.client.approved %}
  {% else %}
    <div class="row">
      <div class="col l4 offset-l4 m8 offset-m2 s12">
        <div class="card">
          <div class="card-content">
            <p>Il tuo utente non e` ancora stato approvato.</p>
          </div>
          <div class="card-action">
            <a href="{% url 'approve' %}">Come farsi approvare l'utente</a>
          </div>
        </div>
      </div>
    </div>
  {% endif %}
{% else %}
  <div class="row">
    <div class="col l4 offset-l4 m8 offset-m2 s12">
      <div class="card">
        <div class="card-content">
          <p>Se hai gia` un account clicca login in alto a destra. Altrimenti clicca registrazione</p>
        </div>
      </div>
    </div>
  </div>
{% endif %}
{% endblock %}