-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·81 lines (75 loc) · 2.38 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Ember Sortable List</title>
<link rel="stylesheet" href="css/bootstrap3.0.min.css">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<script type="text/x-handlebars">
<h2 class='welcome'>Welcome to Ember.js</h2>
{{outlet}}
</script>
<script type="text/x-handlebars" data-template-name="index">
<div class="row">
<div class="col-md-8 col-md-offset-2 container">
<div class="row">
<div class="col-md-6 list-container">
<div class='list-header'> Colors </div>
{{outlet left}}
</div>
<div class="col-md-4 swatch-container pull-right">
<div class='swatch-header'> Swatch </div>
{{outlet right}}
</div>
</div>
</div>
</div>
</script>
<script type="text/x-handlebars" data-template-name="colors">
{{#each color in controller itemViewClass="App.ColorView"}}
{{#with color.content}}
<div class='drag-target'> </div>
<div class='sortable-list-item-content'>
<div class='cell color-name'> {{color_name}} </div>
<div class='cell color-hex'> {{hex}} </div>
{{view App.ColorSampleView}}
</div>
{{/with}}
{{/each}}
{{#view 'App.ColorsDropZoneView'}}
<div class='drag-target'> </div>
<div class='sortable-list-drop-zone'>
{{#unless content}}
<h4 class='empty-message'> Drag items here </h4>
{{/unless}}
</div>
{{/view}}
</script>
<script type="text/x-handlebars" data-template-name="swatch">
{{#each color in controller itemViewClass="App.SwatchColorView"}}
{{#with color.content}}
<div class='drag-target'> </div>
<div class='swatch-item-content'>
{{view App.ColorSampleView}}
</div>
{{/with}}
{{/each}}
{{#view 'App.SwatchDropZoneView'}}
<div class='drag-target'> </div>
<div class='swatch-drop-zone'>
{{#unless content}}
<h4 class='empty-message'> Drag items here </h4>
{{/unless}}
</div>
{{/view}}
</script>
<script src="js/libs/jquery-1.9.1.js"></script>
<script src="js/libs/handlebars-1.0.0.js"></script>
<script src="js/libs/ember-1.0.0.js"></script>
<script src="js/sortable.js"></script>
<script src="js/app.js"></script>
</body>
</html>