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
!3
Implement payment backends and interaction
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Implement payment backends and interaction
payment-backends
into
master
Overview
0
Commits
26
Pipelines
17
Changes
1
Merged
Nik | Klampfradler
requested to merge
payment-backends
into
master
3 years ago
Overview
0
Commits
26
Pipelines
17
Changes
1
Expand
Advances
#3 (closed)
Edited
3 years ago
by
Tom Teichler
0
0
Merge request reports
Viewing commit
4c91c9b0
Prev
Next
Show latest version
1 file
+
82
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
4c91c9b0
Add UI for payment processing
· 4c91c9b0
Tom Teichler
authored
3 years ago
aleksis/apps/tezor/templates/tezor/invoice/full.html
+
82
−
0
Options
@@ -10,6 +10,88 @@
<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>
<div
class=
"row"
>
<div
class=
"col s6"
>
<div
class=
"card"
>
<div
class=
"card-content"
>
<span
class=
"card-title"
>
{% trans "Billing information" %}
</span>
<table
class=
"highlight"
>
<tr>
<td>
<i
class=
"material-icons small iconify"
data-icon=
"mdi:account-outline"
></i>
</td>
<td>
{{ object.billing_first_name }} {{object.billing_last_name }}
</td>
</tr>
<tr>
<td
rowspan=
"2"
>
<i
class=
"material-icons small iconify"
data-icon=
"mdi:map-marker-outline"
></i>
</td>
<td>
{{ object.billing_address_1 }} {{ object.billing_address_2 }}
</td>
</tr>
<tr>
<td>
{{ object.billing_postcode }} {{ object.billing_city}}
</td>
</tr>
<tr>
<td>
<i
class=
"material-icons small iconify"
data-icon=
"mdi:email-outline"
></i>
</td>
<td>
<a
href=
"mailto:{{ object.billing_email }}"
>
{{ object.billing_email }}
</a>
</td>
</tr>
</table>
</div>
</div>
</div>
<div
class=
"col s6"
>
<div
class=
"card"
>
<div
class=
"card-content"
>
<span
class=
"card-title"
>
{% trans "Payment" %}
</span>
<table
class=
"highlight"
>
<tr>
<td>
{% if object.variant == "paypal" %}
<i
class=
"material-icons iconify"
data-icon=
"logos:paypal"
></i>
{% elif object.variant == "sofort" %}
<i
class=
"material-icons iconify"
data-icon=
"simple-icons:klarna"
></i>
{% endif %}
</td>
<td>
{{ object.variant }}
</td>
</tr>
<tr>
<td>
{% if object.status == "waiting" or object.status == "input" %}
<i
class=
"material-icons iconify"
data-icon=
"mdi:cash-lock-open"
></i>
{% elif object.status == "rejected" or object.status == "error" %}
<i
class=
"material-icons iconify"
data-icon=
"mdi:cash-remove"
></i>
{% elif objects.status == "preauth" %}
<i
class=
"material-icons iconfiy"
data-icon=
"mdi:cash-lock"
></i>
{% elif objects.status == "confirmed" %}
<i
class=
"material-icons iconfiy"
data-icon=
"mdi:cash-check"
></i>
{% elif object.status == "refunded" %}
<i
class=
"material-icons iconify"
data-icon=
"mdi:cash-refund"
></i>
{% endif %}
</td>
<td>
{{ object.get_status_display }}
</td>
</tr>
</table>
</div>
{% if object.status == "waiting" or object.status == "rejected" or object.status == "input" %}
<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>
{% trans "Pay now" %}
</a>
</div>
{% endif %}
</div>
</div>
</div>
{% render_table object.purchased_items_table %}
{% render_table object.totals_table %}
Loading