diff options
Diffstat (limited to 'budget/templates/list_bills.html')
| -rw-r--r-- | budget/templates/list_bills.html | 37 |
1 files changed, 16 insertions, 21 deletions
diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html index 72b9032..9421650 100644 --- a/budget/templates/list_bills.html +++ b/budget/templates/list_bills.html @@ -1,16 +1,11 @@ -{% extends "layout.html" %} +{% extends "sidebar_table_layout.html" %} {% block title %} - {{ g.project.name }}{% endblock %} {% block head %} <script src="{{ url_for("static", filename="js/bootstrap-datepicker.js") }}"></script> + <script src="{{ url_for("static", filename="js/locales/bootstrap-datepicker.fr.min.js") }}" charset="utf-8"></script> {% endblock %} {% block js %} - - $(window).resize(function() { - $("#sidebar").height( window.innerHeight-50 ); - $("#table_overflow").height( $("#sidebar").height()-120 ); - }); - {% if add_bill %} $('#new-bill').click(); {% endif %} // Hide all members actions @@ -56,9 +51,7 @@ {% endblock %} {% block sidebar %} -<div id="sidebar" class="sidebar"> - - <form id="add-member-form" action="{{ url_for(".add_member") }}" method="post" class="form-inline input-append"> + <form id="add-member-form" action="{{ url_for(".add_member") }}" method="post" class="form-inline"> {{ forms.add_member(member_form) }} </form> @@ -89,30 +82,32 @@ {% endfor %} </table> </div> - -</div> {% endblock %} {% block content %} <div class="identifier">{{ _("The project identifier is") }} <a href="{{ url_for(".list_bills") }}">{{ g.project.id }}</a>, {{ _("remember it!") }}</div> <a id="new-bill" href="{{ url_for(".add_bill") }}" class="btn btn-primary" data-toggle="modal" data-target="#bill-form">{{ _("Add a new bill") }}</a> - <div id="bill-form" class="modal hide"> - <div class="modal-header"> - <a href="#" class="close" data-dismiss="modal">×</a> - <h3>{{ _('Add a bill') }}</h3> + <div id="bill-form" class="modal fade show" role="dialog"> + <div class="modal-dialog" role="document"> + <div class="modal-content"> + <div class="modal-header"> + <h3 class="modal-title">{{ _('Add a bill') }}</h3> + <a href="#" class="close" data-dismiss="modal">×</a> + </div> + <form action="{{ url_for(".add_bill") }}" method="post" class="modal-body container"> + {{ forms.add_bill(bill_form, title=False) }} + </form> + </div> </div> - <form action="{{ url_for(".add_bill") }}" method="post" class="modal-body form-horizontal"> - {{ forms.add_bill(bill_form, title=False) }} - </form> </div> {% if bills.count() > 0 %} - <table id="bill_table" class="table table-striped"> + <table id="bill_table" class="col table table-striped table-hover"> <thead><tr><th>{{ _("When?") }}</th><th>{{ _("Who paid?") }}</th><th>{{ _("For what?") }}</th><th>{{ _("For whom?") }}</th><th>{{ _("How much?") }}</th><th>{{ _("Actions") }}</th></tr></thead> <tbody> {% for bill in bills %} - <tr class="{{ loop.cycle("odd", "even") }}" owers={{bill.owers|join(',','id')}} payer={{bill.payer.id}}> + <tr owers={{bill.owers|join(',','id')}} payer={{bill.payer.id}}> <td>{{ bill.date }}</td> <td>{{ bill.payer }}</td> <td>{{ bill.what }}</td> |
