aboutsummaryrefslogtreecommitdiff
path: root/budget/templates
diff options
context:
space:
mode:
Diffstat (limited to 'budget/templates')
-rw-r--r--budget/templates/forms.html5
-rw-r--r--budget/templates/list_bills.html2
2 files changed, 6 insertions, 1 deletions
diff --git a/budget/templates/forms.html b/budget/templates/forms.html
index 5c6a40e..10b6e0c 100644
--- a/budget/templates/forms.html
+++ b/budget/templates/forms.html
@@ -84,7 +84,10 @@
{{ input(form.amount) }}
{{ input(form.payed_for) }}
</fieldset>
- {{ submit(form.submit, cancel=True) }}
+ <div class="actions">
+ {{ form.submit(class="btn primary") }}
+ {% if not edit %} {{ form.submit2(class="btn") }}{% endif %}
+ </div>
{% endmacro %}
diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html
index 59692d5..b698da6 100644
--- a/budget/templates/list_bills.html
+++ b/budget/templates/list_bills.html
@@ -22,6 +22,8 @@
$('#bill-form').modal('hide');
});
+ {% if add_bill %} $('#new-bill').click(); {% endif %}
+
// ask for confirmation before removing an user
$('.action').each(function(){
$(this).hide();