<!--                                                                  -->
<!--  Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved     -->
<!--                                                                  -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:dyn="http://exslt.org/dynamic" extension-element-prefixes="dyn">
    <xsl:output method="html" indent="no" doctype-system="http://www.w3.org/TR/html4/strict.dtd"     doctype-public="-//W3C//DTD HTML 4.01//EN" encoding="utf-8" />

    <xsl:include href="/app/tools/rps/templates/ajax_request.xsl" />
    <xsl:include href="/app/tools/rps/templates/label_contract/show.xsl" />

    <xsl:template name="pickLayout">
        <xsl:choose>       
            <xsl:when test="//Root/Deleted = 1">
                <p class="successGeneral messageBox" id="successGeneralMessageBox" style="height: 50px">
                    Contract Terms successfully deleted!
                    <br style="margin-bottom: 10px" />
                    <a href="javascript:void(-1)" onClick="$(this).parent().hide();" style="">Dismiss Message</a>
                </p>
            </xsl:when>
            <xsl:otherwise>
                <xsl:if test="//Root/Deleted = 0">
                    <p class="errorGeneral messageBox" style="width: 600px; height: 50px">
                        At least one set of terms must be associated with a label contract. 
                        <br style="margin-bottom: 10px" />
                        <a href="javascript:void(-1)" onClick="$(this).parent().hide();" style="">Dismiss Message</a>
                    </p>            
                </xsl:if>     
                <xsl:call-template name="termView" />
            </xsl:otherwise>
        </xsl:choose>
    </xsl:template>

</xsl:stylesheet>
