forked from sshepard/TestMe_NG
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestForm.html
More file actions
34 lines (34 loc) · 1.64 KB
/
testForm.html
File metadata and controls
34 lines (34 loc) · 1.64 KB
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
<div ng-controller="CheckBoxController">
<div class="row">
<h1>The User Interface Developer Test</h1>
</div>
<div class="well">
<ul>
<li>This Page and results.html should be converted to AngularJS templates.</li>
<li>Add a select-all toggle for the checkbox list.</li>
<li>Select-all should be checked if all fields are checked, unchecked if all fields are unchecked and indeterminate if some are checked.</li>
<li>Sor the checkboxes by name</li>
<li>When submitting the form, if only "Language" is checked, then an error should appear stating " Please choose more items! "</li>
<li>Successfully submitting the form takes us to results.html and shows what the user submitted.</li>
<li>Maybe the page can look a little better?</li>
<p>Read the README.md</p>
</ul>
</div>
<form role="form" ng-submit="submit()">
<div class="form-group">
<input type="checkbox" ng-model="cbSelectAll" ng-change="selectAllCheckBoxes()" id="selectAllChkBox">Select All
</div>
<div class="form-group col-md-6">
<div ng-repeat-start="item in getKeys(cbSelectedByVal)| orderBy:item">
<input type="checkbox" name="fields" value="{{item}}" ng-model="cbSelectedByVal[item]" ng-change="testSelectAll()">
<label>
{{item}}
</label>
</div>
<div ng-repeat-end></div>
<button type="submit" class="btn btn-primary" ng-click="submit()">Submit</button>
</div>
</form>
<script>
</script>
</div>