gunnertechnology 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/README +0 -0
- data/Rakefile +2 -0
- data/gunnertechnology.gemspec +28 -0
- data/lib/generators/project/USAGE +8 -0
- data/lib/generators/project/project_generator.rb +61 -0
- data/lib/generators/project/templates/app/controllers/authentications_controller.rb +85 -0
- data/lib/generators/project/templates/app/models/authentication.rb +17 -0
- data/lib/generators/project/templates/app/views/layouts/application.html.erb +77 -0
- data/lib/generators/project/templates/app/views/shared/_facebook_init.html.erb +12 -0
- data/lib/generators/project/templates/app/views/shared/_flash_messages.html.erb +7 -0
- data/lib/generators/project/templates/app/views/shared/_footer.html.erb +15 -0
- data/lib/generators/project/templates/app/views/shared/_google_analytics.html.erb +11 -0
- data/lib/generators/project/templates/app/views/shared/_header.html.erb +23 -0
- data/lib/generators/project/templates/config/facebook_config.yml +29 -0
- data/lib/generators/project/templates/config/google_analytics_config.yml +8 -0
- data/lib/generators/project/templates/config/initializers/load_facebook_config.rb +2 -0
- data/lib/generators/project/templates/config/initializers/load_google_analytics_config.rb +2 -0
- data/lib/generators/project/templates/config/initializers/load_seo_config.rb +2 -0
- data/lib/generators/project/templates/config/initializers/omniauth.rb +91 -0
- data/lib/generators/project/templates/config/providers.yml +27 -0
- data/lib/generators/project/templates/config/seo_config.yml +8 -0
- data/lib/generators/project/templates/db/create_authentications.rb +21 -0
- data/lib/generators/project/templates/public/javascripts/libs/PIE.htc +73 -0
- data/lib/generators/project/templates/public/javascripts/libs/colorpicker.js +484 -0
- data/lib/generators/project/templates/public/javascripts/libs/dd_belatedpng.js +13 -0
- data/lib/generators/project/templates/public/javascripts/libs/eye.js +34 -0
- data/lib/generators/project/templates/public/javascripts/libs/head.js +8 -0
- data/lib/generators/project/templates/public/javascripts/libs/jquery.validationEngine-en.js +130 -0
- data/lib/generators/project/templates/public/javascripts/libs/jquery.validationEngine-es.js +124 -0
- data/lib/generators/project/templates/public/javascripts/libs/jquery.validationEngine-fr.js +119 -0
- data/lib/generators/project/templates/public/javascripts/libs/jquery.validationEngine-it.js +103 -0
- data/lib/generators/project/templates/public/javascripts/libs/jquery.validationEngine-pt.js +125 -0
- data/lib/generators/project/templates/public/javascripts/libs/jquery.validationEngine-ro.js +126 -0
- data/lib/generators/project/templates/public/javascripts/libs/jquery.validationEngine.js +1137 -0
- data/lib/generators/project/templates/public/javascripts/libs/layout.js +67 -0
- data/lib/generators/project/templates/public/javascripts/libs/modernizr-1.6.min.js +30 -0
- data/lib/generators/project/templates/public/javascripts/libs/utils.js +252 -0
- data/lib/generators/project/templates/public/javascripts/mylibs/.gitignore +3 -0
- data/lib/generators/project/templates/public/javascripts/plugins.js +38 -0
- data/lib/generators/project/templates/public/javascripts/profiling/config.js +59 -0
- data/lib/generators/project/templates/public/javascripts/profiling/yahoo-profiling.min.js +39 -0
- data/lib/generators/project/templates/public/javascripts/script.js +46 -0
- data/lib/generators/project/templates/public/stylesheets/grids/1008_24_10_10.css +201 -0
- data/lib/generators/project/templates/public/stylesheets/grids/fluid.css +320 -0
- data/lib/generators/project/templates/public/stylesheets/handheld.css +8 -0
- data/lib/generators/project/templates/public/stylesheets/profiling/yahoo-profiling.css +7 -0
- data/lib/generators/project/templates/public/stylesheets/reset.css +53 -0
- data/lib/generators/project/templates/public/stylesheets/text.css +84 -0
- data/lib/generators/project/templates/public/stylesheets/validationEngine.jquery.css +142 -0
- data/lib/generators/project/templates/public/swfs/charts.swf +0 -0
- data/lib/gunnertechnology/version.rb +3 -0
- data/lib/gunnertechnology.rb +47 -0
- metadata +206 -0
@@ -0,0 +1,125 @@
|
|
1
|
+
|
2
|
+
(function($){
|
3
|
+
$.fn.validationEngineLanguage = function(){
|
4
|
+
};
|
5
|
+
$.validationEngineLanguage = {
|
6
|
+
newLang: function(){
|
7
|
+
$.validationEngineLanguage.allRules = {
|
8
|
+
"required": { // Add your regex rules here, you can take telephone as an example
|
9
|
+
"regex": "none",
|
10
|
+
"alertText": "* Campo obrigatório",
|
11
|
+
"alertTextCheckboxMultiple": "* Selecione uma opção",
|
12
|
+
"alertTextCheckboxe": "* Campo obrigatório"
|
13
|
+
},
|
14
|
+
"minSize": {
|
15
|
+
"regex": "none",
|
16
|
+
"alertText": "* Mínimo ",
|
17
|
+
"alertText2": " carateres permitidos"
|
18
|
+
},
|
19
|
+
"maxSize": {
|
20
|
+
"regex": "none",
|
21
|
+
"alertText": "* Máximo ",
|
22
|
+
"alertText2": " carateres permitidos"
|
23
|
+
},
|
24
|
+
"min": {
|
25
|
+
"regex": "none",
|
26
|
+
"alertText": "* O valor mínimo é "
|
27
|
+
},
|
28
|
+
"max": {
|
29
|
+
"regex": "none",
|
30
|
+
"alertText": "* O valor máximo é "
|
31
|
+
},
|
32
|
+
"past": {
|
33
|
+
"regex": "none",
|
34
|
+
"alertText": "* Data anterior a "
|
35
|
+
},
|
36
|
+
"future": {
|
37
|
+
"regex": "none",
|
38
|
+
"alertText": "* Data posterior a "
|
39
|
+
},
|
40
|
+
"maxCheckbox": {
|
41
|
+
"regex": "none",
|
42
|
+
"alertText": "* Foi ultrapassado o número máximo de escolhas"
|
43
|
+
},
|
44
|
+
"minCheckbox": {
|
45
|
+
"regex": "none",
|
46
|
+
"alertText": "* Selecione ",
|
47
|
+
"alertText2": " opções"
|
48
|
+
},
|
49
|
+
"equals": {
|
50
|
+
"regex": "none",
|
51
|
+
"alertText": "* Os campos não correspondem"
|
52
|
+
},
|
53
|
+
"phone": {
|
54
|
+
// credit: jquery.h5validate.js / orefalo
|
55
|
+
"regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
|
56
|
+
"alertText": "* Número de telefone inválido"
|
57
|
+
},
|
58
|
+
"email": {
|
59
|
+
// Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
|
60
|
+
"regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/,
|
61
|
+
"alertText": "* Endereço de email inválido"
|
62
|
+
},
|
63
|
+
"integer": {
|
64
|
+
"regex": /^[\-\+]?\d+$/,
|
65
|
+
"alertText": "* Não é um número inteiro"
|
66
|
+
},
|
67
|
+
"number": {
|
68
|
+
// Number, including positive, negative, and floating decimal. credit: orefalo
|
69
|
+
"regex": /^[\-\+]?(([0-9]+)([\.,]([0-9]+))?|([\.,]([0-9]+))?)$/,
|
70
|
+
"alertText": "* Não é um número decimal"
|
71
|
+
},
|
72
|
+
"date": {
|
73
|
+
// Date in ISO format. Credit: bassistance
|
74
|
+
"regex": /^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/,
|
75
|
+
"alertText": "* Data inválida, o formato deve de ser AAAA-MM-DD"
|
76
|
+
},
|
77
|
+
"ipv4": {
|
78
|
+
"regex": /^([1-9][0-9]{0,2})+\.([1-9][0-9]{0,2})+\.([1-9][0-9]{0,2})+\.([1-9][0-9]{0,2})+$/,
|
79
|
+
"alertText": "* Número IP inválido"
|
80
|
+
},
|
81
|
+
"url": {
|
82
|
+
"regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/,
|
83
|
+
"alertText": "* URL inválido"
|
84
|
+
},
|
85
|
+
"onlyNumberSp": {
|
86
|
+
"regex": /^[0-9\ ]+$/,
|
87
|
+
"alertText": "* Só é permitido números"
|
88
|
+
},
|
89
|
+
"onlyLetterSp": {
|
90
|
+
"regex": /^[a-zA-Z\ \']+$/,
|
91
|
+
"alertText": "* Só é permitido letras"
|
92
|
+
},
|
93
|
+
"onlyLetterNumber": {
|
94
|
+
"regex": /^[0-9a-zA-Z]+$/,
|
95
|
+
"alertText": "* Só é permitido letras e números"
|
96
|
+
},
|
97
|
+
// --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
|
98
|
+
"ajaxUserCall": {
|
99
|
+
"url": "ajaxValidateFieldUser",
|
100
|
+
// you may want to pass extra data on the ajax call
|
101
|
+
"extraData": "name=eric",
|
102
|
+
"alertText": "* Nome de utilizador não disponível",
|
103
|
+
"alertTextLoad": "* A validar, por favor aguarde"
|
104
|
+
},
|
105
|
+
"ajaxNameCall": {
|
106
|
+
// remote json service location
|
107
|
+
"url": "ajaxValidateFieldName",
|
108
|
+
// error
|
109
|
+
"alertText": "* Nome não disponível",
|
110
|
+
// if you provide an "alertTextOk", it will show as a green prompt when the field validates
|
111
|
+
"alertTextOk": "* Nome disponível",
|
112
|
+
// speaks by itself
|
113
|
+
"alertTextLoad": "* A validar, por favor aguarde"
|
114
|
+
},
|
115
|
+
"validate2fields": {
|
116
|
+
"alertText": "* Escreva HELLO"
|
117
|
+
}
|
118
|
+
};
|
119
|
+
|
120
|
+
}
|
121
|
+
};
|
122
|
+
$.validationEngineLanguage.newLang();
|
123
|
+
})(jQuery);
|
124
|
+
|
125
|
+
|
@@ -0,0 +1,126 @@
|
|
1
|
+
|
2
|
+
(function($){
|
3
|
+
$.fn.validationEngineLanguage = function(){
|
4
|
+
};
|
5
|
+
$.validationEngineLanguage = {
|
6
|
+
newLang: function(){
|
7
|
+
$.validationEngineLanguage.allRules = {
|
8
|
+
"required": { // Add your regex rules here, you can take telephone as an example
|
9
|
+
"regex": "none",
|
10
|
+
"alertText": "* Acest camp este obligatoriu",
|
11
|
+
"alertTextCheckboxMultiple": "* Selectati o optiune",
|
12
|
+
"alertTextCheckboxe": "* Aceasta optiune este obligatorie"
|
13
|
+
},
|
14
|
+
"minSize": {
|
15
|
+
"regex": "none",
|
16
|
+
"alertText": "* Minim ",
|
17
|
+
"alertText2": " caractere permise"
|
18
|
+
},
|
19
|
+
"maxSize": {
|
20
|
+
"regex": "none",
|
21
|
+
"alertText": "* Maxim ",
|
22
|
+
"alertText2": " caractere permise"
|
23
|
+
},
|
24
|
+
"min": {
|
25
|
+
"regex": "none",
|
26
|
+
"alertText": "* Valoarea minima este "
|
27
|
+
},
|
28
|
+
"max": {
|
29
|
+
"regex": "none",
|
30
|
+
"alertText": "* Valoarea maxima este "
|
31
|
+
},
|
32
|
+
"past": {
|
33
|
+
"regex": "none",
|
34
|
+
"alertText": "* Data inainte de "
|
35
|
+
},
|
36
|
+
"future": {
|
37
|
+
"regex": "none",
|
38
|
+
"alertText": "* Data dupa "
|
39
|
+
},
|
40
|
+
"maxCheckbox": {
|
41
|
+
"regex": "none",
|
42
|
+
"alertText": "* Limita maxima de optiuni a fost depasita"
|
43
|
+
},
|
44
|
+
"minCheckbox": {
|
45
|
+
"regex": "none",
|
46
|
+
"alertText": "* Selectati cel putin ",
|
47
|
+
"alertText2": " optiuni"
|
48
|
+
},
|
49
|
+
"equals": {
|
50
|
+
"regex": "none",
|
51
|
+
"alertText": "* Campurile nu coincid"
|
52
|
+
},
|
53
|
+
"phone": {
|
54
|
+
// credit: jquery.h5validate.js / orefalo
|
55
|
+
"regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
|
56
|
+
"alertText": "* Numar de telefon eronat"
|
57
|
+
},
|
58
|
+
"email": {
|
59
|
+
// Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
|
60
|
+
"regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/,
|
61
|
+
"alertText": "* Adresa de email eronata"
|
62
|
+
},
|
63
|
+
"integer": {
|
64
|
+
"regex": /^[\-\+]?\d+$/,
|
65
|
+
"alertText": "* Numar intreg eronat"
|
66
|
+
},
|
67
|
+
"number": {
|
68
|
+
// Number, including positive, negative, and floating decimal. credit: orefalo
|
69
|
+
"regex": /^[\-\+]?(([0-9]+)([\.,]([0-9]+))?|([\.,]([0-9]+))?)$/,
|
70
|
+
"alertText": "* Numar zecimal eronat"
|
71
|
+
},
|
72
|
+
"date": {
|
73
|
+
// Date in ISO format. Credit: bassistance
|
74
|
+
"regex": /^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/,
|
75
|
+
"alertText": "* Data eronata, formatul de introducere este: YYYY-MM-DD"
|
76
|
+
},
|
77
|
+
"ipv4": {
|
78
|
+
"regex": /^([1-9][0-9]{0,2})+\.([1-9][0-9]{0,2})+\.([1-9][0-9]{0,2})+\.([1-9][0-9]{0,2})+$/,
|
79
|
+
"alertText": "* Adresa IP eronata"
|
80
|
+
},
|
81
|
+
"url": {
|
82
|
+
"regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/,
|
83
|
+
"alertText": "* URL eronat"
|
84
|
+
},
|
85
|
+
"onlyNumberSp": {
|
86
|
+
"regex": /^[0-9\ ]+$/,
|
87
|
+
"alertText": "* Doar numere"
|
88
|
+
},
|
89
|
+
"onlyLetterSp": {
|
90
|
+
"regex": /^[a-zA-Z\ \']+$/,
|
91
|
+
"alertText": "* Doar litere"
|
92
|
+
},
|
93
|
+
"onlyLetterNumber": {
|
94
|
+
"regex": /^[0-9a-zA-Z]+$/,
|
95
|
+
"alertText": "* Caracterele speciale (',', '.', '-', etc) nu sunt permise"
|
96
|
+
},
|
97
|
+
// --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
|
98
|
+
"ajaxUserCall": {
|
99
|
+
"url": "ajaxValidateFieldUser",
|
100
|
+
// you may want to pass extra data on the ajax call
|
101
|
+
"extraData": "name=eric",
|
102
|
+
"alertText": "* Acest nume de utilizator este deja folosit",
|
103
|
+
"alertTextLoad": "* Se valideaza, va rugam asteptati"
|
104
|
+
},
|
105
|
+
"ajaxNameCall": {
|
106
|
+
// remote json service location
|
107
|
+
"url": "ajaxValidateFieldName",
|
108
|
+
// error
|
109
|
+
"alertText": "* Acest nume este deja folosit",
|
110
|
+
// if you provide an "alertTextOk", it will show as a green prompt when the field validates
|
111
|
+
"alertTextOk": "* Acest nume este disponibil",
|
112
|
+
// speaks by itself
|
113
|
+
"alertTextLoad": "* Se valideaza, va rugam asteptati"
|
114
|
+
},
|
115
|
+
"validate2fields": {
|
116
|
+
"alertText": "* Introduceti: HELLO"
|
117
|
+
}
|
118
|
+
};
|
119
|
+
|
120
|
+
}
|
121
|
+
};
|
122
|
+
})(jQuery);
|
123
|
+
|
124
|
+
$(document).ready(function(){
|
125
|
+
$.validationEngineLanguage.newLang();
|
126
|
+
});
|