[gnome-web-www] Further improvements to the membership application form.
- From: Andrea Veri <av src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-web-www] Further improvements to the membership application form.
- Date: Sun, 28 Apr 2013 16:22:11 +0000 (UTC)
commit bb3fda9c4b06056a585a1c586f8fbc061d84c4a4
Author: Andrea Veri <av gnome org>
Date: Sun Apr 28 18:21:54 2013 +0200
Further improvements to the membership application form.
theme/page-apply.php | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/theme/page-apply.php b/theme/page-apply.php
index f61f2d2..ef98b3e 100644
--- a/theme/page-apply.php
+++ b/theme/page-apply.php
@@ -16,9 +16,11 @@ if (array_key_exists('submit', $_POST)) {
$errors = true;
}
- $summary = trim(stripslashes($_POST['summary']));
- $gnome_mail_alias = trim(stripslashes($_POST['gnome_mail_alias']));
+ $summary = trim(stripslashes($_POST['summary']));
+ $gnome_mail_alias = trim(stripslashes($_POST['gnome_mail_alias']));
+ $gnome_username= trim(stripslashes($_POST['gnome_username']));
$gnome_jabber = trim(stripslashes($_POST['gnome_jabber']));
+
$previous_participation = trim(stripslashes($_POST['previous_participation']));
if (empty($full_name) || empty($email) || empty($summary)) {
@@ -35,6 +37,7 @@ if (array_key_exists('submit', $_POST)) {
"Benefits\n" .
"Mail alias: " . ($gnome_mail_alias == 'on' ? "Yes" : "No") . "\n".
+ "Mail alias username: " . $gnome_username . "\n".
"Jabber Account: " . ($gnome_jabber == 'on' ? "Yes" : "No") . "\n\n" .
"Contributions Summary:\n" .
@@ -217,15 +220,13 @@ if (array_key_exists('submit', $_POST)) {
</p>
<div class="item benefits">
- <input name="gnome_mail_alias" id="gnome_mail_alias" type="checkbox"
onClick="toggleBenefitsFields()"
- <?php if ($gnome_mail_alias) { ?> checked="checked"
<?php } ?> /> @gnome.org mail alias
- <input name="gnome_username" id="gnome_username"
type="text" disabled />
+ <input name="gnome_mail_alias" id="gnome_mail_alias" type="checkbox"
onClick="toggleBenefitsFields()" /> @gnome.org mail alias
+ <input name="gnome_username" id="gnome_username"
type="text" placeholder="What do you want your alias to be?" disabled />
</div>
<div class="item benefits">
- <input name="gnome_jabber" id="gnome_jabber" type="checkbox" disabled
- <?php if ($gnome_jabber) { ?> checked="checked" <?php } ?> />
- <span name="jabber_label" id="jabber_label"
class="disabled-checkbox">Jabber Account <em>(only if you adopt a @gnome.org mail alias)</em></span>
+ <input name="gnome_jabber" id="gnome_jabber" type="checkbox" disabled />
+ <span name="jabber_label" id="jabber_label"
class="disabled-checkbox">Jabber account <em>(only if you adopt a @gnome.org mail alias)</em></span>
</div>
<h3>Contributions</h3>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]