mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-06 05:01:48 +02:00
Switching to a more properly named branch. Added links to projects in Dashboard, enabled paging again for now.
This commit is contained in:
parent
db0c073aae
commit
bad9c1052c
1 changed files with 3 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
||||||
<table id="bill_table" class="table table-striped">
|
<table id="bill_table" class="table table-striped">
|
||||||
<thead><tr><th>{{ _("Project") }}</th><th>{{ _("Number of members") }}</th><th>{{ _("Number of bills") }}</th><th>{{_("Newest bill")}}</th><th>{{_("Oldest bill")}}</th><th>{{_("Actions")}}</th></tr></thead>
|
<thead><tr><th>{{ _("Project") }}</th><th>{{ _("Number of members") }}</th><th>{{ _("Number of bills") }}</th><th>{{_("Newest bill")}}</th><th>{{_("Oldest bill")}}</th><th>{{_("Actions")}}</th></tr></thead>
|
||||||
<tbody>{% for project in projects|sort(attribute='name') %}
|
<tbody>{% for project in projects|sort(attribute='name') %}
|
||||||
<tr><td>{{ project.name }}</td><td>{{ project.members | count }}</td><td>{{ project.get_bills().count() }}</td>
|
<tr><td><a class="list_bills btn btn-secondary" href="{{ url_for(".list_bills", project_id=project.id) }}" title="{{ project.name }}">{{ project.name }}</a></td><td>{{ project.members | count }}</td><td>{{ project.get_bills().count() }}</td>
|
||||||
{% if project.has_bills() %}
|
{% if project.has_bills() %}
|
||||||
<td>{{ project.get_bills().all()[0].date }}</td>
|
<td>{{ project.get_bills().all()[0].date }}</td>
|
||||||
<td>{{ project.get_bills().all()[-1].date }}</td>
|
<td>{{ project.get_bills().all()[-1].date }}</td>
|
||||||
|
@ -15,6 +15,7 @@
|
||||||
<td class="project-actions">
|
<td class="project-actions">
|
||||||
<a class="edit" href="{{ url_for(".edit_project", project_id=project.id) }}" title="{{ _("edit") }}">{{ _('edit') }}</a>
|
<a class="edit" href="{{ url_for(".edit_project", project_id=project.id) }}" title="{{ _("edit") }}">{{ _('edit') }}</a>
|
||||||
<a class="delete" href="{{ url_for(".delete_project", project_id=project.id) }}" title="{{ _("delete") }}">{{ _('delete') }}</a>
|
<a class="delete" href="{{ url_for(".delete_project", project_id=project.id) }}" title="{{ _("delete") }}">{{ _('delete') }}</a>
|
||||||
|
<!--<a class="btn btn-secondary invite" href="{{ url_for(".invite", project_id=project.id) }}" title="{{ _("invite") }}"><i class="icon icon-white paper-plane">{{ static_include("images/paper-plane.svg") | safe }}</i></a>-->
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -23,7 +24,7 @@
|
||||||
<script language="JavaScript">
|
<script language="JavaScript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#bill_table').DataTable({
|
$('#bill_table').DataTable({
|
||||||
paging: false
|
paging: true
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue