Merge branch 'morejson' of git.someserver.de:k4ever into morejson
This commit is contained in:
commit
cadeffec3a
|
@ -0,0 +1,15 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% comment %}
|
||||
# This file is part of k4ever, a point-of-sale system
|
||||
# Contact............ <k4ever@lists.someserver.de>
|
||||
# Website............ http://k4ever.someserver.de/
|
||||
# Bug tracker........ http://k4ever.someserver.de/report
|
||||
#
|
||||
# Licensed under GNU Affero General Public License v3 or later
|
||||
{% endcomment %}
|
||||
|
||||
{% block "content" %}
|
||||
<h2>Whoops! Wir glauben du gehörst hier nicht hin...</h2>
|
||||
<p>...zumindest sagt uns das dein Ausweis. Wie dem auch sei: Bis hierhin und nicht weiter</p>
|
||||
{% endblock %}
|
|
@ -0,0 +1,17 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% comment %}
|
||||
# This file is part of k4ever, a point-of-sale system
|
||||
# Contact............ <k4ever@lists.someserver.de>
|
||||
# Website............ http://k4ever.someserver.de/
|
||||
# Bug tracker........ http://k4ever.someserver.de/report
|
||||
#
|
||||
# Licensed under GNU Affero General Public License v3 or later
|
||||
{% endcomment %}
|
||||
|
||||
{% block "content" %}
|
||||
<h2>Whoops! Da ist was schiefgegangen</h2>
|
||||
<p>Die Seite, die du angefordert hast, konnte nicht gefunden werden.</p>
|
||||
|
||||
<p>Zahllose Ponies sind bereits auf der Suche nach ihr.</p>
|
||||
{% endblock %}
|
|
@ -0,0 +1,31 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% comment %}
|
||||
# This file is part of k4ever, a point-of-sale system
|
||||
# Contact............ <k4ever@lists.someserver.de>
|
||||
# Website............ http://k4ever.someserver.de/
|
||||
# Bug tracker........ http://k4ever.someserver.de/report
|
||||
#
|
||||
# Licensed under GNU Affero General Public License v3 or later
|
||||
{% endcomment %}
|
||||
|
||||
{% block head %}
|
||||
<link rel="stylesheet" media="screen" type="text/css"
|
||||
href="/media/css/style.css" />
|
||||
{% block extrastyle %}{% endblock %}
|
||||
<script type="text/javascript">
|
||||
var MEDIA_URL = "/media/";
|
||||
</script>
|
||||
<script type='text/javascript' src="/media/js/jquery-1.5.1.js"></script>
|
||||
<script type='text/javascript' src="/media/js/jquery-ui-1.8.10.custom.min.js"></script>
|
||||
<script type='text/javascript' src="/media/js/jquery.ui.autocomplete.html.js"></script>
|
||||
<script type='text/javascript' src="/media/js/jquery.gritter.min.js"></script>
|
||||
<script type='text/javascript' src="/media/js/k4ever.js"></script>
|
||||
{% endblock head %}
|
||||
|
||||
{% block "content" %}
|
||||
<h2>Whoops! Da ist was schiefgegangen</h2>
|
||||
<p>Bei der Bearbeitung deiner Anfrage ist ein Fehler aufgetreten für den du nichts kannst. Sorry!</p>
|
||||
|
||||
<p>Bitte nutze den Zurück-Button deines Browsers um zurückzufahren.</p>
|
||||
{% endblock %}
|
|
@ -11,11 +11,12 @@
|
|||
<html {% if user.is_authenticated %}class="loggedIn"{% endif %}>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
{% block head %}
|
||||
<link rel="stylesheet" media="screen" type="text/css"
|
||||
href="{{ MEDIA_URL }}css/style.css" />
|
||||
{% block extrastyle %}{% endblock %}
|
||||
<script type="text/javascript">
|
||||
var MEDIA_URL = "{{MEDIA_URL}}";
|
||||
var MEDIA_URL = "{{ MEDIA_URL }}";
|
||||
</script>
|
||||
<script type='text/javascript' src="{{ MEDIA_URL }}js/jquery-1.5.1.js"></script>
|
||||
<script type='text/javascript' src="{{ MEDIA_URL }}js/jquery-ui-1.8.10.custom.min.js"></script>
|
||||
|
@ -23,6 +24,7 @@
|
|||
<script type='text/javascript' src="{{ MEDIA_URL }}js/jquery.gritter.min.js"></script>
|
||||
<script type='text/javascript' src="{{ MEDIA_URL }}js/k4ever.js"></script>
|
||||
{% block extrahead %}{% endblock %}
|
||||
{% endblock head %}
|
||||
<title>Freitagsrundenkasse{% block "title" %}{% endblock %}</title>
|
||||
</head>
|
||||
<body{%block bodyargs %}{%endblock%}>
|
||||
|
|
|
@ -29,8 +29,3 @@
|
|||
<input type="hidden" name="next" value="{{ next }}" />
|
||||
</form>
|
||||
|
||||
|
||||
<div class="notice">
|
||||
<h2>Das Kassensystem ist 'Aktiv' - nutzt euren Frunden-Account</h2>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -25,6 +25,13 @@ jQuery(document).ready(function($) {
|
|||
}, options), callback);
|
||||
};
|
||||
|
||||
var updateBalance = function(newBalance) {
|
||||
var balanceString = $("span.balance").text().split(": ");
|
||||
balanceString[1] = parseFloat(newBalance).toFixed(2).replace(".", ",") + " €";
|
||||
|
||||
$("span.balance").text(balanceString.join(": "));
|
||||
}
|
||||
|
||||
$.extend($.gritter.options, {
|
||||
position: "bottom-right",
|
||||
fade_in_speed: 250,
|
||||
|
@ -61,6 +68,7 @@ jQuery(document).ready(function($) {
|
|||
});
|
||||
|
||||
dataContainer.children().removeClass("locked");
|
||||
updateBalance(data.balance);
|
||||
}, options);
|
||||
});
|
||||
|
||||
|
@ -121,7 +129,7 @@ jQuery(document).ready(function($) {
|
|||
|
||||
if(status === "success") {
|
||||
selected_item.addClass("success");
|
||||
//TODO neuer kontostand wär schnaffte
|
||||
updateBalance(data.balance);
|
||||
} else {
|
||||
selected_item.addClass("failure");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue