<!--                                                                  -->
<!--  Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved     -->
<!--                                                                  -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template name="editPeriodName">
        <div class="EditPeriodName">
            <form action="/app/tracker" method="post" class="Form Form-horizontal EditPeriodName-form">
                <fieldset class="Form-fieldset">
                    <input type="hidden" name="c" value="edit_period" />
                    <input type="hidden" name="page" value="{Params/page}" />
                    <input type="hidden" name="sub_cmd" value="update" />
                    <input type="hidden" name="period" value="{Report/Period/PeriodID}" />
                    <div class="Form-item">
                        <label class="Form-label">
                            <span class="Form-label-caption">Period Name</span>
                            <div class="Form-input-wrapper">
                                <input class="Input Form-input EditPeriodName-name-input" type="text" name="period_name" value="{Report/Period/Name}" size="15" maxlength="25" />
                            </div>
                        </label>
                    </div>
                </fieldset>
                <fieldset class="Form-fieldset Form-fieldset-buttons">
                    <xsl:call-template name="uiButton">
                        <xsl:with-param name="content" select="'Cancel'" />
                        <xsl:with-param name="type" select="'default'"/>
                        <xsl:with-param name="className" select="'Form-button'"/>
                        <xsl:with-param name="elemType" select="'button'"/>
                        <xsl:with-param name="onClick">
                            location.href='/app/tracker?period=<xsl:value-of select="Report/Period/PeriodID" />'
                        </xsl:with-param>
                    </xsl:call-template>
                    <xsl:call-template name="uiButton">
                        <xsl:with-param name="content" select="'Update'" />
                        <xsl:with-param name="type" select="'primary'"/>
                        <xsl:with-param name="className" select="'Form-button'"/>
                        <xsl:with-param name="elemType" select="'submit'"/>
                    </xsl:call-template>
                </fieldset>
            </form>
        </div>
    </xsl:template>
</xsl:stylesheet>
