Made changes necessary to implement the domain linking form

This commit is contained in:
antil0pa 2017-12-20 23:43:46 +01:00
parent 0a7e9899d4
commit 37a76b5b54
8 changed files with 187 additions and 5 deletions

View File

@ -7,7 +7,7 @@ fontcolor: '#7A7A7A'
## Email Aliases
<a class="button button1" href="https://disroot.org/forms/alias-request-form">Request Aliases</a>
<a class="button button2" href="https://disroot.org/forms/domain-linking-form">Link Own Domain</a>
---
Aliases are now available for our regular supporters. By regular supporters we think of those who contribute the equivalent of at least one cup of coffee a month.
@ -16,6 +16,7 @@ We found this [list](https://www.caffesociety.co.uk/blog/the-cheapest-cities-in-
Please take time to consider your contribution. If you can 'buy' us one cup of Rio De Janeiro coffee a month that's OK, but If you can afford a Double Decaf Soy Frappuccino With An Extra Shot And Cream a month, then you can really help us keep the Disroot platform running and make sure it is available for free for other people with less means.
To request aliases you need to fill in this [form](https://disroot.org/forms/alias-request-form).
If you would like to use your own domain use this [form](https://disroot.org/forms/domain-linking-form).
*If you already donated to disroot in the past and would still like to get aliases please get in contact with us.*

4
pages/CHANGE.LOG Normal file
View File

@ -0,0 +1,4 @@
This is changelog of disroot.org page. Here we will be noting all significant changes to the texts, such as added information, significant modifications and updates to existing ones etc.
**CHANGELOG:**
- 20.12.2017 - added domain linking form and button

View File

@ -1,5 +1,5 @@
---
title: Cryptocurrencies
title: Bitcoin
content:
items: '@self.modular'
order:
@ -12,4 +12,3 @@ content:
body_classes: modular
header_image: burning_money.png
---

View File

@ -87,8 +87,8 @@ form:
validate:
required: true
-
name: referance
label: Referance
name: reference
label: Reference
type: text
placeholder: 'Name of payment holder or other transfer referance'
validate:

View File

@ -0,0 +1,154 @@
---
title: 'Domain Linking Form'
header_image: introverts.jpg
form:
name: Domain-linking-form
fields:
-
name: username
label: 'User Name'
placeholder: 'Enter your disroot user name'
autofocus: 'on'
autocomplete: 'on'
type: text
validate:
pattern: '[A-Za-z0-9.-]*'
required: true
-
name: 'Domain'
lable: 'Your domain'
placeholder: your-domain
type: text
validate:
pattern: '[A-Za-z0-9.-]*'
required: true
-
name: 'Alias 1'
label: Alias
placeholder: your-alias
type: text
validate:
pattern: '[A-Za-z0-9.-]*'
required: true
-
name: 'Alias 2'
label: 'Second Alias (optional)'
placeholder: your-alias
type: text
validate:
pattern: '[A-Za-z0-9.-]*'
required: false
-
name: 'Alias 3'
label: 'Third Alias (optional)'
placeholder: your-alias
type: text
validate:
pattern: '[A-Za-z0-9.-]*'
required: false
-
name: 'Alias 4'
label: 'Forth Alias (optional)'
placeholder: your-alias
type: text
validate:
pattern: '[A-Za-z0-9.-]*'
required: false
-
name: 'Alias 5'
label: 'Fifth Alias (optional)'
placeholder: your-alias
type: text
validate:
pattern: '[A-Za-z0-9.-]*'
required: false
-
name: contribution
label: 'Contributing via'
placeholder: select
type: select
options:
patreon: Patreon
paypal: Paypal
bank: 'Bank transfer'
faircoin: Faircoin
bitcoin: Bitcoin
validate:
required: true
-
name: amount
label: Amount
placeholder: 'in €, $, BTC etc.'
type: text
validate:
pattern: '[0-9.,]*'
required: true
-
name: frequency
label: Repeated
type: radio
default: monthly
options:
monthly: Monthly
yearly: Yearly
validate:
required: true
-
name: reference
label: Reference
type: text
placeholder: 'Name of payment holder or other transfer referance'
validate:
required: true
-
name: comments
type: textarea
-
name: honeypot
type: honeypot
buttons:
-
type: submit
value: Submit
-
type: reset
value: Reset
process:
-
email:
from: domain-request@disroot.org
to: '{{ form.value.username }}@disroot.org'
subject: '[Disroot] Your domain linking request'
body: '<br><br>Hi {{ form.value.username|e }}, <br><br><strong>Thank you for your contribution to Disroot.org!</strong><br>We truly appreciate your generosity.<br><br>We will review your request and get back to you as soon as we can.</strong><br><br><hr><br><strong>Here is a summary of the received request:</strong><br><br>{% include ''forms/data.html.twig'' %}'
-
email:
from: domain-request@disroot.org
to: '{{ config.plugins.email.to }}'
subject: '[Domain linking request] - {{ form.value.username|e }}'
body: '{% include ''forms/data.html.twig'' %}'
-
save:
fileprefix: feedback-
dateformat: Ymd-His-u
extension: txt
body: '{% include ''forms/data.txt.twig'' %}'
-
message: 'Your domain linking request has been sent!'
-
display: thankyou
---
<h1 class="form-title"> Domain Linking Request </h1>
<p class="form-text"><strong> Fill in this form if you would like to use your own domain for Email aliases.</strong>
<br><br>
Please follow these steps to point your domain to our server <strong> (*this will also serve to verify the domain is really owned by you.*)</strong>:
<ol>
<li>Go to the DNS records settings for your domain</li>
<li>Point MX 10 record to disroot.org</li>
<li>Point SPF record to "v=spf1 mx a ptr include:disroot.org ~all"</li>
<li>Point TXT record to "v=spf1 mx ~all"</li>
</ol>
<strong>Please take time to consider your contribution.</strong> If you can 'buy' us one cup of Rio De Janeiro coffee a month that's OK, but If you can afford a Double Decaf Soy Frappuccino With An Extra Shot And Cream a month, then you can really help us keep the Disroot platform running and make sure it is available for free for other people with less means.
</p>

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB

View File

@ -0,0 +1,12 @@
---
title: 'Aliases requested'
cache_enable: false
process:
twig: true
---
<br><br> **We will review your request and get back to you in the next days.**
<br>
<hr>
<br>
**Here is a summary of the received request:**

View File

@ -0,0 +1,12 @@
---
title: 'Alias demandés'
cache_enable: false
process:
twig: true
---
<br><br> **Nous examinerons votre demande et vous répondrons dans les prochains jours..**
<br>
<hr>
<br>
**Voici un résumé de la demande reçue:**