﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
    <xsl:output method="xml" indent="yes"/>


    <xsl:template match="/">
        <xsl:call-template name="NoExercise">
            <xsl:with-param name="ItemID" select="AjaxRequest/Params/WorkoutItemID"></xsl:with-param>
        </xsl:call-template>
    </xsl:template>
    <xsl:template name="NoExercise">
        <xsl:param name="ItemID" select="'N/A'"></xsl:param>       
            <div align="center">
                <span class="labelBold" >
                    You do not currently have any exercises linked to this workout
                </span>
            </div>
            <div>
                <center>
                    <span>
                        <input type="button" value="Add Exercise" style="margin-top:10px;"
                               class="button"
                               onClick ="workOut_LoadAddExerciseControl('div_WorkOut_{$ItemID}_Data','div_ProgramListExcercise_{$ItemID}_Suggest');">
                        </input>
                    </span>
                </center>
            </div>       
    </xsl:template>
</xsl:stylesheet>
