parent
9db5b528be
commit
12e04ab4d4
3 changed files with 16 additions and 6 deletions
|
@ -4,4 +4,6 @@ from django.contrib.auth import get_user_model
|
|||
from localauth.models import Profile
|
||||
|
||||
class ClientProfile(Profile):
|
||||
pass
|
||||
@property
|
||||
def balance(self):
|
||||
return 0.0
|
|
@ -242,6 +242,14 @@
|
|||
<span>2</span>
|
||||
<h3>{% trans "Zahlungsdaten" %}</h3>
|
||||
</div><!-- end lg-bform-heading -->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
<label>{% trans "Gutscheincode" %} (aktuelles Guthaben: € {{ request.user.clientprofile.balance | floatformat:2 }})</label>
|
||||
<input type="text" class="form-control" id="id_state" name="voucher" {% if not request.user.is_authenticated %}disabled{% endif %} value=""/><button class="btn btn-secondary" type="button">Gutschein anwenden</button>
|
||||
</div>
|
||||
</div><!-- end columns -->
|
||||
|
||||
<input type="hidden" name="gateway" id="id_gateway" {% if request.user.is_authenticated %}required{% else %}disabled{% endif %} />
|
||||
<div id="payment-tabs" class="payment-tabs">
|
||||
<ul class="nav nav-tabs">
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<div class="col-md-6 col-lg-3">
|
||||
<div class="stat-block">
|
||||
<span><i class="fa fa-heart"></i></span>
|
||||
<h3>4</h3>
|
||||
<h3>0</h3>
|
||||
<p>Bewertungen</p>
|
||||
</div><!-- end stat-block -->
|
||||
</div><!-- end columns -->
|
||||
|
@ -15,15 +15,15 @@
|
|||
<div class="col-md-6 col-lg-3">
|
||||
<div class="stat-block">
|
||||
<span><i class="fa fa-euro-sign"></i></span>
|
||||
<h3>12345</h3>
|
||||
<p>Euro</p>
|
||||
<h3>{{ object.balance | floatformat:2 }}</h3>
|
||||
<p>Euro Guthaben</p>
|
||||
</div><!-- end stat-block -->
|
||||
</div><!-- end columns -->
|
||||
|
||||
<div class="col-md-6 col-lg-3">
|
||||
<div class="stat-block">
|
||||
<span><i class="fa fa-building"></i></span>
|
||||
<h3>12</h3>
|
||||
<h3>1</h3>
|
||||
<p>Städte</p>
|
||||
</div><!-- end stat-block -->
|
||||
</div><!-- end columns -->
|
||||
|
@ -31,7 +31,7 @@
|
|||
<div class="col-md-6 col-lg-3">
|
||||
<div class="stat-block">
|
||||
<span><i class="fa fa-paper-plane"></i></span>
|
||||
<h3>102</h3>
|
||||
<h3>3</h3>
|
||||
<p>Reisen</p>
|
||||
</div><!-- end stat-block -->
|
||||
</div><!-- end columns -->
|
||||
|
|
Loading…
Reference in a new issue