updated account view template and styles

This commit is contained in:
Konrad Mohrfeldt 2011-10-16 13:03:11 +02:00
parent 905b218e4c
commit 4910a387d9
7 changed files with 160 additions and 63 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 929 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 881 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 703 B

View File

@ -155,9 +155,11 @@ a:hover {
background-color: #3398cc; background-color: #3398cc;
} }
.content { .content {
max-width: 1280px;
min-width: 800px;
padding: 5px; padding: 5px;
} }
input { input, select {
padding: 2px 5px; padding: 2px 5px;
border: 1px solid #E5E5E5; border: 1px solid #E5E5E5;
background: url("img/404") white; background: url("img/404") white;
@ -554,3 +556,52 @@ table.itemListContainer > tbody > tr:first-child ~ tr > td {
vertical-align: middle; vertical-align: middle;
margin: 0 10px 0 0; margin: 0 10px 0 0;
} }
.textData thead, .textData tfoot {
background-color: #111111;
}
.textData thead th, .textData tfoot th {
font-weight: bold;
color: white;
}
.textData tr:nth-child(even) td {
background-color: #eaeaea;
}
.textData tr:hover td {
background-color: #9e9e9e;
}
.textData th, .textData td {
padding: 7px 30px;
vertical-align: middle;
text-align: center;
}
.icon {
display: block;
height: 24px;
width: 24px;
text-indent: -10000px;
background-position: 0 0;
background-repeat: no-repeat;
margin: 0 auto;
}
.icon.approved {
background-image: url("img/approved.png");
}
.icon.pending {
background-image: url("img/pending.png");
}
.icon.cash {
background-image: url("img/cash.png");
}
.icon.transfer {
background-image: url("img/transfer.png");
}
.transaction {
padding: 0 30px;
}
.transaction > * {
float: none;
display: block;
}
.transaction input[type="text"], .transaction select {
font-size: 16px;
}

View File

@ -161,10 +161,12 @@ a {
} }
.content { .content {
max-width: 1280px;
min-width: 800px;
padding: 5px; padding: 5px;
} }
input { input, select {
padding: 2px 5px; padding: 2px 5px;
border: 1px solid #E5E5E5; border: 1px solid #E5E5E5;
background: url("@{fldImages}/404") white; background: url("@{fldImages}/404") white;
@ -561,3 +563,69 @@ table.itemListContainer {
margin: 0 10px 0 0; margin: 0 10px 0 0;
} }
} }
.textData {
thead, tfoot {
background-color: @clrDarkGrey;
th {
font-weight: bold;
color: white;
}
}
tr {
&:nth-child(even) td {
background-color: @clrLightGrey;
}
&:hover td {
background-color: darken(@clrLightGrey, 30%);
}
}
th, td {
padding: 7px 30px;
vertical-align: middle;
text-align: center;
}
}
.icon {
display: block;
height: 24px;
width: 24px;
text-indent: -10000px;
background-position: 0 0;
background-repeat: no-repeat;
margin: 0 auto;
&.approved {
background-image: url("@{fldImages}/approved.png");
}
&.pending {
background-image: url("@{fldImages}/pending.png");
}
&.cash {
background-image: url("@{fldImages}/cash.png");
}
&.transfer {
background-image: url("@{fldImages}/transfer.png");
}
}
.transaction {
padding: 0 30px;
> * {
float: none;
display: block;
}
input[type="text"], select {
font-size: 16px;
}
}

View File

@ -8,73 +8,51 @@
<font color="green"><h1>Du hast Geld aufgeladen.</h1></font> <font color="green"><h1>Du hast Geld aufgeladen.</h1></font>
{% endif %} {% endif %}
{% endif %} {% endif %}
<div style="width:800px"><h1>Konto aufladen</h1> <h2>Konto aufladen</h2>
<form method="POST" action="/transaction/"> <form method="POST" class="transaction" action="/transaction/">
{% csrf_token %} {% csrf_token %}
<table width="500px" class="showitem" style="border-width:0px">
{{ form.as_table }} {{ form.as_table }}
<tr> <input type="submit" class="button" value="Einzahlen">
<td>
&nbsp;
</td>
<td>
<input type="submit" value="Senden">
</td>
</tr>
</table>
</form> </form>
</div>
<div style="width:800px;margin-top:25px"><h1>Vergangene Transaktionen:</h1> <h2>Vergangene Transaktionen</h2>
<table class="showitem" style="border-width:0px"> <table class="textData">
{% comment %} <thead>
<tr> <tr>
<th> <th>Datum</th>
Datum <th>Uhrzeit</th>
</th> <th>Betrag</th>
<th> <th>Typ</th>
Uhrzeit <th>Status</th>
</th>
<th>
Betrag
</th>
<th>
Typ
</th>
<th>
Status
</th>
</tr> </tr>
{% endcomment %} </thead>
<tbody>
{% for transaction in history %} {% for transaction in history %}
<tr> <tr>
<td> <td>{{ transaction.dateTime|date:"j. F Y" }}</td>
{% if forloop.first and transacted %} <td>{{ transaction.dateTime|date:"H:i" }} Uhr</td>
<b> <td>{{ transaction.amount|floatformat:2 }}€</td>
{% endif %} <td>{{ transaction.transactionType }}</td>
[ {{ transaction.dateTime|date:"j. M Y" }},
</td>
<td>
{{ transaction.dateTime|date:"H:i" }} Uhr ]
<td>
<b>{{ transaction.amount|floatformat:2 }}€</b>
</td>
<td>
durch {{ transaction.transactionType }}
</td>
<td> <td>
{% if not transaction.transactionType.needsCheck or transaction.checked %} {% if not transaction.transactionType.needsCheck or transaction.checked %}
eingegangen <span class="icon approved" title="Zahlung eingegangen">Zahlung eingegangen</span>
{% else %} {% else %}
<b> aber noch nicht best&auml;tigt </b> <span class="icon pending" title="Zahlungsbestätigung steht noch aus">Zahlungsbestätigung steht noch aus</span>
{% endif %} {% endif %}
</td> </td>
{% if forloop.first and transacted %}
</b>
{% endif %}
</tr> </tr>
{% endfor %} {% endfor %}
</tbody>
<tfoot>
<tr>
<th>Datum</th>
<th>Uhrzeit</th>
<th>Betrag</th>
<th>Typ</th>
<th>Status</th>
</tr>
</tfoot>
</table> </table>
</div>
{% endblock %} {% endblock %}