<%-- 
  Copyright 2003 Sun Microsystems, Inc. All rights reserved 
  Use is subject to license terms. 
--%> 
<%@page info="AddProperty" language="java"%> 
<%@taglib uri="/WEB-INF/jato.tld" prefix="jato"%>
<%@taglib uri="/WEB-INF/console.tld" prefix="console"%>

<jato:useViewBean 
    className="com.sun.portal.desktop.admin.AddPropertyViewBean"
    fireChildDisplayEvents="true">
<jsp:useBean id="viewBean" 
    type="com.sun.portal.desktop.admin.AddPropertyViewBean"/>

<html>
<head>
  <title><jato:text name="titleHtmlPage" /></title>
  <link rel="stylesheet" href="../console/css/adminstyle.css">
  <link rel="stylesheet" href="../ps/css/psadminstyle.css">
  <script language="javascript" src="../console/js/consolecomp.js"></script>
</head>

<body bgcolor="#ffffff" leftMargin=0 rightMargin=0 topMargin=0 
  marginheight="0" marginwidth="0">
<script language="javascript">
    pageLoaded = 0;
    parent.headerFrame.helpDocURL = "<jato:text name="helpDocURL"/>";
    parent.headerFrame.helpPage = "<jato:text name="helpAnchorTag"/>";
</script>

  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr class="breadcrumb-row"> 
      <td nowrap> 
        <div class="page-title-text">
          <jato:text name="DesktopLinkLabel"/>
          <jato:text name="PageTitle"/>
        </div>
      </td>
    </tr>
    <tr>
      <td nowrap><img alt="" border="0" height="15" width="1"
          src="../console/images/spacer.gif"></td>
    </tr>
  </table>

<console:messagebox name="MessageBox" imageURI="../console/images" />

<console:form name="AddProperty" method="post" defaultCommandChild="/Finish"
    onSubmit="return checkRequiredFields();">

    <!-- set 10 pixel right margin for everything below -->
    <div class="sub-body-margin">

       <table border="0" cellpadding="0" cellspacing="0" width="100%">
	  <tr>
            <td width="1"><img alt="" border="0" height="1" width="10" src="../console/images/spacer.gif"></td>
            <td nowrap>
              <div class="properties-label-text">
                <jato:text name="PropertyListLabel" />:
              </div>
            </td>
            <td width="1"><img alt="" border="0" height="1" width="20" src="../console/images/spacer.gif"></td>
            <td width="99%">
              <jato:combobox name="PropertyList" elementId="AddProperty.PropertyList"
                onChange="this.form.elements['jato.defaultCommand'].value='TypeSelectorBtn';this.form.submit();"/>
            </td>
          </tr>
          <!-- begin spacer row -->
          <tr><td nowrap colspan="4"><img alt="" border="0" height="10" width="1" 
                  src="../console/images/spacer.gif"></td></tr>
          <!-- end spacer row -->
          <jato:content name="NameRow"> <!-- begin name row -->
          <tr>
            <td width="1"><img alt="" border="0" height="1" width="10" src="../console/images/spacer.gif"></td>
            <td nowrap>
              <div class="properties-label-text">
	        <jato:text name="ConditionLabel" />
                <jato:text name="NameLabel" />:<span class="properties-required" size="+1"><b>*</b></span>
              </div>
            </td>
            <td width="1"><img alt="" border="0" height="1" width="20" src="../console/images/spacer.gif"></td>
            <td width="99%">
              <jato:textField name="NameValue" elementId="AddProperty.NameValue"/>
            </td>
          </tr>
          <!-- begin spacer row -->
          <tr><td nowrap colspan="4"><img alt="" border="0" height="10" width="1" 
                  src="../console/images/spacer.gif"></td></tr>
          <!-- end spacer row -->
          </jato:content> <!-- end name row -->
          <tr>
            <td width="1"><img alt="" border="0" height="1" width="10" src="../console/images/spacer.gif"></td>
            <td nowrap>
              <div class="properties-label-text">
                <jato:text name="ValueLabel"/>
                <jato:content name="IntValueRequired">
                  <span class="properties-required" size="+1"><b>*</b></span>
                </jato:content>
                <jato:content name="StringValueRequired">
                  <span class="properties-required" size="+1"><b>*</b></span>
                </jato:content>
              </div>
            </td>
            <td width="1"><img alt="" border="0" height="1" width="20" src="../console/images/spacer.gif"></td>
            <td width="99%">
              <jato:textField name="StringValue" elementId="AddProperty.StringValue"/>
              <jato:textField name="IntValue" elementId="AddProperty.IntValue" size="5"/>
              <jato:checkbox name="BoolValue" elementId="AddProperty.BoolValue"/>
            </td>
          </tr>
          <!-- begin spacer row -->
          <tr><td nowrap colspan="4"><img alt="" border="0" height="10" width="1" 
                  src="../console/images/spacer.gif"></td></tr>
          <!-- end spacer row -->
          <tr>
            <td width="1"><img alt="" border="0" height="1" width="10" src="../console/images/spacer.gif"></td>
            <td nowrap><jato:text name="CategoryLabel"/>:</td>
            <td width="1"><img alt="" border="0" height="1" width="20" src="../console/images/spacer.gif"></td>
            <td width="99%">
              <jato:radioButtons name="Category" elementId="AddProperty.Category"/>
            </td>
          </tr>
          <!-- begin spacer row -->
          <tr><td nowrap colspan="4"><img alt="" border="0" height="15" width="1" 
                  src="../console/images/spacer.gif"></td></tr>
          <!-- end spacer row -->
       </table>
       <!-- Buttons -->
       <!-- Begin table containing Add and Cancel Buttons -->
       <table border="0" cellpadding="0" cellspacing="0" width="100%">
         <tr>
           <td width="1"><img alt="" border="0" height="1" width="10" src="../console/images/spacer.gif"></td>
           <td colspan="2" bgcolor="000000"><img alt="" border="0" height="1" width="1" 
               src="../console/images/spacer.gif"></td>
         </tr>
          <!-- begin spacer row -->
          <tr><td nowrap colspan="3"><img alt="" border="0" height="10" width="1" 
                  src="../console/images/spacer.gif"></td></tr>
          <!-- end spacer row -->
         <tr>
           <td width="1"><img alt="" border="0" height="1" width="10" src="../console/images/spacer.gif"></td>
           <td nowrap>
             <span class="properties-required" size="+1"><b>* </b></span><jato:text name="ReqFieldLabel"/>
           </td>
           <td align="right"> 
             <table border="0" cellpadding="0" cellspacing="0">
               <tr>
                 <td>
                   <console:button name="AddAnother"/>
                 </td>
                 <td width="1"><img alt="" border="0" height="1" width="5" 
                        src="../console/images/spacer.gif"></td>
                 <td>
                   <console:button name="Finish"/>
                 </td>
                 <td width="1"><img alt="" border="0" height="1" width="5" 
                        src="../console/images/spacer.gif"></td>
                 <td>
                   <console:button name="Cancel"/>
                 </td>
               </tr>
             </table>
           </td>
         </tr>
       </table>
       <!-- End table containing Add and Cancel Buttons -->

    <!-- end 10 pixel right margin -->
    </div>

</console:form>

<script language="javascript">
addToRequiredFieldArray('AddProperty', 'AddProperty.NameValue', 
    '<jato:text name="MissingNameMsg" />');

addToRequiredFieldArray('AddProperty', 'AddProperty.IntValue', 
    '<jato:text name="MissingValueMsg" />');

<jato:content name="StringValueRequired">
addToRequiredFieldArray('AddProperty', 'AddProperty.StringValue', 
    '<jato:text name="MissingValueMsg" />');
</jato:content>

</script>

</body>
<script language="javascript">
pageLoaded = 1;
</script>
</html>
</jato:useViewBean>
