form-jekyll 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9dc62ef5c97179daa462c0571207adb3d647aed3f5dec3de2cbe313c757d932
4
- data.tar.gz: e73ac896925b4d348b30b5008e802ddf783aa90a616f15b5fbad5f52b67cd97b
3
+ metadata.gz: fb75a1585dcddfaf8453a6bfff40fdeaf598fa6fcd08286436cf7232f43487a0
4
+ data.tar.gz: 9bdca9efb1b6e323e7f1a5166469444bb6e8db833ce38874d0e1925d84ff85e6
5
5
  SHA512:
6
- metadata.gz: 50fc8994b1244f40befc640dc3e1112f8c4a67029621274a9331f7b7f776a476c3ca1b3f705600a15f9ca569e2562077d2d5d9a750e79f087bd78c2bfe1f550c
7
- data.tar.gz: edd9fee8e6c5f79e2cfb7f18d46cbbe8c534231598095dbb970d538674d8cb1f014cec0d1c259b22745b861027298ed55404fb57705defa295096fc33512617b
6
+ metadata.gz: 6449b0c8baf23a2d534d2c6e68827a0f3a13f169e742adb509e7db8a3e1fb3f291954a04df07e891de66454dd5be51b780a14e46f855cb307ab154d5a47b8fc1
7
+ data.tar.gz: 9cf03065f04faa1f1c225b70c34b244a016f2cc2659a10beacf328fcf42d78dece6ec1691ee62dc4e7fe6933daae908495deeae9f448ad13a9e968eca0750c12
data/README.md CHANGED
@@ -83,4 +83,4 @@ Since YAML is easy to read, non-technical colleagues can easily give feedback on
83
83
 
84
84
  - Setup Jekyll - https://jekyllrb.com/docs/installation/
85
85
  - Install Gemfile - `bundle install`
86
- - Run Jekyll - `bundle exec jekyll serve`
86
+ - Run Jekyll - `bundle exec jekyll serve --watch`
@@ -22,7 +22,7 @@
22
22
  <label for="{{ name}}-state">State</label>
23
23
  <select id="{{ name}}-state" {% unless optional %}required="required" data-error="{{ address-error }}"{% endunless %}>
24
24
  <option value="">Choose a state</option>
25
- {% for state in site.data.states %}
25
+ {% for state in layout.address-states %}
26
26
  <option value="{{ state.value }}">{{ state.text }}</option>
27
27
  {% endfor %}
28
28
  </select>
@@ -32,7 +32,7 @@
32
32
  {% if address-fields contains 'zip' or address-fields == 'full' %}
33
33
  <div class="field-address-zip">
34
34
  <label for="{{ name}}-zip" {% unless optional %}required="required" data-error="{{ address-error }}"{% endunless %}>ZIP Code</label>
35
- <input type="text" id="{{ name}}-zip" maxlength="5" class="length-5">
35
+ <input type="number" id="{{ name}}-zip" maxlength="5" class="length-5">
36
36
  </div>
37
37
  {% endif %}
38
38
 
@@ -2,7 +2,7 @@
2
2
  {% include elements/label.html %}
3
3
  </label>
4
4
  <div class="field-container">
5
- <input type="text"
5
+ <input type="number"
6
6
  id="{{ name }}"
7
7
  placeholder=""
8
8
  class="form-control input-md valtype
@@ -2,12 +2,12 @@
2
2
  {% include elements/label.html %}
3
3
  </label>
4
4
  <div class="field-container">
5
- <input type="text" name="{{ name }}" placeholder="" class="form-control input-md valtype length-13" data-valtype="placeholder"
5
+ <input type="tel" name="{{ name }}" placeholder="" class="form-control input-md valtype length-13" data-valtype="placeholder"
6
6
  {% unless optional %} required="required"{% endunless %}
7
7
  {% if error %}
8
8
  data-error="{{ error }}"
9
9
  {% else %}
10
- data-error="You need to enter a valid phone number."
10
+ data-required-error="You need to enter a valid phone number."
11
11
  {% endif %}>
12
12
 
13
13
  {% include elements/helptext.html %}
@@ -4,7 +4,7 @@
4
4
 
5
5
  <div class="field-container">
6
6
  <div class="prepended dollar">$</div>
7
- <input type="text" name="{{ name }}" placeholder="" class="form-control input-md valtype" data-valtype="placeholder"
7
+ <input type="number" name="{{ name }}" placeholder="" class="form-control input-md valtype" data-valtype="placeholder" step="0.01"
8
8
  {% unless optional %} required="required"{% endunless %}
9
9
  {% if error %}
10
10
  data-error="{{ error }}"
@@ -1,3 +1,109 @@
1
+ ---
2
+ address-states:
3
+ - value: AL
4
+ text: Alabama
5
+ - value: AK
6
+ text: Alaska
7
+ - value: AZ
8
+ text: Arizona
9
+ - value: AR
10
+ text: Arkansas
11
+ - value: CA
12
+ text: California
13
+ - value: CO
14
+ text: Colorado
15
+ - value: CT
16
+ text: Connecticut
17
+ - value: DE
18
+ text: Delaware
19
+ - value: DC
20
+ text: District Of Columbia
21
+ - value: FL
22
+ text: Florida
23
+ - value: GA
24
+ text: Georgia
25
+ - value: HI
26
+ text: Hawaii
27
+ - value: ID
28
+ text: Idaho
29
+ - value: IL
30
+ text: Illinois
31
+ - value: IN
32
+ text: Indiana
33
+ - value: IA
34
+ text: Iowa
35
+ - value: KS
36
+ text: Kansas
37
+ - value: KY
38
+ text: Kentucky
39
+ - value: LA
40
+ text: Louisiana
41
+ - value: ME
42
+ text: Maine
43
+ - value: MD
44
+ text: Maryland
45
+ - value: MA
46
+ text: Massachusetts
47
+ - value: MI
48
+ text: Michigan
49
+ - value: MN
50
+ text: Minnesota
51
+ - value: MS
52
+ text: Mississippi
53
+ - value: MO
54
+ text: Missouri
55
+ - value: MT
56
+ text: Montana
57
+ - value: NE
58
+ text: Nebraska
59
+ - value: NV
60
+ text: Nevada
61
+ - value: NH
62
+ text: New Hampshire
63
+ - value: NJ
64
+ text: New Jersey
65
+ - value: NM
66
+ text: New Mexico
67
+ - value: NY
68
+ text: New York
69
+ - value: NC
70
+ text: North Carolina
71
+ - value: ND
72
+ text: North Dakota
73
+ - value: OH
74
+ text: Ohio
75
+ - value: OK
76
+ text: Oklahoma
77
+ - value: OR
78
+ text: Oregon
79
+ - value: PA
80
+ text: Pennsylvania
81
+ - value: RI
82
+ text: Rhode Island
83
+ - value: SC
84
+ text: South Carolina
85
+ - value: SD
86
+ text: South Dakota
87
+ - value: TN
88
+ text: Tennessee
89
+ - value: TX
90
+ text: Texas
91
+ - value: UT
92
+ text: Utah
93
+ - value: VT
94
+ text: Vermont
95
+ - value: VA
96
+ text: Virginia
97
+ - value: WA
98
+ text: Washington
99
+ - value: WV
100
+ text: West Virginia
101
+ - value: WI
102
+ text: Wisconsin
103
+ - value: WY
104
+ text: Wyoming
105
+ ---
106
+
1
107
  <!doctype html>
2
108
  <html>
3
109
  <head>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: form-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Rubenoff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-14 00:00:00.000000000 Z
11
+ date: 2019-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -66,8 +66,6 @@ extensions: []
66
66
  extra_rdoc_files: []
67
67
  files:
68
68
  - README.md
69
- - _data/states.yml
70
- - _data/test.yml
71
69
  - _includes/elements/helptext.html
72
70
  - _includes/elements/label.html
73
71
  - _includes/fields/address.html
@@ -1,102 +0,0 @@
1
- - value: AL
2
- text: Alabama
3
- - value: AK
4
- text: Alaska
5
- - value: AZ
6
- text: Arizona
7
- - value: AR
8
- text: Arkansas
9
- - value: CA
10
- text: California
11
- - value: CO
12
- text: Colorado
13
- - value: CT
14
- text: Connecticut
15
- - value: DE
16
- text: Delaware
17
- - value: DC
18
- text: District Of Columbia
19
- - value: FL
20
- text: Florida
21
- - value: GA
22
- text: Georgia
23
- - value: HI
24
- text: Hawaii
25
- - value: ID
26
- text: Idaho
27
- - value: IL
28
- text: Illinois
29
- - value: IN
30
- text: Indiana
31
- - value: IA
32
- text: Iowa
33
- - value: KS
34
- text: Kansas
35
- - value: KY
36
- text: Kentucky
37
- - value: LA
38
- text: Louisiana
39
- - value: ME
40
- text: Maine
41
- - value: MD
42
- text: Maryland
43
- - value: MA
44
- text: Massachusetts
45
- - value: MI
46
- text: Michigan
47
- - value: MN
48
- text: Minnesota
49
- - value: MS
50
- text: Mississippi
51
- - value: MO
52
- text: Missouri
53
- - value: MT
54
- text: Montana
55
- - value: NE
56
- text: Nebraska
57
- - value: NV
58
- text: Nevada
59
- - value: NH
60
- text: New Hampshire
61
- - value: NJ
62
- text: New Jersey
63
- - value: NM
64
- text: New Mexico
65
- - value: NY
66
- text: New York
67
- - value: NC
68
- text: North Carolina
69
- - value: ND
70
- text: North Dakota
71
- - value: OH
72
- text: Ohio
73
- - value: OK
74
- text: Oklahoma
75
- - value: OR
76
- text: Oregon
77
- - value: PA
78
- text: Pennsylvania
79
- - value: RI
80
- text: Rhode Island
81
- - value: SC
82
- text: South Carolina
83
- - value: SD
84
- text: South Dakota
85
- - value: TN
86
- text: Tennessee
87
- - value: TX
88
- text: Texas
89
- - value: UT
90
- text: Utah
91
- - value: VT
92
- text: Vermont
93
- - value: VA
94
- text: Virginia
95
- - value: WA
96
- text: Washington
97
- - value: WV
98
- text: West Virginia
99
- - value: WI
100
- text: Wisconsin
101
- - value: WY
102
- text: Wyoming
@@ -1,144 +0,0 @@
1
- - title: Test Form
2
- fields:
3
- - type: paragraph
4
- label: Here is an example of some Markdown-formatted text in _bold._
5
-
6
- - type: header
7
- label: Header
8
- level: 3
9
-
10
- - type: paragraph
11
- label: |
12
- This is an unordered list.
13
-
14
- - Here are some list items
15
-
16
- - Here are some list items
17
-
18
- - Here are some list items
19
-
20
- This is a numbered list.
21
-
22
- 1. Here's a numbered list
23
-
24
- 2. Here's a numbered list
25
-
26
- 3. Here's a numbered list
27
-
28
- - title: Field types
29
- fields:
30
- - label: Address
31
- type: address
32
-
33
- - label: Email
34
- type: email
35
-
36
- - label: File upload
37
- type: file
38
-
39
- - label: Number
40
- type: number
41
-
42
- - label: 7-digit number with units
43
- type: number
44
- maxlength: 7
45
- unit: cubic yards
46
-
47
- - label: Phone number
48
- type: phone
49
-
50
- - label: Price
51
- type: price
52
-
53
- - label: Radio buttons
54
- type: radio
55
- options:
56
- - label: "One"
57
- - label: "Two"
58
- - label: "Three"
59
-
60
- - label: Checkboxes
61
- type: checkbox
62
- options:
63
- - label: "One"
64
- - label: "Two"
65
- - label: "Three"
66
-
67
- - label: Dropdown
68
- type: select
69
- options:
70
- - label: "One"
71
- - label: "Two"
72
- - label: "Three"
73
-
74
- - label: Regular input
75
-
76
- - label: Textarea
77
- type: textarea
78
-
79
- - label: Large textarea
80
- type: textarea
81
- size: large
82
-
83
- - title: Conditionals
84
- fields:
85
- - label: Conditionals will appear at the bottom of the page.
86
- type: paragraph
87
-
88
- - label: When these checkboxes are checked&hellip;
89
- type: checkbox
90
- options:
91
- - label: Show "Maya"
92
- shows: maya
93
-
94
- - label: Show "Harvey"
95
- shows: harvey
96
-
97
- - label: Show "Fred"
98
- shows: fred
99
-
100
- - label: When these radio buttons are selected&hellip;
101
- type: radio
102
- options:
103
- - label: Show "Maya"
104
- shows: maya
105
-
106
- - label: Show "Harvey"
107
- shows: harvey
108
-
109
- - label: Show "Fred"
110
- shows: fred
111
-
112
- - label: Show "Maya" when the answer is "Maya"
113
- shows: maya
114
- if: "Maya"
115
-
116
- - label: Show "Harvey" when the answer's less than 10
117
- type: number
118
- maxlength: 3
119
- shows: harvey
120
- if: "<10"
121
-
122
- - label: Show "Fred" if the answer's at least 3
123
- type: number
124
- maxlength: 3
125
- shows: fred
126
- if: ">2"
127
-
128
- - group: maya
129
- fields:
130
- - label: Maya
131
- type: header
132
- level: 3
133
-
134
- - group: fred
135
- fields:
136
- - label: Fred
137
- type: header
138
- level: 3
139
-
140
- - group: harvey
141
- fields:
142
- - label: Harvey
143
- type: header
144
- level: 3