/
manage_pages.tpl
executable file
·74 lines (70 loc) · 2.48 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{*
* 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
*
*}
{css unique="managespages" corecss="tables"}
{/css}
<div class="module migration manage-pages">
<div class="info-header">
<div class="related-actions">
{help text="Get Help"|gettext|cat:" "|cat:("Migrating Pages"|gettext) module="migrate-pages"}
</div>
<h1>{"Migrate Pages"|gettext}</h1>
</div>
<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>Replace</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>(exists)</em>
{else}
{control type="checkbox" name="pages[]" label=" " value=$page->id checked=true}
{/if}
</td>
<td>
{if ($page->exists == true)}
{control type="checkbox" name="rep_pages[]" label=" " value=$page->id checked=false}
{else}
<em>(new)</em>
{/if}
</td>
<td>
{$page->name} {if ($page->parent == -1)}(<b><em>Standalone</em></b>){/if}
</td>
</tr>
{foreachelse}
<tr><td colspan=>No new pages found in the database {$config.database}</td></tr>
{/foreach}
</tbody>
</table>
{control type="checkbox" name="copy_permissions" label="Migrate page permissions? (erases current page permissions!)" value=1 checked=false}
{control type="checkbox" name="wipe_pages" label="Erase all current pages and then try again?" value=1 checked=false}
{control type="buttongroup" submit="Migrate Pages" cancel="Cancel"}
{/form}
{br}<hr>{br}
<a class="awesome {$smarty.const.BTN_SIZE} {$smarty.const.BTN_COLOR}" href="{link module=migration action=manage_files}"><b>Next Step -> Migrate Files</b></a>
</div>