forked from usds/html-prototype
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index2.html
109 lines (85 loc) · 2.85 KB
/
index2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
---
layout: default
---
<h2>Examples of text</h2>
<p><strong>First name:</strong> <span data-print="first_name"></span></p>
<p><strong>Last name:</strong> <span data-print="last_name"></span></p>
<p><strong>Favorite food:</strong> <span data-print="favorite_food"></span></p>
<p><strong>Radio selection:</strong> <span data-print="radio_group"></span></p>
<p><strong>Radio follow-up answer:</strong> <span data-print="specify"></span></p>
<p><strong>Checkbox selection(s):</strong> <span data-print="checkbox_group"></span></p>
<p><strong>Checkbox followup:</strong> <span data-print="specify2"></span></p>
<p><strong>Select:</strong> <span data-print="basic_select"></span></p>
<p><strong>Select 2:</strong> <span data-print="title"></span></p>
<p><strong>Select 2 followup:</strong> <span data-print="specify_select"></span></p>
<p><strong>State:</strong> <span data-print="some_state"></span></p>
<h4>Your text</h4>
<div data-print="textarea"></div>
<hr>
<h2>Filters</h2>
<div class="usa-alert usa-alert--info" data-filter-favorite_food="burgers">
<div class="usa-alert__body">
<p class="usa-alert__text">This appears because your favorite food is set to burgers. You can use URL parameters to save session storage. Reload this page by going to <a href="index2.html?favorite_food=Pizza">index2.html?favorite_food=Pizza</a> and see that your favorite food has been changed to Pizza</p>
</div>
</div>
<h2>Examples of inputs</h2>
{% include form-fields/_text-field.html
id="first_name"
label_text="First name"
hint="This is what people call you"
prepopulate="first_name"
%}
{% include form-fields/_text-field.html
id="last_name"
label_text="Last name"
prepopulate="last_name"
%}
<div class="margin-y-5">
{% include form-fields/_radio.html
name="radio_group"
id="radio_1"
label_text="Option without a follow up"
prepopulate="radio_group"
%}
{% include form-fields/_radio.html
name="radio_group"
id="radio_2"
label_text="Option with a follow up"
prepopulate="radio_group"
%}
</div>
<div class="margin-y-5">
{% include form-fields/_checkbox.html
name="checkbox_group"
id="checkbox_1"
label_text="Checkbox without a follow up"
prepopulate="checkbox_1"
%}
{% include form-fields/_checkbox.html
name="checkbox_group"
id="checkbox_2"
label_text="Checkbox with a required followup"
follow_up="followup2"
follow_up_optional="true"
prepopulate="checkbox_2"
%}
</div>
<div class="margin-y-5">
{% include form-fields/_select.html
id="basic_select"
label_text="Basic select box"
options=" | Option 1 | Option 2"
prepopulate="basic_select"
%}
{% include form-fields/_state-select.html
id="some_state"
prepopulate="some_state"
%}
</div>
<div class="margin-y-5">
{% include form-fields/_text-area.html
id="textarea"
label_text="Write something"
prepopulate="textarea"
%}
</div>