-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
133 lines (127 loc) · 5.75 KB
/
index.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!doctype html>
<html ng-app="prioritizr">
<head>
<title>Prioritizr</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/prioritizr.css">
<link rel="stylesheet" href="css/jquery-ui.min.css">
<link rel="stylesheet" href="css/jquery-ui.structure.min.css">
<link rel="stylesheet" href="css/jquery-ui.theme.min.css">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
<script type="text/javascript" src="js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/angular-1-3-15.min.js"></script>
<script type="text/javascript" src="js/angular-dragdrop.min.js"></script>
<script type="text/javascript" src="js/angular-local-storage.min.js"></script>
<script type="text/javascript" src="js/sortable.js"></script>
<script type="text/javascript" src="js/prioritizr.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body
ng-controller="AppController as appCtrl">
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar">Icon1</span>
<span class="icon-bar">Icon2</span>
<span class="icon-bar">Icon3</span>
</button>
<a class="navbar-brand" href="#">Prioritizr</a>
</div>
<div class="collapse navbar-collapse" id="navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li>
<li><a href="#">Link</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#"
ng-click="appCtrl.clearState()">Reset List</a>
</li>
<li><a href="#"
ng-click="appCtrl.saveState()">Save List</a>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<div id="four-quadrant-wrapper">
<div class="container">
<div ng-repeat="quadrant in appCtrl.quadrants"
class="col-md-6
quadrant-wrapper
quadrant-wrapper-{{$index+1}}">
<div class="quadrant-{{$index+1}}"
ng-model="quadrant.items"
data-drop="true"
jqyoui-droppable="{multiple:true}"
data-jqyoui-options="{revert: 'invalid'}">
<div class="quadrant-header
text-center"
id="quadrant-{{$index+1}}-header">
<h1>{{quadrant.header}}</h1>
</div>
<div class="quadrant-items-wrapper"
ng-model="quadrant.items"
ui-sortable="{connectWith: '.quadrant-items-wrapper'}">
<div class="quadrant-item"
ng-repeat="item in quadrant.items"
ng-controller="ItemController as itemCtrl"
ng-click="itemCtrl.save(item)">
<div class="list-group-item text-center"
ng-model="quadrant.items"
data-drag="true"
data-jqyoui-options="{revert: 'invalid'}"
ng-click="itemCtrl.enableEditor(item)">
<input class="input-control
extended-input
text-center
form-control-no-border"
type="text"
maxlength="72"
ng-model="item.body">
<div class="item-button-wrapper pull-right">
<button type="button"
class="btn btn-link check-button"
ng-click="appCtrl.completeItem(quadrant, $index)">
<i class="fa fa-check"></i>
</button>
<button type="button"
class="btn btn-link cross-button"
ng-click="appCtrl.deleteItem(quadrant, $index)">
<i class="fa fa-times"></i>
</button>
</div>
</input>
</div>
</div>
<form ng-submit="quadrant.addNewItem()">
<div class="form-group">
<li class="list-group-item text-center">
<input class="input-control
extended-input
form-control-no-border
text-center"
type="text"
maxlength="72"
ng-model="quadrant.newItem.body">
</input>
</li>
</div>
</form>
</div>
<br><br>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
</body>
</html>