# --
# AgentStatsEditRestrictions.dtl - provides HTML form for stats edit mask
# Copyright (C) 2001-2010 OTRS AG, http://otrs.org/
# --
# $Id: AgentStatsEditRestrictions.dtl,v 1.25 2010/11/10 12:42:41 mg 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 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 class="Highlighted NoLink">
                <span>
                    <a href="#">$Text{"Step %s", "3"}<span>$Text{"Select the elements for the value series"}</span></a>
                </span>
            </li>
            <li class="Highlighted Active NoLink Last">
                <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 make restrictions to your stat."}
                </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 restrictions to characterize the stat"} (4/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="EditRestrictions"/>
                    <input type="hidden" name="StatID" value="$QData{"StatID"}"/>

                    <fieldset class="TableLike">
<!-- dtl:block:Attribute -->
<!-- dtl:block:MultiSelectField -->
                        <label>
                            <input type="checkbox" name="Select$Data{"Element"}" value="1" $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:SelectField -->
                        <label>
                            <input type="checkbox" name="Select$Data{"Element"}" value="1" $Data{"Checked"}/>
                            $Text{"$Data{"Name"}"}:
                        </label>
                        <div class="Field">
                            <div>
                                $Data{"SelectField"}
                            </div>
                            <p class="FieldExplanation">$Text{"Please select only one element or turn off the button 'Fixed'."}</p>
                            <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:SelectField -->
<!-- dtl:block:InputField -->
                        <label>
                            <input type="checkbox" name="Select$Data{"Element"}" value="1" $Data{"Checked"}/>
                            $Text{"$Data{"Name"}"}:
                        </label>
                        <div class="Field">
                            <div>
                                <input type="text" name="$QData{"Element"}" value="$QData{"SelectedValue"}" class="W50pc"/>
                            </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:InputField -->
<!-- dtl:block:TimeExtended -->
                        <label>
                            <input type="checkbox" name="Select$Data{"Element"}" value="1" $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"}
                                </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="checkbox" name="Select$Data{"Element"}" value="1" $Data{"Checked"}/>
                            $Text{"$Data{"Name"}"}:
                        </label>
                        <div class="Field">
                            <div>
                                $Text{"Between"}
                                $Data{"TimeStart"} $Text{"and"} $Data{"TimeStop"}
                            </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{"Finish"}">$Text{"Finish"}</button>
                        </div>
                    </fieldset>
                </form>
            </div>
        </div>
    </div>
</div>
