[guadec-web-regcfp/develop] Fixup public stuff
- From: Patrick Uiterwijk <puiterwijk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [guadec-web-regcfp/develop] Fixup public stuff
- Date: Fri, 19 Jun 2015 20:33:42 +0000 (UTC)
commit 7e6b378575c9e379418423dbcb17b08ea5745422
Author: Patrick Uiterwijk <puiterwijk redhat com>
Date: Fri Jun 19 22:33:39 2015 +0200
Fixup public stuff
routes/registration.js | 2 +-
views/registration/register.hbs | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/routes/registration.js b/routes/registration.js
index 846e972..b0db943 100644
--- a/routes/registration.js
+++ b/routes/registration.js
@@ -246,7 +246,7 @@ function handle_registration(req, res, next) {
var reg_info = {
irc: req.body.irc.trim(),
country: req.body.country.trim(),
- is_public: req.body.is_public.indexOf('true') != -1,
+ is_public: req.body.is_public.indexOf('false') == -1,
badge_printed: false,
receipt_sent: false,
UserId: req.user.Id
diff --git a/views/registration/register.hbs b/views/registration/register.hbs
index f2e2816..9d89284 100644
--- a/views/registration/register.hbs
+++ b/views/registration/register.hbs
@@ -6,7 +6,7 @@
<table class="submission-form">
<tr><td>Your name</td><td><input type="text" name="name" value="{{user.name}}" {{#if user
}}disabled{{/if}}/></td></tr>
<tr><td>IRC nickname</td><td><input type="text" name="irc" value="{{registration.irc}}"
placeholder="(optional)"></td></tr>
-<input type="hidden" name="is_public" value="false">
+<input type="hidden" name="is_public" value="true">
<tr><td>Registration fee</td><td>
@@ -21,10 +21,10 @@ Registered
-<tr><td>Country</td><td><input type="text" name="country" value="{{registration.country}}"
placeholder="(optional)"><br/><p class="note">We will not publish country data.<br/> It will only be used for
attendee statistics.</p></td></tr>
-<tr><td> </td><td><input type="checkbox" value="true" name="is_public"
-{{#if registration.is_public}}
+<tr><td> </td><td><input type="checkbox" value="false" name="is_public"
+{{#unless registration.is_public}}
checked
-{{/if}}
+{{/unless}}
Hide my name in the public list of attendees</td></tr>
<tr><td> </td>
<td><input class="submit-talk" type="submit" value="Submit" /></td>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]