]>
Commit | Line | Data |
---|---|---|
1d54e7e7 | 1 | <:wrap admin/base.tmpl title=>"Manage Sections", js => "admin_edit.js":> |
daee3409 | 2 | <h1>Manage Sections</h1> |
c0bf9781 | 3 | <:.call "messages" -:> |
76c6b28e | 4 | <:include admin/include/site_menu.tmpl:> |
abf5bbc6 TC |
5 | <:if Or [iadminuser_count] [iadmingroup_count]:> |
6 | <form action="/cgi-bin/admin/adminusers.pl"> | |
8a3b8db8 TC |
7 | <input type="hidden" name="id" value="<: article id:>" /> |
8 | <table> | |
abf5bbc6 | 9 | <tr> |
8a3b8db8 TC |
10 | <th>Manage access:</th> |
11 | <td> | |
abf5bbc6 TC |
12 | <select name=adminid> |
13 | <:iterator begin adminusers:> | |
14 | <option value=<:iadminuser id:>>User <:iadminuser logon:> | |
15 | <:iterator end adminusers:> | |
16 | <:iterator begin admingroups:> | |
17 | <option value=<:iadmingroup id:>>Group <:iadmingroup name:> | |
18 | <:iterator end admingroups:> | |
19 | </select> | |
8a3b8db8 | 20 | <input type=submit name="a_showobjectart" value="Manage" /> |
abf5bbc6 | 21 | </td> |
8a3b8db8 | 22 | <td class="help"><:help access manage:></td> |
abf5bbc6 TC |
23 | </tr> |
24 | </table> | |
abf5bbc6 | 25 | </form> |
8a3b8db8 | 26 | <br /> |
abf5bbc6 | 27 | <:or Or:><:eif Or:> |
9168c88c | 28 | |
1d54e7e7 | 29 | <div id="id" style="display: none"><:article id:></div> |
264b1f60 | 30 | <:if Children:> <a name="children"></a> |
1d54e7e7 | 31 | <table class="editform children" id="children"> |
8a3b8db8 TC |
32 | <tr> |
33 | <th class="col_title">Title</th> | |
34 | <th class="col_summary">Summary</th> | |
35 | <th class="col_listed">Listed</th> | |
36 | <th class="col_modify">Modify</th> | |
37 | <th class="col_move">Move</th> | |
27feb834 | 38 | </tr> |
abf5bbc6 | 39 | <:if UserCan edit_reorder_children:> |
9fae8be7 | 40 | <tr> |
be3531b8 TC |
41 | <td colspan="5">Sort by: |
42 | <a href="/cgi-bin/admin/reorder.pl?parentid=<:article id:>&sort=title&refreshto=/cgi-bin/admin/add.pl?id=<:article id:>" data-sort="title">title</a> | | |
43 | <a href="/cgi-bin/admin/reorder.pl?parentid=<:article id:>&sort=date&refreshto=/cgi-bin/admin/add.pl?id=<:article id:>" data-sort="date">date</a> | | |
44 | <a href="/cgi-bin/admin/reorder.pl?parentid=<:article id:>&reverse=1&refreshto=/cgi-bin/admin/add.pl?id=<:article id:>" data-reverse="1">reverse</a> | | |
45 | <a href="/cgi-bin/admin/reorder.pl?parentid=<:article id:>&sort=shuffle&refreshto=/cgi-bin/admin/add.pl?id=<:article id:>" data-shuffle="1">shuffle</a></td> | |
9fae8be7 | 46 | </tr> |
abf5bbc6 | 47 | <:or UserCan:><:eif UserCan:> |
9fae8be7 | 48 | <:iterator begin children:> |
1d54e7e7 | 49 | <tr id="child<: child id :>"> |
8a3b8db8 TC |
50 | <td class="col_title"><a href="<:child admin:>"><:child title:></a></td> |
51 | <td class="col_summary"><: summary child body :></td> | |
52 | <td class="col_listed"><: is child listed :></td> | |
53 | <td class="col_modify"> <a href="/cgi-bin/admin/add.pl?id=<:child id:>">Edit</a> | |
aa6896b6 | 54 | <: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 Section')">Delete</a> <:or UserCan:><:eif UserCan:></td> |
8a3b8db8 | 55 | <td class="col_move"><:movechild:></td> |
9fae8be7 TC |
56 | </tr> |
57 | <:iterator separator children:> <:iterator end children:> | |
58 | </table> | |
264b1f60 TC |
59 | <:or Children:> |
60 | <:eif Children:> | |
f5d30ab9 | 61 | <:if HaveChildType:> |
918735d1 TC |
62 | <:if New:> |
63 | <:or New:> | |
d09682dd TC |
64 | <form action="/cgi-bin/admin/add.pl" method="post"> |
65 | <input type="hidden" name="parentid" value="<:article id:>" /> | |
66 | <p><input type="submit" value="Add <:childtype:>" /></p> | |
f5d30ab9 | 67 | </form> |
d09682dd | 68 | <:eif New:> <:or HaveChildType:> <:eif HaveChildType:> |