This repository has been archived on 2022-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
IcyNet.eu/views/donate.pug

39 lines
1.4 KiB
Plaintext
Raw Normal View History

extends layout.pug
block title
|Icy Network - Donate
block body
2018-01-28 19:15:53 +00:00
.container.mb-4.mt-4
h1 Donate
p Donations help us pay for the servers required to keep Icy Network running. Donating any amount would be highly appreciated!
- var formurl = "https://www.paypal.com/cgi-bin/webscr"
if sandbox
- formurl = "https://www.sandbox.paypal.com/cgi-bin/webscr"
form(action=formurl, method="post")
input(type="hidden" name="cmd" value="_xclick")
input(type="hidden" name="business" value=business)
input(type="hidden" name="item_name" value=name)
input(type="hidden" name="item_number" value="1")
input(type="hidden" name="no_shipping" value="1")
input(type="hidden" name="quantity" value="1")
input(type="hidden" name="tax" value="0")
input(type="hidden" name="notify_url" value=ipn_url)
label(for="amount") Amount
.row.form-group
2018-02-07 17:36:21 +00:00
.col-md-10
2018-01-28 19:15:53 +00:00
input.form-control(type="number", name="amount" value="1.00")
2018-02-07 17:36:21 +00:00
.col-md
2018-01-28 19:15:53 +00:00
select.form-control(name="currency_code")
option(value="EUR") EUR
option(value="USD") USD
2018-01-28 19:15:53 +00:00
if user
input#custominfo(type="hidden", name="custom", value="userid:" + user.id)
2018-01-28 19:15:53 +00:00
else
input#custominfo(type="hidden", name="custom", value="")
.buttoncont
a.btn.btn-primary.text-light(name="submit", onclick="$(this).closest('form').submit()")
2020-05-28 18:30:21 +00:00
i.fab.fa-fw.fa-paypal
2018-01-28 19:15:53 +00:00
| Donate