# --
# AgentStatsImport.dtl - provides HTML form for import a stat
# Copyright (C) 2001-2010 OTRS AG, http://otrs.org/
# --
# $Id: AgentStatsImport.dtl,v 1.14 2010/10/12 16:07:49 cg Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --


<div class="MainBox AriaRoleMain SpacingTopLarge">
    <div class="W50pc SpacingBottomLarge CenterBox">
        <div class="WidgetSimple">
            <div class="Header">
                <h2>$Text{"Import Stat"}</h2>
            </div>
            <div class="Content">

<!-- dtl:block:ErrorDoctype1 -->
                <p class="Error">$Text{"File is not a Stats config"}!</p>
<!-- dtl:block:ErrorDoctype1 -->
<!-- dtl:block:ErrorDoctype2 -->
                <p class="Error">$Text{"No File selected"}!</p>
<!-- dtl:block:ErrorDoctype2 -->

                <form action="$Env{"CGIHandle"}" method="post" enctype="multipart/form-data">
                    <input type="hidden" name="Action"    value="$Env{"Action"}"/>
                    <input type="hidden" name="Subaction" value="Import"/>
                    <input type="hidden" name="Status"    value="Action"/>

                    <fieldset class="TableLike">
                        <label for="file_upload">$Text{"File"}:</label>
                        <div class="Field">
                            <input name="file_upload" id="file_upload" type="file" size="30"/>
                            <input type="hidden" name="ImportType" value="Upload"/>
                        </div>
                    </fieldset>

                    <p class="Center">
                        <button class="Primary" accesskey="g" title="$Text{"Import"} (g)" type="submit" value="$Text{"Import"}">$Text{"Import"}</button>
                        <a href="$Env{"Baselink"}Action=$Env{"Action"};Subaction=Overview">$Text{"Cancel"}</a>
                    </p>
                </form>
            </div>
        </div>
    </div>
</div>