Commit 6c2bf00e11412abb3f570f36f73fdf09db5613a1

Authored by Antonio Terceiro
1 parent 21cd27c6

ActionItem927: removing unused file

Showing 1 changed file with 0 additions and 73 deletions   Show diff stats
app/views/shared/forms/example.yml
@@ -1,73 +0,0 @@ @@ -1,73 +0,0 @@
1 -# This is an example of a yml to auto generate validable forms.  
2 -  
3 -# The base squence list is a hash where the keys are the field names.  
4 -# each hash iten has a hash to dedfine it's properties.  
5 -# The attributes:  
6 -# _: text - friendly name for the user interface - must add to POT file  
7 -# mandatory: boolean - obviously  
8 -# type: prededfined text - text, textarea, hidden, password, radio, checkbox, select  
9 -# val: text or list - the field value  
10 -# val-h: text or list - the value for the user interface - must add to POT file  
11 -# selected: text or list - the selected field(s) on any list fields  
12 -# validate: hash - contais validation information  
13 -  
14 -# You can use variables (wordos inside %...%) where will be replacebe by hash  
15 -# values gave to the form generator method.  
16 -  
17 -form:  
18 --  
19 - action: bli.rb  
20 - method: post  
21 - id: registration_form  
22 - default_size: 25  
23 -  
24 -- name: {  
25 - _: Full Name,  
26 - type: text,  
27 - mandatory: true,  
28 - size: 40,  
29 - max_size: 255  
30 -}  
31 -- login: {  
32 - _: Login,  
33 - type: text,  
34 - mandatory: true,  
35 - max_size: 20,  
36 - validate: {  
37 - min_size: [ 3, "The minimal login size is 3" ],  
38 - regexp: [ "^[-_a-z0-9]+$",  
39 - "The login can only have lowercase letters, numbers hiphen and undescore. (no spaces!)" ]  
40 - }  
41 -}  
42 -- paswd: {  
43 - _: Password,  
44 - type: password,  
45 - mandatory: true,  
46 - validate: {  
47 - min_size: 4  
48 - }  
49 -}  
50 -- sex: {  
51 - _: Sex,  
52 - type: radio,  
53 - val: [ M, F ],  
54 - val-h: [ Male, Female ]  
55 -}  
56 -- country: {  
57 - _: Living Country,  
58 - type: select,  
59 - val: %COUNTRY_CODES%,  
60 - val-h: %COUNTRY_NAMES%,  
61 - selected: BR  
62 -}  
63 -  
64 -- butons:  
65 - - submit: {  
66 - _: Enter,  
67 - class: icon_enter  
68 - }  
69 - - reset: {  
70 - _: Reset,  
71 - class: icon_clear  
72 - }  
73 -