2011-03-10 03:37:21 +01:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
|
2011-11-02 00:23:21 +01:00
|
|
|
{% block head %}
|
|
|
|
<script src="{{ url_for("static", filename="jquery/js/jquery-ui.js") }}"></script>
|
|
|
|
{% if g.lang != "en" %}
|
|
|
|
<script src="{{ url_for("static", filename="jquery/i18n/jquery.ui.datepicker-%s.js" % g.lang ) }}"></script>
|
|
|
|
{% endif %}
|
|
|
|
<script src="{{ url_for("static", filename="ihatemoney/custom.js") }}"></script>
|
|
|
|
{% endblock %}
|
|
|
|
{% block js %}
|
|
|
|
$('#cancel-form').click(function(){location.href={{ url_for(".list_bills") }};});
|
|
|
|
$.datepicker.setDefaults({'dateFormat': 'yy-mm-dd'});
|
|
|
|
$(".datepicker").datepicker($.datepicker.regional['{{ g.lang }}']);
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
2011-07-29 17:14:33 +02:00
|
|
|
{% block top_menu %}
|
2011-10-15 01:19:19 +02:00
|
|
|
<a href="{{ url_for(".list_bills") }}">{{ _("Back to the list") }}</a>
|
2011-07-29 17:14:33 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
2011-03-10 03:37:21 +01:00
|
|
|
{% block content %}
|
|
|
|
|
2011-08-21 01:42:10 +02:00
|
|
|
<form method="post">
|
2011-09-09 19:14:19 +02:00
|
|
|
{{ forms.add_bill(form, edit) }}
|
2011-08-21 01:42:10 +02:00
|
|
|
</form>
|
2011-03-10 03:37:21 +01:00
|
|
|
{% endblock %}
|