diff --git a/cgi-bin/promotion.php b/cgi-bin/promotion.php index fe1439fb21..8969e1e10a 100644 --- a/cgi-bin/promotion.php +++ b/cgi-bin/promotion.php @@ -117,7 +117,7 @@ if (empty($_POST['lastname']) || empty($_POST['zip']) || empty($_POST['city']) || empty($_POST['country']) || - empty($_POST['specifics']) || + empty($_POST['packagetype']) || !empty($_POST['address']) ) { header("Location: http://fsfe.org/contribute/spreadtheword-ordererror.$lang.html"); @@ -143,8 +143,17 @@ $msg .= "{$_POST['street']}\n". "{$_POST['zip']} "."{$_POST['city']}\n". "{$_POST['country']}\n". "\n". - "Specifics of the Order:\n". - "{$_POST['specifics']}\n". + "Specifics of the Order:\n"; +# Default or custom package? +if ($_POST['packagetype'] == 'default') { + $msg .= "Default package: Something from everything listed here, depending on size, language selection and availability.\n"; +} else { + $msg .= "Custom package:\n". + "{$_POST['specifics']}\n"; +} +$msg .= "\n". + "Preferred language(s) (if available):\n". + "{$_POST['languages']}\n". "\n". "The material is going to be used for:\n". "{$_POST['usage']}\n". diff --git a/contribute/spreadtheword.en.xhtml b/contribute/spreadtheword.en.xhtml index 13a9c6ded9..557734a227 100644 --- a/contribute/spreadtheword.en.xhtml +++ b/contribute/spreadtheword.en.xhtml @@ -48,6 +48,66 @@ margin: 2em 0 3em 0; width: 70%; } + + form#orderpromo div { + margin-bottom: 0.7em; + } + + form#orderpromo label { + font-weight: normal; + } + + form#orderpromo div > label, + form#orderpromo div > input, + form#orderpromo div > textarea { + margin-left: 20px; + } + + div.langselector ul { + list-style: none; + } + + form#orderpromo input[type="checkbox"], + form#orderpromo input[type="radio"] { + margin-right: 0.3em; + } + + div.langselector li { + display: inline-block; + width: 9em; + } + + form#orderpromo .reveal { + opacity: 0; + max-height: 0; + overflow: hidden; + transform: scale(1); + transition: 0.5s; + } + + form#orderpromo input[type="radio"]:checked ~ .reveal { + opacity: 1; + max-height: 300px; /* little bit of a magic number :( */ + overflow: visible; + } + + form#orderpromo fieldset { + border: 1px groove #aaa !important; + padding: 1em 1.4em 1.4em 1.4em !important; + margin: 0 0 1.5em 0 !important; + -webkit-box-shadow: 0px 0px 0px 0px #000; + box-shadow: 0px 0px 0px 0px #000; + } + + form#orderpromo fieldset legend { + font-size: 1.2em !important; + font-weight: bold !important; + text-align: left !important; + width:auto; + padding:0 10px; + border-bottom:none; + margin-bottom: 0; + } @@ -96,46 +156,105 @@
- - -

Please send promotional material to:

- First name, Last name: - -
- Email: -
- Company/Organisation (if any): -
- - Street, No.: -
- Zip, City: - -
- Country: -
- - - - - - I would like the promotion package to focus on: -
- I would like to use the material for (short description): -
- Any comment: -
- - Support our work with a donation of 10€ or more: - € - - -
+ + +

Order promotional material

+

Fields marked with * are mandatory.

+
+ Your address +
+ First name, Last name*: + + +
+
+ Email*: + +
+
+ Company/Organisation (if any): + +
+
+ Street, No.*: + +
+
+ Zip*, City*: + + +
+
+ Country*: + +
+
+
+ Compose your package +
+ Package selection*: + +
+