-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpixnet_new_article.html
323 lines (282 loc) · 14.2 KB
/
pixnet_new_article.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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
<html ng-app="pixnetApp">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<title>Pixnet new article</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.3/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.14.30/js/bootstrap-datetimepicker.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<script src="js/editor.js"></script>
<script type="text/javascript" src="js/controller.js"></script>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
<link href="http://netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.14.30/css/bootstrap-datetimepicker.min.css">
<link href="css/editor.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript">
$(document).ready( function() {
$("#body").Editor();
$("#group_buying_description").Editor();
});
</script>
</head>
<body ng-controller="NewArticleCtrl">
<div class="container-fluid" style="background-image: url('halftone.png');">
<div class="col-md-2"></div>
<div class="col-md-8">
<form role="form" ng-submit="submit()">
<div class="form-group">
<label for="public_at">
Publish Date
</label>
<input class="form-control" id="public_at" type="text">
<button type="button" class="btn btn-default" onclick="currentTime()">
Current Time
</button>
<script type="text/javascript">
$(function () {
$('#public_at').datetimepicker({
format: "YYYY-MM-DD HH:mm:ss"
});
});
var currentTime = function(){
var current = moment().format("YYYY-MM-DD HH:mm:ss");
$('#public_at').val(current);
}
</script>
</div>
<div class="form-group">
<label for="title">
Subject
</label>
<input class="form-control" id="title" type="text">
</div>
<div class="form-group">
<label for="body">Group Buying description:</label>
<textarea class="form-control" id="body"></textarea>
</div>
<!--
<div class="form-group">
<label for="cover">
Article Address
</label>
<input class="form-control" id="cover" type="text">
</div>
-->
<!-- https://emma.pixnet.cc/blog/suggested_tags -->
<div class="form-group">
<label for="tags">
Article Tag
</label>
<input class="form-control" id="tags" type="text">
</div>
<div class="panel-group" id="panel-374693">
<div class="panel panel-default">
<div class="panel-heading">
<a class="panel-title collapsed" data-toggle="collapse" data-parent="#panel-374693" href="#panel-element-968436">Article Category</a>
</div>
<div id="panel-element-968436" class="panel-collapse collapse">
<div class="panel-body">
<!-- https://developer.pixnet.pro/#!/doc/pixnetApi/blogCategories -->
<div class="form-group">
<label for="category_id">
Personal Category
</label>
<select class="dropdown form-control" id="category_id" ng-model="category_id">
<option ng-repeat="item in personal_categories" ng-value="item.id" ng-bind="item.name">1</option>
<!-- <option ng-repeat="single in item.child_categories" ng-value="single.id" ng-bind="single.name" ng-show="single.type === 'category'"></option> -->
</select>
</div>
<div class="form-group" ng-if="personal_child_categories.length > 0">
<select class="dropdown form-control" id="child_category_id">
<option ng-repeat="item in personal_child_categories" ng-value="item.id" ng-bind="item.name">1</option>
<!-- <option ng-repeat="single in item.child_categories" ng-value="single.id" ng-bind="single.name" ng-show="single.type === 'category'"></option> -->
</select>
</div>
<!-- https://emma.pixnet.cc/blog/site_categories/blog -->
<div class="form-group">
<label for="site_category_id">
Site Category
</label>
<select class="dropdown form-control" id="site_category_id">
<option ng-repeat="item in site_categories" ng-value="item.id" ng-bind="item.name">1</option>
</select>
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<label for="status">
View Permissions
</label>
<select class="dropdown form-control" id="status" ng-model="status_id">
<option ng-repeat="item in status" ng-bind="item.name" ng-value="item.id">1</option>
</select>
</div>
<div class="form-group" ng-if="status_id == 3">
<label for="password">
Password
</label>
<input class="form-control" id="password" type="text">
</div>
<div class="form-group" ng-if="status_id == 3">
<label for="password_hint">
Password Hine
</label>
<input class="form-control" id="password_hint" type="text">
</div>
<div class="form-group" ng-if="status_id == 5">
<label for="friend_group_ids">
Specific Groups of Friends
</label>
<div class="input-group">
<label class="radio-inline">
<input type="radio" name="friend_group" ng-model="is_specific_groups_of_friends" ng-value="true" checked>All friends
</label>
<label class="radio-inline">
<input type="radio" name="friend_group" ng-model="is_specific_groups_of_friends" ng-value="true">Specific Groups of Friends
</label>
</div>
<div ng-if="is_specific_groups_of_friends">
<div class="input-group">
<div class="checkbox" ng-repeat="item in specific_groups_of_friends">
<label>
<input type="checkbox" value="item.id">
<span ng-bind="item.name"></span>
</label>
</div>
</div>
</div>
</div>
<div class="panel-group" id="panel-374694">
<div class="panel panel-default">
<div class="panel-heading">
<a class="panel-title collapsed" data-toggle="collapse" data-parent="#panel-374694" href="#panel-element-968437">Comment Settings</a>
</div>
<div id="panel-element-968437" class="panel-collapse collapse">
<div class="panel-body">
<div class="form-group">
<label for="comment_perm">
Commenting
</label>
<select class="dropdown form-control" id="comment_perm">
<option ng-repeat="item in commenting" ng-bind="item.name" ng-value="item.id">1</option>
</select>
</div>
<div class="form-group">
<label for="comment_hidden">
Default Comment Status
</label>
<select class="dropdown form-control" id="comment_hidden">
<option ng-repeat="item in comment_hidden" ng-bind="item.name" ng-value="item.id">1</option>
</select>
</div>
</div>
</div>
</div>
</div>
<div class="panel-group" id="panel-374695">
<div class="panel panel-default">
<div class="panel-heading">
<a class="panel-title collapsed" data-toggle="collapse" data-parent="#panel-374695" href="#panel-element-968438">Sync To ...</a>
</div>
<div id="panel-element-968438" class="panel-collapse collapse">
<div class="panel-body">
<div class="form-group">
<label for="notify_twitter">
Synchronize to twitter
</label>
<input type="hidden" class="form-control" id="notify_twitter" type="text" hidden>
<img src="http://panel.pixfs.net/images/twitter-connect.png">
</div>
<div class="form-group">
<label for="notify_facebook">
Synchronize to facebook
</label>
<input type="hidden" class="form-control" id="notify_facebook" type="text" hidden>
<img src="http://panel.pixfs.net/images/facebook-connect.png">
</div>
<div class="form-group">
<label for="notify_plurk">
Synchronize to plurk
</label>
<input type="hidden" class="form-control" id="notify_plurk" type="text" hidden>
<img src="http://panel.pixfs.net/images/plurk-connect.png">
</div>
</div>
</div>
</div>
</div>
<div class="panel-group" id="panel-374696">
<div class="panel panel-default">
<div class="panel-heading">
<a class="panel-title collapsed" data-toggle="collapse" data-parent="#panel-374696" href="#panel-element-968439">Group Buying</a>
</div>
<div id="panel-element-968439" class="panel-collapse collapse">
<div class="panel-body">
<div class="form-group">
<label for="group_buying_category_id">
Group Buying Category
</label>
<select class="dropdown form-control" id="group_buying_category_id" ng-model="group_buying_category">
<option ng-repeat="item in group_buying_categories track by $index" ng-bind="item.category" ng-value="$index">1</option>
</select>
</div>
<div class="form-group" ng-if="group_buying_category">
<label for="product_id">
Product
</label>
<select class="dropdown form-control" id="product_id">
<option ng-repeat="item in product" ng-bind="item" ng-value="item">1</option>
</select>
</div>
<div class="form-group">
<label for="group_buying_description">Group Buying description:</label>
<textarea class="form-control" rows="5" id="group_buying_description"></textarea>
</div>
<div class="form-group">
<label for="group_buying_image">
Image
</label>
<input id="group_buying_image" type="file">
</div>
</div>
</div>
</div>
</div>
<!-- <div class="form-group">
<label for="exampleInputFile">
File input
</label>
<input id="exampleInputFile" type="file">
<p class="help-block">
Example block-level help text here.
</p>
</div>
<div class="checkbox">
<label>
<input type="checkbox"> Check me out
</label>
</div> -->
<button type="submit" class="btn btn-default">
Submit
</button>
</form>
</div>
<div class="col-md-2"></div>
</div>
<div class="container-fluid footer" style="background-image: url('halftone.png');">
<p class="pull-right">© <script>document.write(new Date().getFullYear())</script>. All rights reserved.</p>
</div>
</body>
</html>
<!--
use_nl2br
thumb
trackback
password
password_hint
friend_group_ids
-->