You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

79 lines
2.4 KiB

{% load staticfiles %}
{% load url from future %}
{% load i18n %}
<!DOCTYPE html>
<html lang="en">
<head>
{% block head %}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kassensystem</title>
<link href="/static/bootstrap/css/bootstrap.css" rel="stylesheet" />
<link href="/static/style.css" rel="stylesheet" />
{% endblock %}
</head>
<body>
<div class="container">
<div class="navbar navbar-default">
<div class="navbar-header">
<a class="navbar-brand" href="{% url 'overview' %}">Kassensystem</a>
</div>
<ul class="nav navbar-nav">
<li><a href="{% url 'overview' %}">{% trans "Overview" %}</a></li>
<li><a href="{% url 'products' %}">{% trans "Buy" %}</a></li>
<li><a href="{% url 'transactions' %}">{% trans "Transaction list" context "monthly staement" %}</a></li>
<li><a href="{% url 'usersettings' %}">{% trans "Preferences" %}</a></li>
{% if user.is_staff %}
<li><a href="/admin/">{% trans "Administration" %}</a></li>
{% endif %}
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="{% url 'django.contrib.auth.views.logout_then_login' %}">{% trans "Logout" %}</a></li>
</ul>
</div>
<div class="container">
<div class="row">
<div class="col-md-2 well" style="text-align: center;">
<img src="/static/images/cash-register-64x64.png" />
</div>
<div class="col-md-8">
<div class="container">
{% block content %}
<h1>{% trans "Overview" %}</h1>
<strong>{% blocktrans with firstname=user.first_name %}Welcome, {{ firstname }}!{% endblocktrans %}</strong>
{% endblock %}
</div>
</div>
<div class="col-md-2 well">
<span>{% trans "Username" %}:</span>
<span><strong>{{ user.username }}</strong></span><br/>
<span>{% trans "Credit" %}:</span>
<span {% if user.account.credit < 0 %} style="color: red"{% endif %}><b>{{ user.account.credit|floatformat:2 }} &euro;</b></span><br/>
{% if user.account.credit|add:"35" < 5 %}
<span style="color: #FF5252">{% trans "Warning!" %}<br/>{% blocktrans with debtlimitamount=user.account.credit|add:"35"|floatformat:2 %}Only {{ debtlimitamount }}&nbsp;&euro; until reaching the debt limit.{% endblocktrans %}</span>
{% endif %}
</div>
</div>
</div>
</div>
</body>
</html>