# --
# AgentStatsEditXaxis.dtl - provides HTML form for stats edit mask
# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
# --
# $Id: AgentStatsEditXaxis.dtl,v 1.32 2012/11/20 15:19:14 mh 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 LayoutFixedSidebar SidebarFirst">
    <h1>$Text{"Edit"}: $Text{"$Config{"Stats::StatsHook"}"} $QData{"StatNumber"}</h1>
    <div class="Center">
        <ul id="ProgressBar" class="ProgressBarElements4 SpacingTop SpacingBottom">
            <li class="Highlighted NoLink First">
                <span>
                    <a href="#">$Text{"Step %s", "1"}<span>$Text{"General Specifications"}</span></a>
                </span>
            </li>
            <li class="Highlighted Active NoLink">
                <span>
                    <a href="#">$Text{"Step %s", "2"}<span>$Text{"Select the element that will be used at the X-axis"}</span></a>
                </span>
            </li>
            <li>
                <span>
                    <a href="#">$Text{"Step %s", "3"}<span>$Text{"Select the elements for the value series"}</span></a>
                </span>
            </li>
            <li>
                <span>
                    <a href="#">$Text{"Step %s", "4"}<span>$Text{"Select the restrictions to characterize the stat"}</span></a>
                </span>
            </li>
        </ul>
    </div>

    <div class="SidebarColumn">
        <div class="WidgetSimple">
            <div class="Header">
                <h2>$Text{"Actions"}</h2>
            </div>
            <div class="Content">
                <ul class="ActionList">
                    <li>
                        <a href="$Env{"Baselink"}$Env{"LastStatsOverview"}" class="CallForAction"><span>$Text{"Go to overview"}</span></a>
                    </li>
                </ul>
            </div>
        </div>
        <div class="WidgetSimple">
            <div class="Header">
                <h2>$Text{"Hint"}</h2>
            </div>
            <div class="Content">
                <p>
                    $Text{"Here you can define the x-axis. You can select one element via the radio button."}
                    $Text{"If you don't select any attribute all attributes of the element will be used if you generate a stat, as well as new attributes which were added since the last configuration."}
                </p>
                <p>
                    $Text{"If you remove the hook in the "Fixed" checkbox, the agent generating the stat can change the attributes of the corresponding element."}
                </p>
            </div>
        </div>
    </div>
    <div class="ContentColumn">


        <div class="WidgetSimple">
            <div class="Header">
                <h2>$Text{"Select the element that will be used at the X-axis"} (2/4)</h2>
            </div>
            <div class="Content">

                <form action="$Env{"CGIHandle"}" method="post" enctype="multipart/form-data" name="compose">
                    <input type="hidden" name="Action" value="$Env{"Action"}"/>
                    <input type="hidden" name="Subaction" value="Action"/>
                    <input type="hidden" name="Home" value="EditXaxis"/>
                    <input type="hidden" name="StatID" value="$QData{"StatID"}"/>

                    <fieldset class="TableLike">

<!-- dtl:block:Attribute -->
<!-- dtl:block:MultiSelectField -->
                        <label>
                            <input type="radio" name="Select" value="$QData{"Element"}" $Data{"Checked"}/>
                            $Text{"$Data{"Name"}"}:
                        </label>
                        <div class="Field">
                            <div>
                                $Data{"SelectField"}
                            </div>
                            <div>
                                <input type="checkbox" name="Fixed$QData{"Element"}" id="Fixed$QData{"Element"}" value="1" $Data{"Fixed"} />
                                <label for="Fixed$QData{"Element"}">$Text{"Fixed"}</label>
                            </div>
                        </div>
                        <div class="Clear"></div>
<!-- dtl:block:MultiSelectField -->
<!-- dtl:block:TimeExtended -->
                        <label>
                            <input type="radio" name="Select" value="$QData{"Element"}" $Data{"Checked"}/>
                            $Text{"$Data{"Name"}"}:
                        </label>
                        <div class="Field">
                            <fieldset class="TableLike FixedLabel">
                                <label>
                                    <input type="radio" name="$QData{"Element"}TimeSelect" value="Absolut" $QData{"CheckedAbsolut"}/>
                                    $Text{"Absolute Period"}:
                                </label>
                                <div class="Field">
                                    $Text{"Between"} $Data{"TimeStart"} $Text{"and"} $Data{"TimeStop"}
                                </div>
                                <div class="Clear"></div>

                                <label>
                                    <input type="radio" name="$QData{"Element"}TimeSelect" value="Relativ" $QData{"CheckedRelative"}/>
                                    $Text{"Relative Period"}:
                                </label>
                                <div class="Field">
                                    $Text{"The last"}
                                    $Data{"TimeRelativeCount"}
                                    $Data{"TimeRelativeUnit"} ($Text{"maximal period"})
                                </div>
                                <div class="Clear"></div>

                                <label>$Text{"Scale"}:</label>
                                <div class="Field">
                                    $Text{"minimal"}
                                    $Data{"TimeScaleCount"}
                                    $Data{"TimeScaleUnit"} ($Text{"minimal scale"})
                                </div>
                                <div class="Clear"></div>

                                <div class="Field">
                                    <label>
                                        <input type="checkbox" name="Fixed$Data{"Element"}" value="1" $Data{"Fixed"}/>
                                        $Text{"Fixed"}
                                    </label>
                                </div>
                                <div class="Clear"></div>

                            </fieldset>
                        </div>
                        <div class="Clear"></div>
<!-- dtl:block:TimeExtended -->
<!-- dtl:block:Time -->
                        <label>
                            <input type="radio" name="Select" value="$QData{"Element"}" $Data{"Checked"}/>
                            $Text{"$Data{"Name"}"}:
                        </label>
                        <div class="Field">
                            <div>
                                $Text{"Between"}
                                $Data{"TimeStart"} $Text{"and"} $Data{"TimeStop"}
                            </div>
                            <div class="SpacingTopSmall">
                                $Text{"Scale"}:
                                $Data{"TimeSelectField"}
                                <p class="FieldExplanation">$Text{"Please select only one element or turn off the button 'Fixed'."}</p>
                            </div>
                            <div>
                                <label>
                                    <input type="checkbox" name="Fixed$Data{"Element"}" value="1" $Data{"Fixed"}/>
                                    $Text{"Fixed"}
                                </label>
                            </div>
                        </div>
                        <div class="Clear"></div>
<!-- dtl:block:Time -->
<!-- dtl:block:Attribute -->
                        <div class="Field SpacingTop">
                            <button type="submit" name="Back" value="$Text{"...Back"}">$Text{"...Back"}</button>
                            <button class="Primary" type="submit" name="Next" value="$Text{"Next..."}" accesskey="g" title="$Text{"Next..."} (g)">$Text{"Next..."}</button>
                        </div>
                    </fieldset>
                </form>
            </div>
        </div>
    </div>
</div>
