From a28ac17cf925f0416e8dda7aeb3dc7f21a69f9ea Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Wed, 4 Jul 2012 23:43:21 +0800 Subject: Bug 766910: update the REMO mentorship form --- .../en/default/bug/create/comment-mozreps.txt.tmpl | 14 +++++++ .../en/default/bug/create/create-mozreps.html.tmpl | 46 +++++++++++++++++++--- 2 files changed, 55 insertions(+), 5 deletions(-) (limited to 'extensions/REMO') diff --git a/extensions/REMO/template/en/default/bug/create/comment-mozreps.txt.tmpl b/extensions/REMO/template/en/default/bug/create/comment-mozreps.txt.tmpl index 29544d669..5e1275e0b 100644 --- a/extensions/REMO/template/en/default/bug/create/comment-mozreps.txt.tmpl +++ b/extensions/REMO/template/en/default/bug/create/comment-mozreps.txt.tmpl @@ -50,6 +50,13 @@ IM: - [% END %] +Mozillians.org Account: +[% IF cgi.param('mozillian') %] +[%+ cgi.param('mozillian') %] +[% ELSE %] +- +[% END %] + References: [% IF cgi.param('references') %] [%+ cgi.param('references') %] @@ -64,6 +71,13 @@ Currently Involved with Mozilla: - [% END %] +When First Contributed: +[% IF cgi.param('firstcontribute') %] +[%+ cgi.param('firstcontribute') %] +[% ELSE %] +- +[% END %] + Languages Spoken: [%+ cgi.param('languages') %] diff --git a/extensions/REMO/template/en/default/bug/create/create-mozreps.html.tmpl b/extensions/REMO/template/en/default/bug/create/create-mozreps.html.tmpl index 2a7be0ab2..bd918d803 100644 --- a/extensions/REMO/template/en/default/bug/create/create-mozreps.html.tmpl +++ b/extensions/REMO/template/en/default/bug/create/create-mozreps.html.tmpl @@ -53,6 +53,17 @@ function mandatory(ids) { return result; } +function underageWarning (el) { + if (el.checked) { + Dom.removeClass('underage_warning', 'bz_default_hidden'); + Dom.get('submit').disabled = true; + } + else { + Dom.addClass('underage_warning', 'bz_default_hidden'); + Dom.get('submit').disabled = false; + } +} + function submitForm() { if (!mandatory([ 'first_name', 'last_name', 'sex', 'city', 'country', 'languages', 'learn', 'motivation', 'privacy' ]) @@ -104,7 +115,18 @@ function submitForm() { Are you under 18 years old?: - + +
+ + + + + + Mozilla Reps program is not currently accepting people under 18 years old. + Sorry for the inconvenience. In the meantime please check with your local Mozilla + group for other contribution opportunities + @@ -139,28 +161,40 @@ function submitForm() { + Mozillians.org Account: + + + + References: - + - + How are you involved with Mozilla? - + + + + When did you first start contributing to Mozilla? + + + + Languages Spoken:[% mandatory FILTER none %] @@ -195,7 +229,9 @@ function submitForm() {   - + + + -- cgit v1.2.3-24-g4f1b