Fix cosmetic detail

This commit is contained in:
Modulos 2017-05-08 02:46:11 +02:00
parent b4ec750728
commit a22c8cad51

View file

@ -3,88 +3,89 @@
{% load i18n %} {% load i18n %}
{% block content %} {% block content %}
<h1> {{ bill }} </h1>
<div class="container"> <div class="container">
{# Adress bar #} <div class="orders-container">
<div class="row"> {# Adress bar #}
<div class="invoice-title"> <div class="row">
<h2>{% trans "Invoice"%}</h2><h3 class="pull-right">{% trans "Order #"%} {{bill.id}}</h3> <div class="invoice-title">
<h2>{% trans "Invoice"%}</h2><h3 class="pull-right">{% trans "Order #"%} {{bill.id}}</h3>
</div>
</div> </div>
</div> <hr>
<hr> <div class="row">
<div class="row"> <div class="col-sm-6">
<div class="col-sm-6"> <address>
<address> {{bill.customer.user.name}}<br>
{{bill.customer.user.name}}<br> {{bill.billing_address.street_address}},{{bill.billing_address.postal_code}}<br>
{{bill.billing_address.street_address}},{{bill.billing_address.postal_code}}<br> {{bill.billing_address.city}}, {{bill.billing_address.country}}.
{{bill.billing_address.city}}, {{bill.billing_address.country}}. </address>
</address> </div>
</div> <div class="col-sm-6 text-right">
<div class="col-sm-6 text-right"> <address>
<address> {% trans "ungleich GmbH" %}<br>
{% trans "ungleich GmbH" %}<br> {% trans "buchhaltung@ungleich.ch" %}<br>
{% trans "buchhaltung@ungleich.ch" %}<br> {% trans "Hauptstrasse 14"%}<br>
{% trans "Hauptstrasse 14"%}<br> {% trans "CH-8775 Luchsingen"%}<br>
{% trans "CH-8775 Luchsingen"%}<br> {% trans "Mwst-Nummer: CHE-109.549.333 MWST"%}<br>
{% trans "Mwst-Nummer: CHE-109.549.333 MWST"%}<br>
</address> </address>
</div> </div>
</div> </div>
<hr> <hr>
<table class="table table-bordered"> <table class="table table-bordered">
{# Bill header #} {# Bill header #}
<thead> <thead>
<tr>
<th>Name</th>
<th>Cores</th>
<th>Memory</th>
<th>Disk Size</th>
<th>Price</th>
</tr>
</thead>
<tbody>
{# Bill items#}
{% for vm in vms %}
<tr> <tr>
<td>{{ vm.name }}</td> <th>Name</th>
<td><span class="pull-right">{{ vm.cores }}</span></td> <th>Cores</th>
<td><span class="pull-right">{{ vm.memory|floatformat }} GiB </span></td> <th>Memory</th>
<td><span class="pull-right">{{ vm.disk_size|floatformat }} GiB </span></td> <th>Disk Size</th>
<td><span class="pull-right">{{ vm.price|floatformat }} CHF</span></td> <th>Price</th>
</tr> </tr>
{% endfor %} </thead>
{# Bill total#} <tbody>
<tr> {# Bill items#}
<td colspan=4> {% trans "Total:" %} </td> {% for vm in vms %}
<td> <span class="pull-right">{{ bill.total_price}} CHF </span></td> <tr>
</tr> <td>{{ vm.name }}</td>
</tbody> <td><span class="pull-right">{{ vm.cores }}</span></td>
</table> <td><span class="pull-right">{{ vm.memory|floatformat }} GiB </span></td>
<hr> <td><span class="pull-right">{{ vm.disk_size|floatformat }} GiB </span></td>
{# Bill Footer #} <td><span class="pull-right">{{ vm.price|floatformat }} CHF</span></td>
<div class="row">
{% trans "Alles Preise in CHF mit 8% Mehrwertsteuer." %} </tr>
{% trans "Betrag zahlbar innerhalb von 30 Tagen ab Rechnungseingang." %} {% endfor %}
{% trans "Kontoverbindung:" %} {# Bill total#}
<div class="row"> <tr>
<div class="col-sm-6"> <td colspan=4> {% trans "Total:" %} </td>
{% trans "IBAN:" %} <td> <span class="pull-right">{{ bill.total_price}} CHF </span></td>
</div> </tr>
<div class="col-sm-6"> </tbody>
{% trans "BIC:" %} </table>
</div> <hr>
</div> {# Bill Footer #}
<div class="row"> <div class="row">
<div class="col-sm-6"> {% trans "Alles Preise in CHF mit 8% Mehrwertsteuer." %}
{% trans "CH02 ............" %} {% trans "Betrag zahlbar innerhalb von 30 Tagen ab Rechnungseingang." %}
</div> {% trans "Kontoverbindung:" %}
<div class="col-sm-6"> <div class="row">
{% trans "POFICHBEXXX" %} <div class="col-sm-6">
</div> {% trans "IBAN:" %}
</div> </div>
</div> <div class="col-sm-6">
{% trans "BIC:" %}
</div>
</div>
<div class="row">
<div class="col-sm-6">
{% trans "CH02 ............" %}
</div>
<div class="col-sm-6">
{% trans "POFICHBEXXX" %}
</div>
</div>
</div>
<div>
</div> </div>
{% endblock %} {% endblock %}