58 lines
2.9 KiB
HTML
58 lines
2.9 KiB
HTML
{% load django_ledger %}
|
|
{% load i18n %}
|
|
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h2 class="card-header-title display-4">{% trans 'Journal Entry Detail' %}</h2>
|
|
</div>
|
|
<div class="card-body">
|
|
<h2 class="display-4 text-success">{{ journal_entry.je_number }}</h2>
|
|
|
|
{% if journal_entry.entity_unit %}
|
|
<h2 class="display-4 font-weight-light">{{ journal_entry.entity_unit.name }}</h2>
|
|
{% endif %}
|
|
|
|
<h2 class="display-4">{% trans 'Date' %}: {{ journal_entry.timestamp | date }}</h2>
|
|
|
|
<h3 class="h4">{% trans 'Posted' %}:
|
|
{% if journal_entry.is_posted %}
|
|
<span class="text-success">{% icon 'ant-design:check-circle-filled' 24 %}</span>
|
|
{% else %}
|
|
<span class="text-danger">{% icon 'maki:roadblock-11' 24 %}</span>
|
|
{% endif %}
|
|
</h3>
|
|
<h3 class="h4">{% trans 'Locked' %}:
|
|
{% if journal_entry.is_locked %}
|
|
<span class="text-success">{% icon 'ant-design:check-circle-filled' 24 %}</span>
|
|
{% else %}
|
|
<span class="text-danger">{% icon 'maki:roadblock-11' 24 %}</span>
|
|
{% endif %}
|
|
</h3>
|
|
{% if journal_entry.activity %}
|
|
<h3 class="h3">{% trans 'Activity' %}: {{ journal_entry.get_activity_display }}</h3>
|
|
{% endif %}
|
|
{% if journal_entry.description %}
|
|
<h4 class="h4 font-weight-light">{{ journal_entry.description }}</h4>
|
|
{% endif %}
|
|
</div>
|
|
<div class="card-footer">
|
|
<div class="d-flex justify-content-between">
|
|
{% if journal_entry.can_lock %}
|
|
<a href="{{ journal_entry.get_lock_url }}?next={% url 'journalentry_txs' journal_entry.entity_slug journal_entry.ledger_id journal_entry.pk %}"
|
|
class="btn btn-phoenix-success font-weight-bold">{% trans 'Lock' %}</a>
|
|
{% endif %}
|
|
{% if journal_entry.can_unlock %}
|
|
<a href="{{ journal_entry.get_unlock_url }}?next={% url 'journalentry_txs' journal_entry.entity_slug journal_entry.ledger_id journal_entry.pk %}"
|
|
class="btn btn-phoenix-warning font-weight-bold">{% trans 'UnLock' %}</a>
|
|
{% endif %}
|
|
{% if journal_entry.can_post %}
|
|
<a href="{{ journal_entry.get_post_url }}?next={% url 'journalentry_txs' journal_entry.entity_slug journal_entry.ledger_id journal_entry.pk %}"
|
|
class="btn btn-phoenix-success font-weight-bold">{% trans 'Post' %}</a>
|
|
{% endif %}
|
|
{% if journal_entry.can_unpost %}
|
|
<a href="{{ journal_entry.get_unpost_url }}?next={% url 'journalentry_txs' journal_entry.entity_slug journal_entry.ledger_id journal_entry.pk %}"
|
|
class="btn btn-phoenix-danger font-weight-bold">{% trans 'UnPost' %}</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div> |