delete the word 'Honorarnoten'
This commit is contained in:
@@ -1,78 +1,78 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block title %}Meine Rechnungen / Honorarnoten{% endblock %}
|
{% block title %}Meine Rechnungen{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<!-- Main Content -->
|
<!-- Main Content -->
|
||||||
<main class="container mx-auto w-full px-4 my-8 flex-1">
|
<main class="container mx-auto w-full px-4 my-8 flex-1">
|
||||||
<h1 class="page-title">Meine Rechnungen / Honorarnoten</h1>
|
<h1 class="page-title">Meine Rechnungen</h1>
|
||||||
<a href="{% url 'finance:bill_create' %}" class="page-subtitle block btn-small btn-primary max-w-xs mx-auto sm:w-max sm:mr-0 sm:ml-auto">
|
<a href="{% url 'finance:bill_create' %}" class="page-subtitle block btn-small btn-primary max-w-xs mx-auto sm:w-max sm:mr-0 sm:ml-auto">
|
||||||
<i class="fa-solid fa-plus mr-1"></i> Rechnung einreichen
|
<i class="fa-solid fa-plus mr-1"></i> Rechnung einreichen
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<div class="mx-auto max-w-5xl">
|
<div class="mx-auto max-w-5xl">
|
||||||
<div class="overflow-x-scroll shadow rounded">
|
<div class="overflow-x-scroll shadow rounded">
|
||||||
<table class="w-full">
|
<table class="w-full">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-right">Datum</th>
|
<th class="text-right">Datum</th>
|
||||||
<th class="text-left">Verwendungszweck / Tätigkeit</th>
|
<th class="text-left">Verwendungszweck / Tätigkeit</th>
|
||||||
<th class="text-right">Summe</th>
|
<th class="text-right">Summe</th>
|
||||||
<th>Status</th>
|
<th>Status</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for result in object_list %}
|
{% for result in object_list %}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="text-right">{{ result.date|date:"d.m.Y" }}</td>
|
<td class="text-right">{{ result.date|date:"d.m.Y" }}</td>
|
||||||
<td>{{ result.purpose }}</td>
|
<td>{{ result.purpose }}</td>
|
||||||
<td class="text-right">{{ result.amount }}€</td>
|
<td class="text-right">{{ result.amount }}€</td>
|
||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
{% if result.model == "BILL" %}
|
{% if result.model == "BILL" %}
|
||||||
{% if result.status == bill_status.SUBMITTED %}
|
{% if result.status == bill_status.SUBMITTED %}
|
||||||
<span class="badge badge-info">{{ bill_status.SUBMITTED.label }}</span>
|
<span class="badge badge-info">{{ bill_status.SUBMITTED.label }}</span>
|
||||||
{% elif result.status == bill_status.INCOMPLETED %}
|
{% elif result.status == bill_status.INCOMPLETED %}
|
||||||
<span class="badge badge-danger">{{ bill_status.INCOMPLETED.label }}</span>
|
<span class="badge badge-danger">{{ bill_status.INCOMPLETED.label }}</span>
|
||||||
{% elif result.status == bill_status.CLEARED %}
|
{% elif result.status == bill_status.CLEARED %}
|
||||||
<span class="badge badge-warning">{{ bill_status.CLEARED.label }}</span>
|
<span class="badge badge-warning">{{ bill_status.CLEARED.label }}</span>
|
||||||
{% elif result.status == bill_status.FINISHED %}
|
{% elif result.status == bill_status.FINISHED %}
|
||||||
<span class="badge badge-success">{{ bill_status.FINISHED.label }}</span>
|
<span class="badge badge-success">{{ bill_status.FINISHED.label }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{% if result.model == "BILL" %}
|
{% if result.model == "BILL" %}
|
||||||
<a href="{% url 'finance:bill_update' result.id %}" class="btn btn-small btn-tertiary"><i class="fa-solid fa-pen-to-square" aria-label="Bearbeiten" title="Bearbeiten"></i></a>
|
<a href="{% url 'finance:bill_update' result.id %}" class="btn btn-small btn-tertiary"><i class="fa-solid fa-pen-to-square" aria-label="Bearbeiten" title="Bearbeiten"></i></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-4 w-full flex flex-col-reverse sm:flex-row gap-y-4 justify-between items-center">
|
<div class="mt-4 w-full flex flex-col-reverse sm:flex-row gap-y-4 justify-between items-center">
|
||||||
<div class="pagination-container">
|
<div class="pagination-container">
|
||||||
<div class="pagination">
|
<div class="pagination">
|
||||||
<span class="step-links">
|
<span class="step-links">
|
||||||
{% if page_obj.has_previous %}
|
{% if page_obj.has_previous %}
|
||||||
<a href="?page={{ page_obj.previous_page_number }}"><i class="fa-solid fa-arrow-left" aria-label="Eine Seite zurück"></i> Zurück</a>
|
<a href="?page={{ page_obj.previous_page_number }}"><i class="fa-solid fa-arrow-left" aria-label="Eine Seite zurück"></i> Zurück</a>
|
||||||
<a href="?page=1">1</a>
|
<a href="?page=1">1</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<span class="current active">
|
<span class="current active">
|
||||||
<a href="#" class="active">{{ page_obj.number }}</a>
|
<a href="#" class="active">{{ page_obj.number }}</a>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
{% if page_obj.has_next %}
|
{% if page_obj.has_next %}
|
||||||
<a href="?page={{ page_obj.paginator.num_pages }}">{{ page_obj.paginator.num_pages }}</a>
|
<a href="?page={{ page_obj.paginator.num_pages }}">{{ page_obj.paginator.num_pages }}</a>
|
||||||
<a href="?page={{ page_obj.next_page_number }}">Vor <i class="fa-solid fa-arrow-right" aria-label="Eine Seite vor"></i></a>
|
<a href="?page={{ page_obj.next_page_number }}">Vor <i class="fa-solid fa-arrow-right" aria-label="Eine Seite vor"></i></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
<li>
|
<li>
|
||||||
<a href="{% url 'finance:bill_list' %}" class="flex items-center py-2 px-5 hover:bg-gray-100 dark:hover:bg-gray-600 hover:text-gray-900 dark:hover:text-white">
|
<a href="{% url 'finance:bill_list' %}" class="flex items-center py-2 px-5 hover:bg-gray-100 dark:hover:bg-gray-600 hover:text-gray-900 dark:hover:text-white">
|
||||||
<i class="fa-solid fa-list mr-2"></i>
|
<i class="fa-solid fa-list mr-2"></i>
|
||||||
<span class="text-sm font-medium">Meine Rechnungen / Honorarnoten</span>
|
<span class="text-sm font-medium">Meine Rechnungen</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
|||||||
Reference in New Issue
Block a user