mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
Bug fix in order to show the calendar widget when you edit a bill. Also fix another bug related to cancel button.
This commit is contained in:
parent
0d44b97c4a
commit
471ef87d3e
3 changed files with 16 additions and 16 deletions
|
@ -1,5 +1,20 @@
|
|||
{% 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 %}
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
{% extends "layout.html" %}
|
||||
|
||||
{% block top_menu %}
|
||||
<a href="{{ url_for(".list_bills") }}">{{ _("Back to the list") }}</a>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>{{ _("Edit a bill") }}</h2>
|
||||
|
||||
<div class="container span-24 add-bill uniForm" style="width: 400px">
|
||||
<form action="" method="post" class=uniForm">
|
||||
{{ forms.add_bill(form) }}
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
|
@ -49,7 +49,7 @@
|
|||
<h3><a class="logo" href="{{ url_for(".home") }}">#! money?</a></h3>
|
||||
{% if g.project %}
|
||||
<ul>
|
||||
<li class="active"><a href="">{{ _("Bills") }}</a></li>
|
||||
<li class="active"><a href="{{ url_for(".list_bills") }}">{{ _("Bills") }}</a></li>
|
||||
</ul>
|
||||
<ul class="nav secondary-nav">
|
||||
<li class="menu">
|
||||
|
|
Loading…
Add table
Reference in a new issue