From 904a6c3dae554b4c32d81011872d906a6dccde5b Mon Sep 17 00:00:00 2001 From: Emmanuel Prochasson Date: Fri, 19 Jul 2013 18:14:59 +0800 Subject: [PATCH] Profile edition bugfix --- TODO | 4 +- client/css/less/map.lessimport | 6 +- client/helpers/lexicon.js | 9 ++- client/views/includes/form/form_fields.html | 11 ++-- client/views/includes/form/form_fields.js | 28 ++++++--- .../profile_creation/profile_creation.html | 12 ++-- .../profile_creation/profile_creation.js | 62 +++++++++++++++++++ server/fixtures.js | 28 +++++++++ server/users.js | 7 ++- 9 files changed, 143 insertions(+), 24 deletions(-) diff --git a/TODO b/TODO index c45e91e..32ea4f7 100644 --- a/TODO +++ b/TODO @@ -14,4 +14,6 @@ Complete Lexicon... Subscription process + email validation. Check input security (not too long, invalid characters, injection...). -Fix Bug in Profile page. \ No newline at end of file +Fix Bug in Profile page. + +Find a way to factorize some client code. \ No newline at end of file diff --git a/client/css/less/map.lessimport b/client/css/less/map.lessimport index c683d85..ca6e9d7 100644 --- a/client/css/less/map.lessimport +++ b/client/css/less/map.lessimport @@ -1,8 +1,12 @@ #googlemap{ - height: 500px; + height: 400px; width: 500px; margin: 0 auto; img { max-width: none; } +} + +span#geocoding_target{ + font-weight: bold; } \ No newline at end of file diff --git a/client/helpers/lexicon.js b/client/helpers/lexicon.js index 27783b5..08230f1 100644 --- a/client/helpers/lexicon.js +++ b/client/helpers/lexicon.js @@ -37,8 +37,13 @@ Meteor.i18nMessages.question = { dob: 'Date of Birth', dob_help: 'Select your date of birth', find_your_location: 'Let us determine your location', - pick_on_the_map: 'Pick your location on a map' - + pick_on_the_map: 'Point your location on a map', + location_help: "We don't want to know your precise address! Just help you locate people near you", + gender: "Gender", + geocoding: "Your current location", + unknown: "Unknown :(", + male: "Male", + female: "Female" }; Meteor.i18nMessages.messages = { diff --git a/client/views/includes/form/form_fields.html b/client/views/includes/form/form_fields.html index f76df5d..b20e870 100644 --- a/client/views/includes/form/form_fields.html +++ b/client/views/includes/form/form_fields.html @@ -30,7 +30,7 @@
@@ -42,12 +42,13 @@ {{Lex 'question.find_your_location'}} {{Lex 'question.pick_on_the_map'}} - +