forked from sshepard/TestMe_NG
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·80 lines (73 loc) · 3.25 KB
/
index.html
File metadata and controls
executable file
·80 lines (73 loc) · 3.25 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
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
<!DOCTYPE html>
<html xmlns:ng="http://angularjs.org" ng-app="TestMe">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title ng-bind="title"></title>
<link rel="stylesheet" href="css/bootstrap.css"/>
<!-- because no matter how great the temptation, you should actively avoid in-page and inline styling like the plague -->
<link rel="stylesheet" href='css/test.css'/>
<!--[if lte IE 7]>
<script src="js/vendor/json3.js"></script>
<![endif]-->
<script src="js/vendor/angular.min.js"></script>
<script src="js/vendor/angular-route.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.4/angular-resource.min.js"></script>
<script src="js/app.js"></script>
<script src="js/TestMe.js"></script>
<script src="js/results.js"></script>
</head>
<body>
<section class='view' ng-controller="indexController">
<h1 class='title' ng-bind="title"></h1>
<div class="container">
<div class="row">
<h1>The User Interface Developer Test</h1>
</div>
<div class="well" ng-show="true">
<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>Sort 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>
</div>
<div class="message" ng-model="system.message" ng-show="(system.message.status!='')">
<span class="status">{{system.message.status}}</span>
</div>
<form role="form" ng-submit="processPage()" name="form">
<div class="form-group" >
<label class="checkbox small">
<input type="checkbox" name="checkAll" ng-model="selectAll" ng-click="checkAll()" ng-init="selectAll=false;system.message.status=''">Select All</label>
</div>
<span ng-repeat="check in checks | orderBy:'+label'">
<label class="checkbox">
<input type="checkbox" name="fields" value="{{check.id}}" ng-change="updateCheckValues(check)" ng-model="check.checked" />
{{check.label}}
</label>
</span>
<button type="submit" class="btn btn-default" ng-click="ngSubmit()">Submit</button>
<span class="ib">
<label class="checkbox small fail">
<input type="checkbox" ng-model="serverfail.checked" name="serverFail" ng-change="updateServerFail(serverfail)" />
Force Server Fail
</label>
</form>
</div>
<div class="floater" ng-show="false">
<p name="item" ng-repeat="n in checkedList">
<span ng-model="checkedList">{{checkedList}}</span>
</p>
</div>
</section>
<script>console.log('hey, I\'m javascript right before the </body> element because it\'s supposed to be this way!');</script>
<script>console.warn('(but really, don\'t abuse inline javascript for this...)');</script>
</body>
</html>