]> git.imager.perl.org - bse.git/blame - site/templates/admin/edit_1.tmpl
0.13_06 commit
[bse.git] / site / templates / admin / edit_1.tmpl
CommitLineData
d09682dd
TC
1<:wrap admin/xbase.tmpl title=>"Edit [articleType]":>
2<h1><:ifNew:>New<:or:>Edit<:eif:> <:articleType:></h1>
35c0719f
TC
3<:ifMessage:>
4<p><b><:message:></b></p>
918735d1
TC
5<:or:><:eif:>
6<p>| <a href="/cgi-bin/admin/menu.pl">Admin menu</a> | <:ifNew:><:or:><:if Eq
7 [article id] [cfg articles shop]:><a href="<:article admin:>">See shop</a><:or
8 Eq:><a href="<:article admin:>">See article</a><:eif Eq:> | <:eif:><:editParent:>
9 <:if Eq [article id] [cfg articles shop]:><a href="/cgi-bin/admin/shopadmin.pl">Manage
d09682dd
TC
10 catalogs</a> |<:or Eq:><:eif Eq:><:if New:><:or New:> <a href="<:script:>?id=<:article id:>&amp;_t=steps">Manage
11 step children/parents</a> | <!--//<a href="<:script:>?id=<:article id:>&amp;_t=options">Edit options</a> |//--><:eif New:></p>
f5d30ab9
TC
12
13 <h2><:articleType:> Details</h2>
14
8b0b2f34
TC
15<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>
16
918735d1 17<:ifNew:><:or:>
abf5bbc6
TC
18<:if Or [iadminuser_count] [iadmingroup_count]:>
19 <form action="/cgi-bin/admin/adminusers.pl">
d09682dd 20 <input type=hidden name=id value="<: article id:>" />
abf5bbc6
TC
21 <table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000" class="table">
22 <tr>
23 <td>
24 <table cellpadding="6" cellspacing="1" border="0" width="100%">
25 <tr>
d09682dd 26 <th nowrap="nowrap">
abf5bbc6
TC
27
28 <font size=2>Manage access:</font>
29 </th>
30 <td bgcolor="#FFFFFF">
31 <select name=adminid>
08123550
TC
32<:iterator begin adminusers:>
33<option value=<:iadminuser id:>>User <:iadminuser logon:>
34<:iterator end adminusers:>
35<:iterator begin admingroups:>
36<option value=<:iadmingroup id:>>Group <:iadmingroup name:>
37<:iterator end admingroups:>
abf5bbc6 38 </select>
d09682dd 39 <input type=submit name="a_showobjectart" value="Manage" />
abf5bbc6
TC
40 </td>
41 <td bgcolor="#FFFFFF"><:help access manage:>
42 </td>
43 </tr>
44 </table>
45 </td>
46 </tr>
47 </table>
48 </form>
49<br>
50<:or Or:><:eif Or:>
51<:eif:>
d09682dd 52 <form enctype="multipart/form-data" method="post" action="<:script:>">
dded3231 53
d09682dd
TC
54 <input type="hidden" name="level" value="<: level :>" />
55 <input type="hidden" name="id" value="<: article id :>" />
35c0719f
TC
56
57 <table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000" width="100%" class="table">
f5d30ab9
TC
58 <tr>
59 <td>
60
27feb834 61 <table cellpadding="6" border="0" cellspacing="1" width="100%">
80e6a095 62 <tr>
d09682dd 63 <th nowrap="nowrap" bgcolor="#FFFFFF" align="left">Parent:</th>
27feb834 64 <td bgcolor="#FFFFFF" width="100%">
abf5bbc6 65 <:if FieldPerm parentid:><select name="parentid">
d09682dd 66 <option value="">Please select a <:parentType:></option><: list:>
abf5bbc6 67 </select><:or FieldPerm:><:parent title:> (<:parent id:>)<:eif FieldPerm:>
80e6a095 68 </td>
d09682dd 69 <td nowrap="nowrap" bgcolor="#FFFFFF"><:help edit section:> <:error_img parentid:></td>
80e6a095 70 </tr>
f5d30ab9 71 <tr>
d09682dd 72 <th nowrap="nowrap" bgcolor="#FFFFFF" align="left">Title:
9fae8be7 73 </th>
27feb834 74 <td bgcolor="#FFFFFF" width="100%">
d09682dd 75 <:ifFieldPerm title:><input type="text" name="title" maxlength="<:cfg fields title_size 255:>" size="64" value="<: old title article title :>" />
429e9103 76 <:or:><:default title:><:eif:></td>
d09682dd 77 <td nowrap="nowrap" bgcolor="#FFFFFF"><:help edit title:> <:error_img title:></td>
f5d30ab9 78 </tr>
759c295d 79 <:if Cfg image title:><tr>
d09682dd 80 <th nowrap="nowrap" bgcolor="#FFFFFF" align="left">Title image:</th>
abf5bbc6
TC
81 <td bgcolor="#FFFFFF" width="100%"><:ifFieldPerm titleImage:><:titleImages:> (upload this to
82 the /images/titles directory)<:or:><:article titleImage:><:eif:></td>
d09682dd 83 <td nowrap="nowrap" bgcolor="#FFFFFF"><:help edit titleImage:> <:error_img titleImage:></td>
759c295d 84 </tr><:or Cfg:><:eif Cfg:>
f5d30ab9 85 <tr>
d09682dd 86 <th valign="top" nowrap="nowrap" bgcolor="#FFFFFF" align="left"> Body: </th>
27feb834 87 <td bgcolor="#FFFFFF" width="100%">
d09682dd
TC
88 <:if FieldPerm body:><textarea name="body" rows="10" cols="60" wrap="virtual"><: old body article body :></textarea>
89 <:or FieldPerm:><:bodytext article body:><:eif FieldPerm:>
f5d30ab9 90 </td>
d09682dd 91 <td valign="top" nowrap="nowrap" bgcolor="#FFFFFF"><:help body body:> <:error_img body:></td>
f5d30ab9
TC
92 </tr>
93 <tr>
d09682dd 94 <th nowrap="nowrap" bgcolor="#FFFFFF" align="left">Template:</th>
759c295d 95 <td bgcolor="#FFFFFF" width="100%"><:ifFieldPerm template:> <:templates:><:or:><:article template:><:eif:> </td>
d09682dd 96 <td nowrap="nowrap" bgcolor="#FFFFFF"><:help edit template:> <:error_img template:></td>
759c295d
TC
97 </tr>
98 <tr>
d09682dd 99 <th nowrap="nowrap" bgcolor="#FFFFFF" align="left">List article:</th>
759c295d 100 <td bgcolor="#FFFFFF" width="100%"> <: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>
d09682dd 101 <td nowrap="nowrap" bgcolor="#FFFFFF"><:help edit listed:> <:error_img listed:></td>
759c295d
TC
102 </tr>
103 <tr>
d09682dd 104 <th valign="top" nowrap="nowrap" bgcolor="#FFFFFF" align="left">Flags:</th>
759c295d 105 <td bgcolor="#FFFFFF" width="100%"><:iterator begin flags:><:if FieldPerm flags:>
d09682dd
TC
106 <input type="checkbox" name="flags" value="<:flag id:>" <:ifFlagSet [flag id]:>checked<:or:>
107 <:eif:> /><:or FieldPerm:><:ifFlagSet [flag id]:>Yes<:or:>No<:eif:>
cc9019d1 108 <:eif FieldPerm:><:flag desc:><:iterator separator flags:><br /><:iterator end flags:></td>
d09682dd 109 <td nowrap="nowrap" bgcolor="#FFFFFF"><:help edit flags:> <:error_img flags:></td>
759c295d
TC
110 </tr>
111 <tr>
d09682dd 112 <th nowrap="nowrap" bgcolor="#FFFFFF" align="left">Release date:</th>
27feb834 113 <td bgcolor="#FFFFFF" width="100%">
d09682dd 114 <:if FieldPerm release:><input type="text" name="release" value="<: old release date "%d/%m/%Y" article release :>" size="10" maxlength="10" />
918735d1 115 (dd/mm/yyyy<: ifNew :> - default is today<: or :><: eif :>)<:or FieldPerm:><: date "%d/%m/%Y" article release :><:eif FieldPerm:></td>
d09682dd 116 <td nowrap="nowrap" bgcolor="#FFFFFF"><:help edit release:> <:error_img release:></td>
f5d30ab9
TC
117 </tr>
118 <tr>
d09682dd 119 <th nowrap="nowrap" bgcolor="#FFFFFF" align="left">Expiry date:</th>
27feb834 120 <td bgcolor="#FFFFFF" width="100%">
d09682dd 121 <:if FieldPerm expire:><input type="text" name="expire" value="<: old expire date "%d/%m/%Y" article expire :>" size="10" maxlength="10" />
918735d1 122 (dd/mm/yyyy - <: ifNew :>default is never, <: or :><: eif :>blank
abf5bbc6 123 for never expires)<:or FieldPerm:><: date "%d/%m/%Y" article expire :><:eif FieldPerm:></td>
d09682dd 124 <td nowrap="nowrap" bgcolor="#FFFFFF"><:help edit expire:> <:error_img expire:></td>
f5d30ab9
TC
125 </tr>
126 <tr>
d09682dd 127 <th nowrap="nowrap" bgcolor="#FFFFFF" align="left">Summary length:</th>
27feb834 128 <td bgcolor="#FFFFFF" width="100%">
d09682dd 129 <:if FieldPerm summaryLength:><input type="text" name="summaryLength" size="10" maxlength="10" value="<: old summaryLength article summaryLength :>" />
918735d1 130 (in characters - <: ifNew :>default inherited from <:parentType:>, <: or :><: eif :>
abf5bbc6 131 zero for no summary)<:or FieldPerm:><: article summaryLength :><:eif FieldPerm:></td>
d09682dd 132 <td nowrap="nowrap" bgcolor="#FFFFFF"><:help edit summary:> <:error_img summaryLength:></td>
f5d30ab9
TC
133 </tr>
134 <tr>
d09682dd 135 <th nowrap="nowrap" bgcolor="#FFFFFF" align="left">Display threshold:</th>
27feb834 136 <td bgcolor="#FFFFFF" width="100%">
d09682dd 137 <:ifFieldPerm threshold:><input type="text" name="threshold" size="10" maxlength="10" value="<: old threshold article threshold :>" /><:or:><: article threshold :><:eif:>
f5d30ab9 138 </td>
d09682dd 139 <td nowrap="nowrap" bgcolor="#FFFFFF"><:help edit threshold:> <:error_img
429e9103 140 threshold:></td>
f5d30ab9
TC
141 </tr>
142 <tr>
d09682dd 143 <th nowrap="nowrap" bgcolor="#FFFFFF" align="left">Keywords:</th>
27feb834 144 <td bgcolor="#FFFFFF" width="100%">
d09682dd 145 <:ifFieldPerm keyword:><input type="text" name="keyword" maxlength="255" size="60" value="<: old keyword article keyword :>" />
abf5bbc6 146 (comma separated)<:or:><: article threshold :><:eif:></td>
d09682dd 147 <td nowrap="nowrap" bgcolor="#FFFFFF"><:help edit keywords:> <:error_img keyword:></td>
918735d1 148 </tr>
331fd099 149<:include admin/article_custom.tmpl:>
f5d30ab9 150 <tr>
d09682dd 151 <th nowrap="nowrap" bgcolor="#FFFFFF" align="left" valign="top">Thumbnail image:</th>
429e9103
TC
152 <td width="100%" valign="top" bgcolor="#FFFFFF">
153 <:ifFieldPerm thumbImage:>
d09682dd 154 <input type="file" name="thumbnail" /><:or:><:eif:>
27feb834 155 <:ifArticle thumbImage:><img src="/images/<:article thumbImage:>">
d09682dd 156 <:if FieldPerm thumbImage:><input type=checkbox name="remove_thumb" />
429e9103 157 Remove<:or FieldPerm:><:eif FieldPerm:><:or:><:eif:></td>
d09682dd 158 <td valign="top" nowrap="nowrap" bgcolor="#FFFFFF"><:help edit thumb:> <:error_img
429e9103 159 thumbImage:></td>
f5d30ab9 160 </tr>
27feb834
TC
161 <:if Article id:>
162 <tr>
d09682dd
TC
163 <th nowrap="nowrap" bgcolor="#FFFFFF" align="left" valign="top"><a name="files"></a>Files:</th>
164 <td nowrap="nowrap" bgcolor="#FFFFFF" width="100%"> <:if Files:>
27feb834 165 <table cellpadding="0" cellspacing="0" border="0" bgcolor="#333333">
abf5bbc6
TC
166 <tr>
167 <td>
27feb834
TC
168 <table cellpadding="5" cellspacing="1" border="0">
169 <tr bgcolor="#FFFFFF">
170 <th>Filename</th>
171 <th>Size</th>
172 <th>Type</th>
35c0719f
TC
173 <th>D/l</th>
174 <th>Pay</th>
175 <th>User</th>
176 </tr>
177 <:iterator begin files:>
27feb834
TC
178 <tr bgcolor="#FFFFFF">
179 <td><:file displayName:></td>
35c0719f 180 <td align="center"><:kb file sizeInBytes:></td>
27feb834
TC
181 <td><:file contentType:></td>
182 <td align=center><:ifFile download:>Yes<:or:>No<:eif:></td>
183 <td align=center><:ifFile forSale:>Yes<:or:>No<:eif:></td>
35c0719f
TC
184 <td align=center><:ifFile requireUser:>Yes<:or:>No<:eif:></td>
185 </tr>
186 <:iterator end files:>
187 </table>
abf5bbc6
TC
188 </td>
189 </tr>
190 </table>
d09682dd 191 <p><a href="<:script:>?id=<:article id:>&amp;_t=file"><b>Manage Files</b></a>
caa7299c
TC
192 </p>
193 <:or Files:>
d09682dd 194 <p>No files are attached to this article. <a href="<:script:>?id=<:article id:>&amp;_t=file"><b>Manage Files</b></a></p>
abf5bbc6 195 <:eif Files:>
4afdbb1b 196 </td>
d09682dd 197 <td nowrap="nowrap" bgcolor="#FFFFFF" valign="top"><:help edit files:> <:error_img
429e9103 198 files:></td>
4afdbb1b 199 </tr>
f5d30ab9 200 <tr>
d09682dd 201 <th valign="top" nowrap="nowrap" bgcolor="#FFFFFF" align="left">Images:
9fae8be7 202 </th>
15fb10f2 203 <td align="center" bgcolor="#FFFFFF" width="100%"><:if Images:> <:iterator begin
27feb834
TC
204 images:> <img src="/images/<: image image :>" alt="<:image alt :>" width=
205 <:image width:> height=<:image height:>> <:iterator separator images:>
f5d30ab9 206 <hr noshade size="1">
15fb10f2 207 <: iterator end images :>
d09682dd 208 <p align="left"><a href="<:script:>?id=<:article id:>&amp;_t=img"><b>Manage Images</b></a></p>
abf5bbc6 209 <:or Images:>
d09682dd 210 <p align="left">No images are attached to this article. <a href="<:script:>?id=<:article id:>&amp;_t=img"><b>Manage Images</b></a></p>
abf5bbc6 211 <:eif Images:>
55753022 212 </td>
d09682dd 213 <td valign="top" nowrap="nowrap" bgcolor="#FFFFFF"><:help edit images:> <:error_img
429e9103 214 images:></td>
35c0719f 215 </tr>
ca9aa2bf 216 <:or Article:><:eif Article:>
f5d30ab9
TC
217 </table>
218</td>
219</tr>
220</table>
221
918735d1 222 <p><: ifNew :>
d09682dd 223 <input type="submit" name="save" value=" Add New <: articleType:> " />
abf5bbc6 224 <:or:>
d09682dd 225 <:if UserCan edit_save:article:><input type="submit" name="save" value=" Update <: articleType:> " /><:or UserCan:><:eif UserCan:>
abf5bbc6 226 <:eif:></p>
f5d30ab9 227 </form>
918735d1 228<:if children:> <:ifEq [article id] [cfg articles shop]:>
35c0719f
TC
229<h2>Catalogs</h2>
230<:or:>
231<h2><: childtype :></h2>
232<:eif:><a name="children"></a>
233<table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000" width="100%" class="table">
27feb834 234 <tr>
f5d30ab9 235 <td>
27feb834
TC
236 <table border=0 cellpadding="6" cellspacing="1" width="100%">
237 <tr bgcolor="#FFFFFF">
9fae8be7
TC
238 <th width="30%">Title</th>
239 <th width="70%">Summary</th>
1d8d4a4a 240 <th>Listed</th>
d09682dd
TC
241 <th nowrap="nowrap">Modify</th>
242 <th nowrap="nowrap">Move</th>
1d8d4a4a 243 </tr>
1df3b258 244<:if UserCan edit_reorder_children:article:>
1d8d4a4a 245 <tr>
d09682dd 246 <td colspan="5" bgcolor="#FFFFFF">Sort by: <a href="/cgi-bin/admin/reorder.pl?parentid=<:article id:>&amp;sort=title&amp;refreshto=/cgi-bin/admin/add.pl?id=<:article id:>">title</a> | <a href="/cgi-bin/admin/reorder.pl?parentid=<:article id:>&amp;sort=date&amp;refreshto=/cgi-bin/admin/add.pl?id=<:article id:>">date</a> | <a href="/cgi-bin/admin/reorder.pl?parentid=<:article id:>&amp;reverse=1&amp;refreshto=/cgi-bin/admin/add.pl?id=<:article id:>">reverse</a></td>
1d8d4a4a 247 </tr>
abf5bbc6 248<:or UserCan:><:eif UserCan:>
1d8d4a4a 249 <:iterator begin children:>
f5d30ab9 250 <tr bgcolor="#FFFFFF">
9fae8be7
TC
251 <td width="30%"><a href="<:child admin:>"><:child title:></a></td>
252 <td width="70%"><: summary child body :></td>
f5d30ab9 253 <td align="center"><: is child listed :></td>
d09682dd
TC
254 <td nowrap="nowrap"> <a href="/cgi-bin/admin/add.pl?id=<:child id:>">Edit</a>
255 <:if UserCan edit_delete_article:child:><a href="/cgi-bin/admin/add.pl?id=<:child id:>&amp;remove=1" 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>
256 <td nowrap="nowrap"><:movechild:></td>
99ef7979
TC
257 </tr>
258 <:iterator separator children:> <:iterator end children:>
259 </table>
f5d30ab9
TC
260</td>
261</tr>
262</table>
263<:or children:>
264<:eif children:>
265<:if HaveChildType:>
918735d1
TC
266<:if New:>
267<:or New:>
1df3b258 268<:if UserCan edit_add_child:article:><form action="/cgi-bin/admin/add.pl">
d09682dd 269<input type="hidden" name="parentid" value="<:article id:>" />
35c0719f 270 <p>
d09682dd 271 <input type="submit" value="Add <:ifEq [article id] [cfg articles shop]:>Catalog<:or:><: childtype :><:eif:>" />
35c0719f 272 </p>
abf5bbc6 273</form><:or UserCan:><:eif UserCan:>
918735d1 274<:eif New:> <:or HaveChildType:> <:eif HaveChildType:>