{*
 * Copyright (c) 2004-2015 OIC Group, Inc.
 *
 * 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="manage-files" corecss="button"}

{/css}

<div class="module migration manage-files">
 	{*<a class="{button_style}" href="{link module=migration action=manage_content}"><strong>{'Skip to Next Step -> Migrate Content'|gettext}</strong></a>*}
    {icon button=true module=migration action=manage_content text='Skip to Next Step -> Migrate Content'|gettext}
    {br}{br}<hr />
    <div class="info-header">
        <div class="related-actions">
			{help text="Get Help with"|gettext|cat:" "|cat:("Migrating Files"|gettext) module="migrate-files"}
        </div>
		<h2>{"Migrate Files"|gettext}</h2>
        <blockquote>
            {'This copies the list of files found in the database'|gettext} ({$config.database}).&#160;&#160;
            {'Note: this only properly copied over the records from the old database into the Exponent v2 database.'|gettext}&#160;&#160;
            {'Make sure you manually copy the \'files\' directory over to this installation.'|gettext}
            <span class="warning">
                {br}{'WARNING: This process will wipe out all current file records in the database'|gettext}.
            </span>
        </blockquote>
    </div>

    <h3>{if $count > 0}{$count}{else}{'No'|gettext}{/if} {'files found in the database'|gettext} '{$config.database}'</h3>
    {br}<a class="{button_style}" href="{link module=migration action=migrate_files}"><strong>{'Migrate Files'|gettext}</strong></a>{br}
</div>