-
Notifications
You must be signed in to change notification settings - Fork 24
/
manage_pages.tpl
55 lines (52 loc) · 1.71 KB
/
manage_pages.tpl
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
{*
* Copyright (c) 2004-2011 OIC Group, Inc.
* Written and Designed by Adam Kessler
*
* This file is part of Exponent
*
* Exponent is free software; you can redistribute
* it and/or modify it under the terms of the GNU
* General Public License as published by the Free
* Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* GPL: http://www.gnu.org/licenses/gpl.txt
*
*}
<div class="module migration manage-pages">
<h1>Migrate Pages</h1>
<p>
The following is a list of pages we found in the database {$config.database}.
Select the pages you would like to pull over from {$config.database}.
</p>
{form action="migrate_pages"}
<table class="exp-skin-table">
<thead>
<tr>
<th>Migrate</th>
<th>Name</th>
</tr>
</thead>
<tbody>
{foreach from=$pages item=page name=pages}
<tr class="{cycle values="even,odd"}">
<td>
{if ($page->exists == true)}
<em>already exists</em>
{else}
{control type="checkbox" name="pages[]" label=" " value=$page->id checked=true}
{/if}
</td>
<td>
{$page->name} {if ($page->parent == -1)}(<b><em>Standalone</em></b>){/if}
</td>
</tr>
{foreachelse}
<tr><td colspan=2>No new pages found in the database {$config.database}</td></tr>
{/foreach}
</tbody>
</table>
{control type="checkbox" name="wipe_pages" label="Erase all current pages then try again?" value=1 checked=false}
{control type="buttongroup" submit="Migrate Pages" cancel="Cancel"}
{/form}
</div>