mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-30 04:13:01 +00:00
Credit and debit buttons are hidden when there is no right to see special notes
This commit is contained in:
parent
730d37c620
commit
7a4f929b36
@ -3,7 +3,7 @@
|
|||||||
SPDX-License-Identifier: GPL-2.0-or-later
|
SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load i18n static django_tables2 %}
|
{% load i18n static django_tables2 perms %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
@ -18,6 +18,7 @@ SPDX-License-Identifier: GPL-2.0-or-later
|
|||||||
<input type="radio" name="transaction_type" id="type_transfer">
|
<input type="radio" name="transaction_type" id="type_transfer">
|
||||||
{% trans "Transfer" %}
|
{% trans "Transfer" %}
|
||||||
</label>
|
</label>
|
||||||
|
{% if "note.notespecial"|not_empty_model_list %}
|
||||||
<label for="type_credit" class="btn btn-sm btn-outline-primary">
|
<label for="type_credit" class="btn btn-sm btn-outline-primary">
|
||||||
<input type="radio" name="transaction_type" id="type_credit">
|
<input type="radio" name="transaction_type" id="type_credit">
|
||||||
{% trans "Credit" %}
|
{% trans "Credit" %}
|
||||||
@ -26,6 +27,7 @@ SPDX-License-Identifier: GPL-2.0-or-later
|
|||||||
<input type="radio" name="transaction_type" id="type_debit">
|
<input type="radio" name="transaction_type" id="type_debit">
|
||||||
{% trans "Debit" %}
|
{% trans "Debit" %}
|
||||||
</label>
|
</label>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -58,6 +60,7 @@ SPDX-License-Identifier: GPL-2.0-or-later
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% if "note.notespecial"|not_empty_model_list %}
|
||||||
<div class="col-md-4" id="external_div" style="display: none;">
|
<div class="col-md-4" id="external_div" style="display: none;">
|
||||||
<div class="card border-success shadow mb-4">
|
<div class="card border-success shadow mb-4">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
@ -99,6 +102,7 @@ SPDX-License-Identifier: GPL-2.0-or-later
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<div class="col-md-8" id="dests_div">
|
<div class="col-md-8" id="dests_div">
|
||||||
<div class="card border-info shadow mb-4">
|
<div class="card border-info shadow mb-4">
|
||||||
|
Loading…
Reference in New Issue
Block a user