2011-03-10 03:37:21 +01:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
|
2011-11-02 00:23:21 +01:00
|
|
|
{% block head %}
|
2011-11-27 23:28:24 +01:00
|
|
|
<script src="{{ url_for("static", filename="js/jquery-ui.js") }}"></script>
|
2011-11-02 00:23:21 +01:00
|
|
|
{% if g.lang != "en" %}
|
2011-11-27 23:28:24 +01:00
|
|
|
<script src="{{ url_for("static", filename="js/i18n/jquery.ui.datepicker-%s.js" % g.lang ) }}"></script>
|
2011-11-02 00:23:21 +01:00
|
|
|
{% endif %}
|
|
|
|
{% 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 %}
|
|
|
|
|
2012-04-05 15:40:09 +02:00
|
|
|
<form class="form-horizontal" 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 %}
|