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
Commits
4c91c9b0
Commit
4c91c9b0
authored
3 years ago
by
Tom Teichler
Browse files
Options
Downloads
Patches
Plain Diff
Add UI for payment processing
parent
9b92d753
No related branches found
No related tags found
2 merge requests
!9
Resolve "Add payment processing UI"
,
!3
Implement payment backends and interaction
Pipeline
#59241
canceled
3 years ago
Stage: prepare
Stage: test
Stage: build
Stage: publish
Stage: docker
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/apps/tezor/templates/tezor/invoice/full.html
+82
-0
82 additions, 0 deletions
aleksis/apps/tezor/templates/tezor/invoice/full.html
with
82 additions
and
0 deletions
aleksis/apps/tezor/templates/tezor/invoice/full.html
+
82
−
0
View file @
4c91c9b0
...
@@ -10,6 +10,88 @@
...
@@ -10,6 +10,88 @@
<h1>
{% trans "Invoice" %} {{ object.transaction_id }} — {{ object.created.date }}
</h1>
<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>
<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.purchased_items_table %}
{% render_table object.totals_table %}
{% render_table object.totals_table %}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment