Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Tezor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Onboarding
AlekSIS-App-Tezor
Merge requests
!9
Resolve "Add payment processing UI"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Add payment processing UI"
3-add-payment-processing-ui-2
into
payment-backends
Overview
0
Commits
10
Pipelines
9
Changes
1
Merged
Tom Teichler
requested to merge
3-add-payment-processing-ui-2
into
payment-backends
3 years ago
Overview
0
Commits
10
Pipelines
9
Changes
1
Expand
Closes
#3 (closed)
Edited
3 years ago
by
Tom Teichler
0
0
Merge request reports
Viewing commit
2261b025
Prev
Next
Show latest version
1 file
+
21
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
2261b025
Check permissions in UI
· 2261b025
Tom Teichler
authored
3 years ago
aleksis/apps/tezor/templates/tezor/invoice/full.html
+
21
−
5
Options
{% extends "core/base.html" %}
{% load material_form i18n %}
{% load material_form i18n
rules
%}
{% load render_table from django_tables2 %}
@@ -7,10 +7,23 @@
{% block content %}
{% has_perm 'tezor.do_payment' user object as can_do_payment %}
{% has_perm 'tezor.view_invoice_group_rule' user object.group as can_view_invoice_group %}
{% has_perm 'tezor.display_purchased_items_rule' user object as can_view_purchased_items %}
{% has_perm 'tezor.display_billing_rule' user object as can_view_billing_information %}
{% has_perm 'tezor.print_invoice_rule' user object as can_print_invoice %}
<h1>
{% trans "Invoice" %} {{ object.transaction_id }} — {{ object.created.date }}
</h1>
<a
class=
"btn colour-primary waves-effect waves-light"
href=
"{% url 'invoice_group_by_pk' object.group.pk %}"
>
{% trans "Back" %}
</a>
{% if can_view_invoice_group %}
<a
class=
"btn colour-primary waves-effect waves-light"
href=
"{% url 'invoice_group_by_pk' object.group.pk %}"
>
{% trans "Back" %}
</a>
{% endif %}
{% if can_print_invoice %}
<a
class=
"btn colour-primary waves-effect waves-light"
href=
"{% url 'print_invoice' object.token %}"
>
{% trans "Print" %}
</a>
{% endif %}
<div
class=
"row"
>
{% if can_view_billing_information %}
<div
class=
"col s12 m6"
>
<div
class=
"card"
>
<div
class=
"card-content"
>
@@ -43,6 +56,7 @@
</div>
</div>
</div>
{% endif %}
<div
class=
"col s12 m6"
>
<div
class=
"card"
>
<div
class=
"card-content"
>
@@ -80,7 +94,7 @@
</tr>
</table>
</div>
{% if object.status == "waiting" or object.status == "rejected" or object.status == "input" %}
{% if object.status == "waiting" or object.status == "rejected" or object.status == "input"
and can_do_payment
%}
<div
class=
"card-action"
>
<a
class=
"btn waves-effect waves-light green"
href=
"{% url 'do_payment' object.token %}"
>
<i
class=
"material-icons left iconify"
data-icon=
"mdi:cash-fast"
></i>
@@ -92,7 +106,9 @@
</div>
</div>
{% render_table object.purchased_items_table %}
{% render_table object.totals_table %}
{% if can_view_purchased_items %}
{% render_table object.purchased_items_table %}
{% render_table object.totals_table %}
{% endif %}
{% endblock %}
Loading