-
Notifications
You must be signed in to change notification settings - Fork 0
/
articleInsert.html
193 lines (171 loc) · 5.11 KB
/
articleInsert.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!Doctype>
<html>
<head>
<style type="text/css">
.hide{
display:none;
}
body div{
padding:5px;
}
label{
color:white;
background-color:black;
}
</style>
<link rel="stylesheet" type="text/css" href="/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="/css/bootstrap-responsive.css">
<script type="text/javascript" src="/js/vendor/jquery-1.9.1.min.js" ></script>
<script type="text/javascript" src="/js/bootstrap.js" ></script>
<script type="text/javascript" src="/js/underscore.js" ></script>
<script type="text/javascript" src="/js/ejs.js"></script>
<script type="text/javascript" src="/js/site.js"></script>
</head>
<body>
<div>
<input type="button" id="newArticle" class="btn btn-info" value="New Article" />
<input type="button" id="viewEvents" class="btn btn-info" value="View Events" />
<a class="btn btn-info" href="/all">Export JSON</a>
<table class="article table table-bordered table-striped">
<thead>
<tr>
<td>#</td>
<td>ID</td>
<td>Category</td>
<td>Title</td>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="hide edit-article form-horizontal">
<input type='hidden' id='RowKey' />
<div class="row-fluid">
<div class="span6">
<div class="control-group">
<label class="control-label">Summary</label>
<div class="controls">
<textarea id="Summary" class="input-xxlarge" rows="10" cols="81"></textarea>
</div>
</div>
<div class="control-group">
<label class="control-label">Post</label>
<div class="controls">
<textarea id="Post" class="input-xxlarge" rows="10" cols="81"></textarea>
</div>
</div>
</div>
<div class="span4">
<div class="control-group">
<label class="control-label"> CategoryType </label>
<div class="controls">
<input id="CategoryType" type="text">
</div>
</div>
<div class="control-group">
<label class="control-label">DateOfArticle </label>
<div class="controls">
<input id="DateOfArticle" type="date">
</div>
</div>
<div class="control-group">
<label class="control-label">Title </label>
<div class="controls">
<input id="Title" type="text">
</div>
</div>
<div class="control-group">
<label class="control-label"> Author </label>
<div class="controls">
<input id="Author" type="text">
</div>
</div>
<div class="control-group">
<label class="control-label">Comments Enabled?</label>
<div class="controls">
<input type="checkbox" id="isCommentEnabled">
</div>
</div>
<div class="control-group">
<label class="control-label">View Comments?</label>
<div class="controls">
<input type="button" class="btn btn-primary" id="viewComments" value="Comments">
</div>
</div>
<div class="control-group">
<div class="controls">
<input type="button" class="btn btn-success" id="submit" value="Submit">
<input type="button" class="btn btn-danger" id="cancelArticle" value="Cancel" />
</div>
</div>
</div>
</div>
</div>
<div class="hide edit-comments">
<input type="button" class="btn btn-danger" id="cancelComment" value="Cancel" />
<table class="comments table table-bordered table-striped">
<thead>
<tr>
<td>#</td>
<td>Name</td>
<td>Comment</td>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="hide view-events">
<input type="button" id="cancelEvents" class="btn btn-danger" value="Go Back To Articles" />
<input type="button" id="newEvents" class="btn btn-info" value="New Events" />
<table class="event table table-bordered table-striped">
<thead>
<tr>
<td>#</td>
<td>ID</td>
<td>Web Link</td>
<td>Event Date</td>
<td>Event Name</td>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="hide edit-events form-horizontal">
<input type='hidden' id='RowKey' />
<input type='hidden' id='PartitionKey' />
<div class="row-fluid">
<div class="span6">
<div class="control-group">
<label class="control-label">Web Link</label>
<div class="controls">
<textarea id="WebLink" class="input-xxlarge" rows="10" cols="81"></textarea>
</div>
</div>
<div class="control-group">
<label class="control-label">Event Name</label>
<div class="controls">
<textarea id="EventName" class="input-xxlarge" rows="10" cols="81"></textarea>
</div>
</div>
</div>
<div class="span4">
<div class="control-group">
<label class="control-label"> Event Date </label>
<div class="controls">
<input id="DateOfEvent" type="date">
</div>
</div>
<div class="control-group">
<div class="controls">
<input type="button" class="btn btn-success" id="submitEvent" value="Submit">
<input type="button" class="btn btn-danger" id="cancelEvent" value="Cancel" />
</div>
</div>
</div>
</div>
</div>
</body>
</html>