aboutsummaryrefslogtreecommitdiff
path: root/budget/templates/add_bill.html
blob: b784bfdce43a09e2a907cb6f539f6d696d97f0b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{% extends "layout.html" %}

{% 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 %}


{% block top_menu %}
<a href="{{ url_for(".list_bills") }}">{{ _("Back to the list") }}</a>
{% endblock %}

{% block content %}

<form method="post">
    {{ forms.add_bill(form, edit) }}
</form>
{% endblock %}