diff --git a/templates/bills.html b/templates/bills.html
index 1711748..e744502 100644
--- a/templates/bills.html
+++ b/templates/bills.html
@@ -185,7 +185,7 @@
{% if loop.first %}
{% set classes="form-control text-center" %}
{% endif %}
-
-
+
+ {% if bd.bill_date == 'future' %}
+
+ {% else %}
+
+ {% endif %}
{% if bd.estimated == 0 %}
@@ -247,7 +251,7 @@
$.ajax( { type: 'POST', url: '/newbill',
contentType: 'application/json',
data: JSON.stringify( {
- 'name': $('#new-bill-data-type').val(),
+ 'bill_type': $('#new-bill-data-type').val(),
'amount': $('#new-bill-data-amount').val(),
'bill_date': $('#new-bill-data-date').val() } ),
success: function() { window.location='bills' } } )
@@ -258,7 +262,7 @@
$.ajax( { type: 'POST', url: '/newbill',
contentType: 'application/json',
data: JSON.stringify( {
- 'name': $('#new-bill-data-type').val(),
+ 'bill_type': $('#new-bill-data-type').val(),
'amount': $('#new-bill-data-amount').val(),
'growth': $('#new-bill-data-growth').val() } ),
success: function() { window.location='bills' } } )
@@ -302,7 +306,7 @@
$.ajax( { type: 'POST', url: '/updatebill',
contentType: 'application/json', data: JSON.stringify( {
'id': id,
- 'name': $('#bill-data-type-'+id).val(),
+ 'bill_type': $('#bill-data-type-'+id).val(),
'bill_date' : $('#bill-data-date-'+id).val(),
'amount': $('#bill-data-amount-'+id).val() } ),
success: function() { window.location='bills' } } )