diff options
author | Struan Donald <struan@exo.org.uk> | 2012-12-07 11:20:29 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-12-07 11:20:29 +0000 |
commit | a6c47f2a2056ebada0b47ebb600eec13c504f1fa (patch) | |
tree | aa8392c1f360eb5694c63816e07b3807de67863c /templates/web/seesomething/js | |
parent | 32af4e21192ad50eaf6c2e650ce3830235445b5c (diff) |
add cobrand module and templates for see something say something
Diffstat (limited to 'templates/web/seesomething/js')
-rw-r--r-- | templates/web/seesomething/js/validation_rules.html | 14 | ||||
-rw-r--r-- | templates/web/seesomething/js/validation_strings.html | 15 |
2 files changed, 29 insertions, 0 deletions
diff --git a/templates/web/seesomething/js/validation_rules.html b/templates/web/seesomething/js/validation_rules.html new file mode 100644 index 000000000..5517cd8e8 --- /dev/null +++ b/templates/web/seesomething/js/validation_rules.html @@ -0,0 +1,14 @@ + validation_rules = { + detail: { required: true }, + category: { required: true }, + subcategory: { required: true } + }; + + $(function(){ + $('#submit_noname').click( function(e) { + alert('click'); + $('#form_category').addClass('required validCategory').removeClass('valid'); + $('#form_subcategory').addClass('required validCategory').removeClass('valid'); + }); + }); + diff --git a/templates/web/seesomething/js/validation_strings.html b/templates/web/seesomething/js/validation_strings.html new file mode 100644 index 000000000..64251c163 --- /dev/null +++ b/templates/web/seesomething/js/validation_strings.html @@ -0,0 +1,15 @@ + validation_strings = { + detail: '[% loc('Please enter some details') | replace("'", "\\'") %]', + name: { + validName: '[% loc('Please enter your full name, councils need this information – if you do not wish your name to be shown on the site, untick the box below') | replace("'", "\\'") %]' + }, + category: '[% loc('Please choose a transport category') | replace("'", "\\'") %]', + subcategory: '[% loc('Please choose an incident category') | replace("'", "\\'") %]', + rznvy: { + required: '[% loc('Please enter your email') | replace("'", "\\'") %]', + email: '[% loc('Please enter a valid email') | replace("'", "\\'") %]' + }, + email: { + email: '[% loc('Please enter a valid email') | replace("'", "\\'") %]' + }, + }; |