-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
91 lines (75 loc) · 2.93 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
<!DOCTYPE HTML>
<html>
<head>
<title>Quotes Admin</title>
<link rel="stylesheet" href="css/styles.css" />
</head>
<body>
<div id="originListContainer"></div>
<div id="originContainer"></div>
<div id="quoteListContainer"></div>
<div id="quoteContainer"></div>
<!-- ==============================-->
<!-- Templates -->
<!-- ==============================-->
<script type="text/template" id="tpl-origins-list">
<button class="addOrigin">Add Origin</button>
<label>Origins:</label>
<ul id="originsList"></ul>
</script>
<script type="text/template" id="tpl-origins-list-item">
<a href='#origins/<%= id %>'><%= origin_text %></a>
</script>
<script type="text/template" id="tpl-origin">
<button class="saveOrigin">Save Origin</button>
<button class="deleteOrigin">Delete Origin</button>
<label>Id:</label>
<input type="text" id="originId" name="id" value="<%= id === null ? '' : id %>" disabled/>
<label>Origin text:</label>
<input type="text" id="originText" name="text" value="<%= origin_text %>" required/>
<label>Origin type:</label>
<input type="text" id="originTypeId" name="text" value="<%= type_id %>" required/>
<label>Language:</label>
<input type="text" id="originLanguageId" name="grapes" value="<%= language_id %>"/>
</script>
<script type="text/template" id="tpl-quotes-list">
<button class="addQuote">Add Quote</button>
<label>Quotes:</label>
<ul id="quotesList"></ul>
</script>
<script type="text/template" id="tpl-quotes-list-item">
<a href='#origins/<%= origin_id %>/quotes/<%= id %>'><%= quote_text %></a>
</script>
<script type="text/template" id="tpl-quote">
<button class="deleteQuote">Delete Quote</button>
<label>Id:</label>
<input type="text" id="quoteId" name="id" value="<%= id %>" disabled />
<label>Quote text:</label>
<input type="text" id="quoteText" name="name" value="<%= quote_text %>" required/>
<label>Language:</label>
<input type="text" id="quoteLanguageId" name="grapes" value="<%= language_id %>"/>
<label>Comments:</label>
<textarea id="comments" name="description"><%= comments %></textarea>
</script>
<!-- ==============================-->
<!-- JavaScript -->
<!-- ==============================-->
<!-- libs -->
<script src="lib/jquery-1.8.1.js"></script>
<script src="lib/underscore-min.js"></script>
<script src="lib/backbone.js"></script>
<!--<script src="lib/backbone-min.js"></script>-->
<!-- app -->
<script src="js/models/quoteModel.js"></script>
<script src="js/models/quotesCollection.js"></script>
<script src="js/models/originModel.js"></script>
<script src="js/models/originsCollection.js"></script>
<script src="js/views/quotesListItemView.js"></script>
<script src="js/views/quotesListView.js"></script>
<script src="js/views/quoteView.js"></script>
<script src="js/views/originsListItemView.js"></script>
<script src="js/views/originsListView.js"></script>
<script src="js/views/originView.js"></script>
<script src="js/main.js"></script>
</body>
</html>