Commit | Line | Data |
---|---|---|
76c6b28e | 1 | <:wrap admin/base.tmpl title=>[cond [ifNew] [cat "New " [articleType]] [cat "Edit " [articleType] ": " [article title]]], js => "admin_edit.js":> |
d09682dd | 2 | <h1><:ifNew:>New<:or:>Edit<:eif:> <:articleType:></h1> |
6a5227d4 TC |
3 | <:if Message:> |
4 | <div id="message" <:ifError:>class="error"<:or:><:eif:>><:message:></div> | |
5 | <:or Message:><:eif Message:> | |
5f1832bb | 6 | <:include admin/include/article_menu.tmpl:> |
f5d30ab9 TC |
7 | |
8 | <h2><:articleType:> Details</h2> | |
9 | ||
8b0b2f34 TC |
10 | <p>Path: / <a href="<:script:>?id=-1">(Sections)</a> <:iterator begin crumbs:>/ <a href="<:script:>?id=<:crumb id:>"><:crumb title |h:></a> <:iterator end crumbs:>/</p> |
11 | ||
918735d1 | 12 | <:ifNew:><:or:> |
abf5bbc6 | 13 | <:if Or [iadminuser_count] [iadmingroup_count]:> |
de30d08a | 14 | <form action="/cgi-bin/admin/adminusers.pl" name="access"> |
12bcb7ac | 15 | <input type="hidden" name="id" value="<: article id:>" /> |
58baa27b | 16 | <table class="editform editformtiny"> |
abf5bbc6 | 17 | <tr> |
58baa27b TC |
18 | <th>Manage access: </th> |
19 | <td> | |
12bcb7ac | 20 | <select name="adminid"> |
08123550 | 21 | <:iterator begin adminusers:> |
12bcb7ac TC |
22 | <option value="<:iadminuser id:>">User <:iadminuser logon:> |
23 | </option><:iterator end adminusers:> | |
08123550 | 24 | <:iterator begin admingroups:> |
12bcb7ac TC |
25 | <option value="<:iadmingroup id:>">Group <:iadmingroup name:> |
26 | </option><:iterator end admingroups:> | |
abf5bbc6 | 27 | </select> |
12bcb7ac | 28 | <input type="submit" name="a_showobjectart" value="Manage" /> |
abf5bbc6 | 29 | </td> |
58baa27b | 30 | <td class="help"><:help access manage:> |
abf5bbc6 TC |
31 | </td> |
32 | </tr> | |
33 | </table> | |
abf5bbc6 | 34 | </form> |
61e75480 | 35 | <br /> |
abf5bbc6 TC |
36 | <:or Or:><:eif Or:> |
37 | <:eif:> | |
de30d08a | 38 | <form enctype="multipart/form-data" method="post" action="<:script:>" name="edit"> |
dded3231 | 39 | |
76c6b28e | 40 | <input type="hidden" name="lastModified" value="<:article lastModified :>" /> |
12b42a0b | 41 | <input type="hidden" name="type" value="Article" /> |
d09682dd TC |
42 | <input type="hidden" name="level" value="<: level :>" /> |
43 | <input type="hidden" name="id" value="<: article id :>" /> | |
aa6896b6 | 44 | <:ifNew:><:csrfp admin_add_article hidden:><:or:><:csrfp admin_save_article hidden:><:eif:> |
58baa27b | 45 | <table class="editform"> |
80e6a095 | 46 | <tr> |
58baa27b TC |
47 | <th>Parent:</th> |
48 | <td> | |
abf5bbc6 | 49 | <:if FieldPerm parentid:><select name="parentid"> |
d09682dd | 50 | <option value="">Please select a <:parentType:></option><: list:> |
abf5bbc6 | 51 | </select><:or FieldPerm:><:parent title:> (<:parent id:>)<:eif FieldPerm:> |
80e6a095 | 52 | </td> |
58baa27b | 53 | <td class="help"><:help edit section:> <:error_img parentid:></td> |
80e6a095 | 54 | </tr> |
f5d30ab9 | 55 | <tr> |
58baa27b TC |
56 | <th>Title:</th> |
57 | <td> | |
deae2a52 | 58 | <:ifFieldPerm title:><input type="text" name="title" maxlength="<:cfg fields title_size 255:>" size="64" value="<: old title default title :>" /> |
429e9103 | 59 | <:or:><:default title:><:eif:></td> |
58baa27b | 60 | <td class="help"><:help edit title:> <:error_img title:></td> |
f5d30ab9 | 61 | </tr> |
aef5bada | 62 | <:if Cfg "title alias" [concatenate level [article level]]:><tr> |
58baa27b TC |
63 | <th>Alias:</th> |
64 | <td> | |
aef5bada AO |
65 | <:if FieldPerm titleAlias:><input type="text" name="titleAlias" maxlength="<:cfg fields alias_size 60:>" size="60" value="<:old titleAlias article titleAlias:>" /><:or FieldPerm:><:article titleAlias:><:eif FieldPerm:> |
66 | </td> | |
58baa27b | 67 | <td class="help"><:help edit titleAlias:> <:error_img titleAlias:></td> |
aef5bada | 68 | </tr><:or Cfg:><:eif Cfg:> |
74b21f6d | 69 | <tr> |
58baa27b | 70 | <th>Summary: |
74b21f6d | 71 | </th> |
58baa27b | 72 | <td> |
74b21f6d TC |
73 | <:ifFieldPerm summary:><input type="text" name="summary" maxlength="<:cfg fields summary_size 255:>" size="64" value="<: old summary default summary :>" /> |
74 | <:or:><:default summary:><:eif:></td> | |
58baa27b | 75 | <td class="help"><:help edit summary:> <:error_img summary:></td> |
74b21f6d | 76 | </tr> |
759c295d | 77 | <:if Cfg image title:><tr> |
58baa27b TC |
78 | <th>Title image:</th> |
79 | <td><:ifFieldPerm titleImage:><:titleImages:> (upload this to | |
abf5bbc6 | 80 | the /images/titles directory)<:or:><:article titleImage:><:eif:></td> |
58baa27b | 81 | <td class="help"><:help edit titleImage:> <:error_img titleImage:></td> |
759c295d | 82 | </tr><:or Cfg:><:eif Cfg:> |
f5d30ab9 | 83 | <tr> |
58baa27b TC |
84 | <th> Body: </th> |
85 | <td> | |
61e75480 | 86 | <:if FieldPerm body:><textarea name="body" rows="10" cols="60"><: old body default body :></textarea> |
d09682dd | 87 | <:or FieldPerm:><:bodytext article body:><:eif FieldPerm:> |
f5d30ab9 | 88 | </td> |
58baa27b | 89 | <td class="help"><:help body body:> <:error_img body:></td> |
f5d30ab9 | 90 | </tr> |
0a66f55c | 91 | <:if Cfgsection [concatenate level [article level] " menus"]:><tr> |
58baa27b TC |
92 | <th>Menu:</th> |
93 | <td> | |
aef5bada | 94 | <:if FieldPerm menu:><select name="menu" id="menu"> |
0a66f55c AO |
95 | <:iterator begin cfgsection [concatenate level [article level] " menus"] sort=key:><option value="<:cfgentry key:>"<:if Eq [old menu] [cfgentry key]:> selected="selected"<:or Eq:><:eif Eq:>><:cfgentry value:></option><:iterator separator cfgsection:> |
96 | <:iterator end cfgsection:> | |
aef5bada | 97 | </select><:or FieldPerm:><:article menu:><:eif FieldPerm:> |
0a66f55c | 98 | </td> |
58baa27b | 99 | <td class="help"><:help article menu:> <:error_img menu:></td> |
0a66f55c | 100 | </tr><:or Cfgsection:><:eif Cfgsection:> |
f5d30ab9 | 101 | <tr> |
58baa27b TC |
102 | <th>Template:</th> |
103 | <td><:ifFieldPerm template:> <:templates:><:or:><:article template:><:eif:> </td> | |
104 | <td class="help"><:help edit template:> <:error_img template:></td> | |
759c295d TC |
105 | </tr> |
106 | <tr> | |
58baa27b TC |
107 | <th>List article:</th> |
108 | <td> <:if FieldPerm listed:><:list listed:><:or FieldPerm:><:if Article listed:><:ifEq [article listed] "1":>Yes<:or:>In Sections, but not menu<:eif:><:or Article:>No<:eif Article:><:eif FieldPerm:> </td> | |
109 | <td class="help"><:help edit listed:> <:error_img listed:></td> | |
c76e86ea TC |
110 | </tr> |
111 | <tr> | |
58baa27b TC |
112 | <th>Link alias:</th> |
113 | <td> | |
61e75480 | 114 | <:ifFieldPerm linkAlias:><input type="text" name="linkAlias" maxlength="<:cfg fields linkAlias_size 255:>" size="40" value="<: old linkAlias article linkAlias :>" /> |
c76e86ea | 115 | <:or:><:default linkAlias:><:eif:></td> |
58baa27b | 116 | <td class="help"><:help edit linkAlias:> <:error_img linkAlias:></td> |
759c295d TC |
117 | </tr> |
118 | <tr> | |
58baa27b TC |
119 | <th>Flags:</th> |
120 | <td><:iterator begin flags:><:if FieldPerm flags:> | |
d09682dd TC |
121 | <input type="checkbox" name="flags" value="<:flag id:>" <:ifFlagSet [flag id]:>checked<:or:> |
122 | <:eif:> /><:or FieldPerm:><:ifFlagSet [flag id]:>Yes<:or:>No<:eif:> | |
cc9019d1 | 123 | <:eif FieldPerm:><:flag desc:><:iterator separator flags:><br /><:iterator end flags:></td> |
58baa27b | 124 | <td class="help"><:help edit flags:> <:error_img flags:></td> |
9604a90c TC |
125 | </tr> |
126 | <tr> | |
58baa27b TC |
127 | <th>Page title:</th> |
128 | <td> | |
12bcb7ac | 129 | <:ifFieldPerm pageTitle:><input type="text" name="pageTitle" value='<:old pageTitle article pageTitle:>' size="60" maxlength="255" /> (alternate title)<:or:><:article pageTitle:><:eif:> |
9604a90c | 130 | </td> |
58baa27b | 131 | <td class="help"><:help edit pageTitle:> <:error_img pageTitle:></td> |
9604a90c TC |
132 | </tr> |
133 | <tr> | |
58baa27b TC |
134 | <th>Meta description:</th> |
135 | <td> | |
12bcb7ac TC |
136 | <:ifFieldPerm metaDescription:><input type="text" name="metaDescription" value='<:old metaDescription article metaDescription:>' size="60" maxlength="255" /><:or:><:article metaDescription:><:eif:> |
137 | </td> | |
58baa27b | 138 | <td class="help"><:help edit metaDescription:> <:error_img metaDescription:></td> |
12bcb7ac TC |
139 | </tr> |
140 | <tr> | |
58baa27b TC |
141 | <th>Meta keywords:</th> |
142 | <td> | |
12bcb7ac TC |
143 | <:ifFieldPerm metaKeywords:><input type="text" name="metaKeywords" value='<:old metaKeywords article metaKeywords:>' size="60" maxlength="255" /> (comma separated)<:or:><:article metaKeywords:><:eif:> |
144 | </td> | |
58baa27b | 145 | <td class="help"><:help edit metaKeywords:> <:error_img metaKeywords:></td> |
12bcb7ac TC |
146 | </tr> |
147 | <tr> | |
58baa27b TC |
148 | <th>Author name:</th> |
149 | <td> | |
12bcb7ac | 150 | <:if FieldPerm author:><input type="text" name="author" value='<:ifCfg editor auto_author:><:old author adminuser name:><:or:><:old author:><:eif:>' size="40" maxlength="255" /><:or FieldPerm:><:article author:><:eif FieldPerm:> |
9604a90c | 151 | </td> |
58baa27b | 152 | <td class="help"><:help edit author:> <:error_img author:></td> |
759c295d TC |
153 | </tr> |
154 | <tr> | |
58baa27b TC |
155 | <th>Release date:</th> |
156 | <td> | |
deae2a52 | 157 | <:if FieldPerm release:><input type="text" name="release" value="<: old release date "%d/%m/%Y" default release :>" size="10" maxlength="10" /> |
918735d1 | 158 | (dd/mm/yyyy<: ifNew :> - default is today<: or :><: eif :>)<:or FieldPerm:><: date "%d/%m/%Y" article release :><:eif FieldPerm:></td> |
58baa27b | 159 | <td class="help"><:help edit release:> <:error_img release:></td> |
f5d30ab9 TC |
160 | </tr> |
161 | <tr> | |
58baa27b TC |
162 | <th>Expiry date:</th> |
163 | <td> | |
deae2a52 | 164 | <:if FieldPerm expire:><input type="text" name="expire" value="<: old expire date "%d/%m/%Y" default expire :>" size="10" maxlength="10" /> |
918735d1 | 165 | (dd/mm/yyyy - <: ifNew :>default is never, <: or :><: eif :>blank |
abf5bbc6 | 166 | for never expires)<:or FieldPerm:><: date "%d/%m/%Y" article expire :><:eif FieldPerm:></td> |
58baa27b | 167 | <td class="help"><:help edit expire:> <:error_img expire:></td> |
f5d30ab9 TC |
168 | </tr> |
169 | <tr> | |
58baa27b TC |
170 | <th>Summary length:</th> |
171 | <td> | |
deae2a52 | 172 | <:if FieldPerm summaryLength:><input type="text" name="summaryLength" size="10" maxlength="10" value="<: old summaryLength default summaryLength :>" /> |
918735d1 | 173 | (in characters - <: ifNew :>default inherited from <:parentType:>, <: or :><: eif :> |
abf5bbc6 | 174 | zero for no summary)<:or FieldPerm:><: article summaryLength :><:eif FieldPerm:></td> |
58baa27b | 175 | <td class="help"><:help edit summary:> <:error_img summaryLength:></td> |
f5d30ab9 TC |
176 | </tr> |
177 | <tr> | |
58baa27b TC |
178 | <th>Display threshold:</th> |
179 | <td> | |
deae2a52 | 180 | <:ifFieldPerm threshold:><input type="text" name="threshold" size="10" maxlength="10" value="<: old threshold default threshold :>" /><:or:><: article threshold :><:eif:> |
f5d30ab9 | 181 | </td> |
58baa27b | 182 | <td class="help"><:help edit threshold:> <:error_img threshold:></td> |
f5d30ab9 | 183 | </tr> |
76c6b28e | 184 | <:include admin/include/edit_common.tmpl:> |
d64413ee | 185 | <:include admin/article_custom.tmpl optional:> |
59fca225 | 186 | <:include admin/include/article_cfg_custom.tmpl:> |
f5d30ab9 | 187 | <tr> |
58baa27b TC |
188 | <th>Thumbnail image:</th> |
189 | <td> | |
429e9103 | 190 | <:ifFieldPerm thumbImage:> |
d09682dd | 191 | <input type="file" name="thumbnail" /><:or:><:eif:> |
27feb834 | 192 | <:ifArticle thumbImage:><img src="/images/<:article thumbImage:>"> |
12bcb7ac | 193 | <:if FieldPerm thumbImage:><input type="checkbox" name="remove_thumb" /> |
429e9103 | 194 | Remove<:or FieldPerm:><:eif FieldPerm:><:or:><:eif:></td> |
58baa27b | 195 | <td class="help"><:help edit thumb:> <:error_img |
429e9103 | 196 | thumbImage:></td> |
f5d30ab9 | 197 | </tr> |
27feb834 TC |
198 | <:if Article id:> |
199 | <tr> | |
58baa27b TC |
200 | <th><a name="files"></a>Files:</th> |
201 | <td> <:if Files:> | |
202 | <table class="editform"> | |
27feb834 TC |
203 | <tr bgcolor="#FFFFFF"> |
204 | <th>Filename</th> | |
205 | <th>Size</th> | |
206 | <th>Type</th> | |
35c0719f TC |
207 | <th>D/l</th> |
208 | <th>Pay</th> | |
209 | <th>User</th> | |
210 | </tr> | |
211 | <:iterator begin files:> | |
27feb834 TC |
212 | <tr bgcolor="#FFFFFF"> |
213 | <td><:file displayName:></td> | |
35c0719f | 214 | <td align="center"><:kb file sizeInBytes:></td> |
27feb834 | 215 | <td><:file contentType:></td> |
12bcb7ac TC |
216 | <td align="center"><:ifFile download:>Yes<:or:>No<:eif:></td> |
217 | <td align="center"><:ifFile forSale:>Yes<:or:>No<:eif:></td> | |
218 | <td align="center"><:ifFile requireUser:>Yes<:or:>No<:eif:></td> | |
35c0719f TC |
219 | </tr> |
220 | <:iterator end files:> | |
221 | </table> | |
58baa27b TC |
222 | <div><a href="<:script:>?id=<:article id:>&_t=file"><b>Manage Files</b></a> |
223 | </div> | |
caa7299c | 224 | <:or Files:> |
58baa27b | 225 | <div>No files are attached to this article. <a href="<:script:>?id=<:article id:>&_t=file"><b>Manage Files</b></a></div> |
abf5bbc6 | 226 | <:eif Files:> |
4afdbb1b | 227 | </td> |
58baa27b | 228 | <td class="help"><:help edit files:> <:error_img |
429e9103 | 229 | files:></td> |
4afdbb1b | 230 | </tr> |
f5d30ab9 | 231 | <tr> |
58baa27b | 232 | <th>Images: |
9fae8be7 | 233 | </th> |
0da5d199 | 234 | <td id="images"><:if Images:> <:iterator begin |
8a3b8db8 | 235 | images:> <img src="/images/<: image image :>" alt="<:image alt :>" width="<:image width:>" height="<:image height:>" /> <:iterator separator images:> |
f5d30ab9 | 236 | <hr noshade size="1"> |
15fb10f2 | 237 | <: iterator end images :> |
8a3b8db8 | 238 | <p align="left"><a href="<:script:>?id=<:article id:>&_t=img">Manage Images</a></p> |
abf5bbc6 | 239 | <:or Images:> |
8a3b8db8 | 240 | No images are attached to this article. <a href="<:script:>?id=<:article id:>&_t=img">Manage Images</a> |
abf5bbc6 | 241 | <:eif Images:> |
55753022 | 242 | </td> |
58baa27b | 243 | <td class="help"><:help edit images:> <:error_img |
429e9103 | 244 | images:></td> |
35c0719f | 245 | </tr> |
ca9aa2bf | 246 | <:or Article:><:eif Article:> |
f5d30ab9 | 247 | </table> |
f5d30ab9 | 248 | |
918735d1 | 249 | <p><: ifNew :> |
12bcb7ac | 250 | <input type="submit" name="save" value="Add New <: articleType:>" /> |
abf5bbc6 | 251 | <:or:> |
12bcb7ac | 252 | <:if UserCan edit_save:article:><input type="submit" name="save" value="Update <: articleType:>" /><:or UserCan:><:eif UserCan:> |
abf5bbc6 | 253 | <:eif:></p> |
f5d30ab9 | 254 | </form> |
264b1f60 | 255 | <:if Children:> <:ifEq [article id] [cfg articles shop]:> |
35c0719f TC |
256 | <h2>Catalogs</h2> |
257 | <:or:> | |
258 | <h2><: childtype :></h2> | |
259 | <:eif:><a name="children"></a> | |
e31d2139 TC |
260 | <table class="editform"> |
261 | <tr> | |
9fae8be7 TC |
262 | <th width="30%">Title</th> |
263 | <th width="70%">Summary</th> | |
1d8d4a4a | 264 | <th>Listed</th> |
d09682dd TC |
265 | <th nowrap="nowrap">Modify</th> |
266 | <th nowrap="nowrap">Move</th> | |
1d8d4a4a | 267 | </tr> |
1df3b258 | 268 | <:if UserCan edit_reorder_children:article:> |
1d8d4a4a | 269 | <tr> |
d09682dd | 270 | <td colspan="5" bgcolor="#FFFFFF">Sort by: <a href="/cgi-bin/admin/reorder.pl?parentid=<:article id:>&sort=title&refreshto=/cgi-bin/admin/add.pl?id=<:article id:>">title</a> | <a href="/cgi-bin/admin/reorder.pl?parentid=<:article id:>&sort=date&refreshto=/cgi-bin/admin/add.pl?id=<:article id:>">date</a> | <a href="/cgi-bin/admin/reorder.pl?parentid=<:article id:>&reverse=1&refreshto=/cgi-bin/admin/add.pl?id=<:article id:>">reverse</a></td> |
1d8d4a4a | 271 | </tr> |
abf5bbc6 | 272 | <:or UserCan:><:eif UserCan:> |
1d8d4a4a | 273 | <:iterator begin children:> |
f5d30ab9 | 274 | <tr bgcolor="#FFFFFF"> |
9fae8be7 TC |
275 | <td width="30%"><a href="<:child admin:>"><:child title:></a></td> |
276 | <td width="70%"><: summary child body :></td> | |
f5d30ab9 | 277 | <td align="center"><: is child listed :></td> |
d09682dd | 278 | <td nowrap="nowrap"> <a href="/cgi-bin/admin/add.pl?id=<:child id:>">Edit</a> |
e31d2139 | 279 | <:if UserCan edit_delete_article:child:><a href="/cgi-bin/admin/add.pl?id=<:child id:>&remove=1&_csrfp=<:csrfp admin_remove_article:>" onclick="return window.confirm('Are you sure you want to delete this <:ifEq [article id] 3:>Catalog<:or:><: childtype :><:eif:>')">Delete</a><:or UserCan:><:eif UserCan:></td> |
d09682dd | 280 | <td nowrap="nowrap"><:movechild:></td> |
99ef7979 TC |
281 | </tr> |
282 | <:iterator separator children:> <:iterator end children:> | |
283 | </table> | |
264b1f60 TC |
284 | <:or Children:> |
285 | <:eif Children:> | |
f5d30ab9 | 286 | <:if HaveChildType:> |
918735d1 TC |
287 | <:if New:> |
288 | <:or New:> | |
61e75480 | 289 | <:if UserCan edit_add_child:article:><form action="/cgi-bin/admin/add.pl" name="addchild"> |
d09682dd | 290 | <input type="hidden" name="parentid" value="<:article id:>" /> |
35c0719f | 291 | <p> |
d09682dd | 292 | <input type="submit" value="Add <:ifEq [article id] [cfg articles shop]:>Catalog<:or:><: childtype :><:eif:>" /> |
35c0719f | 293 | </p> |
abf5bbc6 | 294 | </form><:or UserCan:><:eif UserCan:> |
918735d1 | 295 | <:eif New:> <:or HaveChildType:> <:eif HaveChildType:> |