-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata-entry-form.mustache
208 lines (180 loc) · 8.72 KB
/
data-entry-form.mustache
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<!-- Read the specs on how this can be used but keep in mind ... form elements within here are mainly placeholders, use the form, fieldset, legend, div.form-groups and then place your elements within. This is meant to be a starting point for the structure and body of a data entry form -->
<form action="" id="" method="" class="org-data-entry-form" aria-labelledby="dat-entry-form-title">
<div class="panel clearfix">
<div class="panel-body">
<div class="org-data-entry-form--col-3">
<h3 class="form-title" id="dat-entry-form-title">Data Entry Form Title</h3>
<div class="form-group">
<span class="text-danger" aria-hidden="true">Required *</span>
</div>
<!-- this section has one and two columns, use a fieldset to group sections of related content together. Then use the legend element as a section title -->
<fieldset class="form-section" id="">
<div class="form-section--wrapper clearfix">
<legend class="form-section--title">First Section Title</legend>
<!-- wrap form elements within .form-group -->
<div class="form-group">
<div class="">
<label for="course-title" class="">Course Title<span class="jzb-required-text text-danger" aria-hidden="true"> *</span></label>
<input type="text" id="course-title" class="form-control" aria-required="true">
</div>
</div>
<div class="data-entry-form--twosidebyside">
<div class="form-group">
<label for="short-label1" class="">Short Label</label>
<input type="text" id="short-label1" class="form-control">
</div>
<div class="form-group">
<label for="short-label2" class="">Short Label</label>
<input type="text" id="short-label2" class="form-control">
</div>
</div>
</div>
</fieldset>
<fieldset class="form-section" id="">
<div class="form-section--wrapper">
<legend class="form-section--title">Second Section Title</legend>
<div class="form-group">
<label for="select1">Course Division</label>
<select class="{{formClass}}" id="select1" name="{{atomSelectInput.name}}"{{{atomSelectInput.ariaLabel}}} {{{atomSelectInput.ariaDescribedby}}} {{{atomSelectInput.disabled}}}>
{{{atomSelectInput.optgroupOpen}}}
<option>{{atomSelectInput.optiontextBlank}}</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
{{{atomSelectInput.optgroupClose}}}
</select>
</div>
<div class="form-group">
<label for="select2">Institutional Division<span class="jzb-required-text text-danger" aria-hidden="true"> *</span></label>
<select class="{{formClass}}" id="select2" name="{{atomSelectInput.name}}"{{{atomSelectInput.ariaLabel}}} {{{atomSelectInput.ariaDescribedby}}} {{{atomSelectInput.disabled}}} aria-required="true">
{{{atomSelectInput.optgroupOpen}}}
<option>{{atomSelectInput.optiontextBlank}}</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
{{{atomSelectInput.optgroupClose}}}
</select>
</div>
</div>
</fieldset>
<!-- this section has three columns -->
<fieldset class="form-section" id="">
<div class="form-section--wrapper clearfix">
<legend class="form-section--title">Third Section Title</legend>
<div class="data-entry-form--threesidebyside">
<div class=" form-group">
<label for="capacity">Capacity<span class="jzb-required-text text-danger" aria-hidden="true"> *</span></label>
<input type="number" id="capacity" class="form-control" aria-required="true">
</div>
<div class="form-group">
<label for="max-enrollment">Max Enrollment<span class="jzb-required-text text-danger" aria-hidden="true"> *</span></label>
<input type="number" id="max-enrollment" class="form-control">
</div>
<div class="form-group">
<label for="min-enroll">Min Enrollment<span class="jzb-required-text text-danger" aria-hidden="true"> *</span></label>
<input type="number" id="min-enroll" class="form-control">
</div>
</div>
</div>
</fieldset>
<fieldset class="form-section" id="">
<div class="form-section--wrapper clearfix">
<legend class="form-section--title">Fourth Section Title</legend>
<div class="data-entry-form--twosidebyside">
<div class="form-group">
<label for="select3">Status</label>
<select class="{{formClass}}" id="select3" name="{{atomSelectInput.name}}"{{{atomSelectInput.ariaLabel}}} {{{atomSelectInput.ariaDescribedby}}} {{{atomSelectInput.disabled}}}>
{{{atomSelectInput.optgroupOpen}}}
<option>{{atomSelectInput.optiontextBlank}}</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
{{{atomSelectInput.optgroupClose}}}
</select>
</div>
<div class="form-group">
<label for="select4">Date Inactive</label>
<select class="{{formClass}}" id="select4" name="{{atomSelectInput.name}}"{{{atomSelectInput.ariaLabel}}} {{{atomSelectInput.ariaDescribedby}}} {{{atomSelectInput.disabled}}}>
{{{atomSelectInput.optgroupOpen}}}
<option>{{atomSelectInput.optiontextBlank}}</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
{{{atomSelectInput.optgroupClose}}}
</select>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-sm-6 pad-rt-2r">
<label for="select5">Date Approved</label>
<select class="{{formClass}}" id="select5" name="{{atomSelectInput.name}}"{{{atomSelectInput.ariaLabel}}} {{{atomSelectInput.ariaDescribedby}}} {{{atomSelectInput.disabled}}}>
{{{atomSelectInput.optgroupOpen}}}
<option>{{atomSelectInput.optiontextBlank}}</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
{{{atomSelectInput.optgroupClose}}}
</select> </div>
</div>
</div>
</div>
</fieldset>
<fieldset class="form-section">
<div class="form-section--wrapper clearfix">
<legend class="form-section--title">Fifth Section Title</legend>
<div class="form-group">
{{#data-entry-form}}
<div class="atom-checkbox-toggle checkbox-toggle--sm">
<input type="{{checkboxSmall.type}}" name="{{checkboxSmall.name}}" id="cb1" value="{{checkboxSmall.value}}" {{checkboxSmall.checkedstate}}{{{checkboxSmall.arialabel}}}{{{checkboxSmall.ariadescribedby}}}{{{checkboxSmall.disabled}}}>
<label class="" for="cb1">Checkbox Toggle Small</label>
</div>
{{/data-entry-form}}
</div>
<div class="form-group">
{{#data-entry-form}}
<div class="atom-checkbox-toggle checkbox-toggle--sm">
<input type="{{checkboxSmall.type}}" name="{{checkboxSmall.name}}" id="cb2" value="{{checkboxSmall.value}}" {{checkboxSmall.checkedstate}}{{{checkboxSmall.arialabel}}}{{{checkboxSmall.ariadescribedby}}}{{{checkboxSmall.disabled}}}>
<label class="" for="cb2">Checkbox Toggle Small</label>
</div>
{{/data-entry-form}}
</div>
</div>
</fieldset>
<fieldset class="form-section">
<div class="form-section--wrapper clearfix">
<legend class="form-section--title">Six Section Title</legend>
<div class="form-group">
{{#data-entry-form}}
<div class="atoms-radio-button">
<div class="radio-group">
{{>atoms-radio-button-open}}
{{>atoms-radio-button-core-group}}
{{>atoms-radio-button-close}}
</div>
</div>
{{/data-entry-form}}
</div>
</div>
</fieldset>
<fieldset class="form-section">
<div class="form-section--wrapper clearfix">
<legend class="form-section--title">Seventh Section Title</legend>
<div class="form-group">
{{#data-entry-form}}
{{> atoms-text-area }}
{{/data-entry-form}}
</div>
</div>
</fieldset>
</div>
<div class="org-data-entry-form--col-1">
<div class="org-data-entry-form--action-buttons-desktop">
<button type="button" class="atom-button atom-button--primary org-data-entry-form--save-button">Save</button>
</div>
<div class="org-data-entry-form--action-buttons-mobile">
<button type="button" class="atom-button atom-button--primary org-data-entry-form--save-button">Save</button>
</div>
</div>
</div>
</div>