-
Notifications
You must be signed in to change notification settings - Fork 288
/
edit_article.html
executable file
·106 lines (106 loc) · 6.41 KB
/
edit_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
^tmp_admin=head^
<div class="col-md-9">
^error_success^
^tmp_admin=elements=sub_nav^
^tmp_admin=elements=tab_nav^
<form id="edit_article_form" method="post" action="^site_root^/actions/admin/content/articles/edit_article/^article_id^">
<fieldset>
<div class="tab-content">
<div class="tab-pane active" id="content">
<div class="form-group">
<label>^loc_ARTICLE_URL^</label>
<div class="input-group">
<span class="input-group-addon">/article/</span>
<input type="text" id="url" name="url" class="form-control" placeholder="^loc_CUSTOM_URL^" onkeyup="resetURLAvailability()" data-original-url="{{article.url}}" required></input>
<span class="input-group-btn">
<button id="availability_button" class="btn btn-default" type="button" onclick="validateURL()">^loc_CHECK^</button>
</span>
</div>
</div>
<div class="form-group">
<label>^loc_STANDALONE_TEMPLATE^</label>
<select id="template" name="template" class="form-control">
<option value="">^loc_THEME_DEFAULT^</option>
<option value="{{template.theme_uid}}|{{template.file}}" ng-repeat="template in templates" ng-cloak>{{template.theme_name}}: {{template.name}}</option>
</select>
</div>
<div class="form-group">
<label>^loc_HEADLINE^</label>
<input type="text" id="headline" name="headline" class="form-control"></input>
</div>
<div class="form-group">
<label>^loc_SUBHEADING^</label>
<input type="text" id="subheading" name="subheading" class="form-control"></input>
</div>
<div class="form-group">
<label>^loc_PUBLISH_DATE^</label>
<div class="input-group">
<input type="text" id="publish_date" name="publish_date" class="form-control"></input>
<span class="input-group-btn">
<button class="btn btn-default" type="button" onclick="setPublishDateToNow()">^loc_NOW^</button>
</span>
</div>
</div>
<div class="form-group">
<label>^loc_CONTENT^ <span id="column_inches"></span></label>
^tmp_admin=elements=content_layout^
</div>
</div>
<div class="tab-pane" id="media">
^tmp_admin=elements=inline_media^
</div>
<div class="tab-pane" id="sections_dnd">
^tmp_admin=elements=section_select^
</div>
<div class="tab-pane" id="topics_dnd">
^tmp_admin=elements=topic_select^
</div>
<div class="tab-pane" id="seo">
<div class="form-group">
<label>^loc_FOCUS_KEYWORD^</label>
<input type="text" id="focus_keyword" name="focus_keyword" class="form-control" placeholder="^loc_FOCUS_KEYWORD_PLACEHOLDER^"></input>
</div>
<div class="form-group">
<label>^loc_SEO_TITLE^</label>
<input type="text" id="seo_title" name="seo_title" class="form-control" placeholder="^loc_SEO_TITLE_PLACEHOLDER^" maxlength="70"></input>
</div>
<div class="form-group">
<label>^loc_META_DESC^</label>
<textarea id="meta_desc" name="meta_desc" class="form-control" placeholder="^loc_META_DESC_PLACEHOLDER^" maxlength="156"></textarea>
</div>
<div class="form-group">
<label>^loc_META_KEYWORDS^</label>
<input type="text" id="meta_keywords" name="meta_keywords" class="form-control" placeholder="^loc_META_KEYWORDS_PLACEHOLDER^"></input>
</div>
</div>
<a class="btn btn-default" href="/admin/content/articles">
<i class="fa fa-ban"></i> ^loc_CANCEL^
</a>
<a id="preview_button" class="btn btn-info" ng-href="javascript:previewArticle({{article.draft}})">
<i class="fa fa-eye"></i> ^loc_PREVIEW^
</a>
<a id="view_preview" ng-href="/preview/article/{{article._id}}" target="_blank" style="display:none">View Preview</a>
<div class="btn-group dropup">
<button type="button" class="btn btn-primary" onclick="checkForEditArticleSave(false)" ng-if="!article.draft">
<i class="fa fa-save"></i> ^loc_SAVE^
</button>
<button id="save_draft_button" type="button" class="btn btn-primary" onclick="checkForEditArticleSave(true)" ng-if="article.draft">
<i class="fa fa-save"></i> ^loc_SAVE_DRAFT^
</button>
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-sm fa-chevron-up"></i>
</button>
<ul class="dropdown-menu" role="menu">
<li ng-if="!article.draft"><a href="javascript:checkForEditArticleSave(true)">^loc_SAVE_DRAFT^</a></li>
<li ng-if="article.draft"><a href="javascript:checkForEditArticleSave(false)">^loc_SAVE^</a></li>
</ul>
</div>
<div class="spacer"></div>
<label id="draft_info" ng-style="{'display': (article.draft) ? 'block' : 'none'}">^loc_DRAFT_SAVED^ <span id="draft_time">{{article.last_modified | date: 'yyyy-MM-dd HH:mm'}}</span></label>
</div>
<div class="additions" style="display: none"></div>
</fieldset>
</form>
</div>
<script type="text/javascript" src="/js/admin/content/articles/edit_article.js"></script>
^tmp_admin=footer^