# --
# AgentStatsEditValueSeries.dtl - provides HTML form for stats edit mask
# Copyright (C) 2001-2006 OTRS GmbH, http://otrs.org/
# --
# $Id: AgentStatsEditValueSeries.dtl,v 1.4 2006/12/21 16:13:14 mh Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (GPL). If you
# did not receive this file, see http://www.gnu.org/licenses/gpl.txt.
# --

<!-- start form -->
<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="EditValueSeries">
  <input type="hidden" name="StatID" value="$QData{"StatID"}">
  <table border="0" width="100%" cellspacing="0" cellpadding="3">
    <tr>
      <td class="mainhead">
        $Env{"Box0"}$Text{"Edit"}: $Config{"Stats::StatsHook"} $QData{"StatNumber"}$Env{"Box1"}
      </td>
    </tr>
#    <tr>
#      <td class="menu">
#        <a href="$Env{"Baselink"}Action=$Env{"Action"}&Subaction=View&StatID=$QData{"StatID"}" class="menuitem">
#        $Text{"View"}
#        </a>
#      </td>
#    </tr>
    <tr>
      <td class="mainbody" align="center">
        <img border="0" src="$Env{"Images"}installer2.png" alt="">
        <br>
        <table border="0" width="700" align="center" cellspacing="0" cellpadding="4">
          <tr>
            <td class="contenthead">
              $Text{"Select the elements for the value series"} (3/4)
            </td>
          </tr>
          <tr>
            <td class="contentbody">
              <table border="0" cellspacing="0" cellpadding="3" width="100%">
<!-- dtl:block:Attribute -->
<!-- dtl:block:hr -->
                <tr>
                  <td colspan="3"><hr></td>
                </tr>
<!-- dtl:block:hr -->
<!-- dtl:block:MultiSelectField -->
                <tr>
                  <td class="contentkey" >
                    <input type="Checkbox" name="Select$Data{"Element"}" value="1" $Data{"Checked"}>
                  </td>
                  <td class="contentkey" width="200">
                    $Text{"$QData{"Name"}"}:
                  </td>
                  <td class="contentvalue" width="450">$Data{"SelectField"}</td>
                </tr>
                <tr>
                  <td colspan="2"></td>
                  <td class="contentvalue">
                    <input type="Checkbox" name="Fixed$Data{"Element"}" value="1" $Data{"Fixed"}>
                    $Text{"Fixed"}
                  </td>
                </tr>
<!-- dtl:block:MultiSelectField -->
<!-- dtl:block:TimeExtended -->
                <tr>
                  <td class="contentkey">
                    <input type="Checkbox" name="Select$Data{"Element"}" value="1" $Data{"Checked"}>
                  </td>
                  <td class="contentkey">
                    $Text{"$Data{"Name"}"}
                    $Text{"Scale"}:
                  </td>
                  <td valign="middle">
                    $Text{"minimal"}
#                    $Data{"TimeScaleCount"} Comment: Danger to use and no best practise
                    $Data{"TimeScaleUnit"}
                  </td>
                </tr>
                <tr>
                  <td colspan="2"></td>
                  <td class="contentvalue">
                    <input type="Checkbox" name="Fixed$Data{"Element"}" value="1" $Data{"Fixed"}>
                    $Text{"Fixed"}
                  </td>
                </tr>
<!-- dtl:block:TimeExtended -->
<!-- dtl:block:Time -->
                <tr>
                  <td class="contentkey">
                    <input type="Checkbox" name="Select$Data{"Element"}" value="1" $Data{"Checked"}>
                  </td>
                  <td class="contentkey">
                    $Text{"$Data{"Name"}"}
                    $Text{"Scale"}:<br>
                    <span class="readonly">
                    $Text{"Please select only one Element or turn of the button 'Fixed'."}<br>
                    $Text{"Please remember, that the scale for value series has to be larger than the scale for the X-axis (e.g. X-Axis => Month, ValueSeries => Year)."}
                    </span>
                  </td>
                  <td>
                    $Data{"TimeSelectField"}
                  </td>
                </tr>
                <tr>
                  <td colspan="2"></td>
                  <td class="contentvalue">
                    <input type="Checkbox" name="Fixed$Data{"Element"}" value="1" $Data{"Fixed"}>
                    $Text{"Fixed"}
                  </td>
                </tr>
<!-- dtl:block:Time -->
<!-- dtl:block:Attribute -->
              </table>
            </td>
          </tr>
          <tr>
            <td class="contentfooter">
              <input class="button" type="submit" name="Back" value="$Text{"...Back"}">
              <input class="button" type="submit" name="Next" value="$Text{"Next..."}" accesskey="g">
            </td>
          </tr>
        </table>
        <br>
      </td>
    </tr>
  </table>
</form>
<table border="0" width="100%" cellspacing="0" cellpadding="3">
  <tr>
    <td class="mainhead">
      $Env{"Box0"}$Text{"Note"}$Env{"Box1"}
    </td>
  </tr>
  <tr>
    <td class="mainbody">
      <table width="100%">
        <tr>
          <td class="mainvalue">
            $Text{"Here you can the value series. You have the possibility to select one or two elements. Then you can select the attributes of elements. Each attribute will be shown as single value series. If you don't select any attribute all attributes of the element will be used if you generate a stat. As well a new attribute is added since the last configuration."}
            $Text{"If you remove the hook in the "Fixed" checkbox, the agent generating the stat can change the attributs of the corresponding element."}
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<!-- end form -->
