<!--                                                                  -->
<!--  Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved     -->
<!--  $Id$  -->
<!--                                                                  -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

  <xsl:template name="permissionEditLayout">
    <form action="/admin/permission" name="permissionEntry" id="permissionEntry" method="post">
    <div class="section">
      <xsl:call-template name="permissionEdit" />
    </div>
    <xsl:call-template name="buttons" />
    </form>
  </xsl:template>

  <xsl:template name="permissionEdit">
    <script src="/production/javascript/validatePermission.js?t={$now}" type="text/javascript"></script>
    <input type="hidden" name="formSubmit" value="1" />
    <input type="hidden" name="c" value="add" />
    <xsl:if test="normalize-space(Form/Permission/PermissionID)">
      <input type="hidden" name="PermissionID" value="{Form/Permission/PermissionID}" />
    </xsl:if>
    <xsl:if test="Form/Permission/PermissionID = ''">
      <input type="hidden" name="new" value="1" />
    </xsl:if>
    <p class="formHeader">Enter permission information here.</p>
    <hr />
    <xsl:call-template name="errorMessageGeneral" />
    <xsl:call-template name="column1Edit" />
  </xsl:template>

  <xsl:template name="column1Edit">
    <table class="singleColumn">
      <tr>
        <td class="leftCol"><label for="Form_Application">*Application:</label></td>
        <td>
          <xsl:call-template name="inlineError">
            <xsl:with-param name="path">Form/Application</xsl:with-param>
            <xsl:with-param name="displayName">Application</xsl:with-param>
          </xsl:call-template>
          <input type="text" name="Form_Application" id="Form_Application" maxlength="{Form/Application/@maxLength}" value="{Form/Application}" />
        </td>
      </tr>
      <tr>
        <td class="leftCol"><label for="Form_Area">*Area:</label></td>
        <td>
          <xsl:call-template name="inlineError">
            <xsl:with-param name="path">Form/Area</xsl:with-param>
            <xsl:with-param name="displayName">Area</xsl:with-param>
          </xsl:call-template>
          <input type="text" name="Form_Area" id="Form_Area" maxlength="{Form/Area/@maxLength}" value="{Form/Area}" />
        </td>
      </tr>
      <tr>
        <td class="leftCol"><label for="Form_Command">*Command:</label></td>
        <td>
          <xsl:call-template name="inlineError">
            <xsl:with-param name="path">Form/Command</xsl:with-param>
            <xsl:with-param name="displayName">Command</xsl:with-param>
          </xsl:call-template>
          <input type="text" name="Form_Command" id="Form_Command" maxlength="{Form/Command/@maxLength}" value="{Form/Command}" />
        </td>
      </tr>
      <tr>
        <td colspan="2">
          <br />*Required field
        </td>
      </tr>
    </table>
  </xsl:template>

</xsl:stylesheet>

