﻿<?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" omit-xml-declaration ="yes"/>
    <xsl:template match="/">
        <xsl:variable name ="HostName" select ="normalize-space(AjaxRequest/HostName)"></xsl:variable>
        <xsl:variable name ="BrandID" select ="normalize-space(AjaxRequest/CoachProfile/BrandID)"></xsl:variable>
        <xsl:variable name ="CommunityID" select ="normalize-space(AjaxRequest/CoachProfile/CommunityID)"></xsl:variable>
        <xsl:variable name ="Profile" select ="normalize-space(AjaxRequest/CoachProfile/profileData)"></xsl:variable>
        <xsl:variable name ="Services" select ="normalize-space(AjaxRequest/CoachProfile/ServiceData)"></xsl:variable>
        <xsl:variable name ="Packages" select ="normalize-space(AjaxRequest/CoachProfile/PackageData)"></xsl:variable>
        <xsl:variable name ="Images" select ="normalize-space(AjaxRequest/CoachProfile/ImagesData)"></xsl:variable>
        <xsl:variable name ="PortaltypeID" select ="normalize-space(AjaxRequest/Params/PortalTypeID)"></xsl:variable>
        <table class="tableMaster" cellpadding="5" cellspacing="0">
            <tr>
                <td colspan="4">
                    <span class="labelHeader">To Complete Your Profile:</span>
                </td>
            </tr>
            <!--<tr>
                <td colspan="4">
                    &#xa0;
                </td>
            </tr>-->
            <tr>
                <td width="25%" style="border-right:1px solid #376092;text-align:center;">
                    <xsl:choose>
                        <xsl:when test ="$PortaltypeID = 4">
                            <span class="labelHeader" style="cursor:pointer;"
                      onClick="return LoadCoachInfoWizard('LoadAboutCoach','{$BrandID}','divClientPortalOperations_Container','-99');">
                                About us
                            </span>
                        </xsl:when>
                        <xsl:otherwise>
                            <span class="labelHeader" style="cursor:pointer;"
                      onClick="return LoadCoachInfoWizard('LoadAboutCoach','{$BrandID}','divClientPortalOperations_Container','-99');">
                                Profile
                            </span>
                        </xsl:otherwise>
                    </xsl:choose>
                </td>
                <td width="25%" style="border-right:1px solid #376092;text-align:center;">
                    <xsl:choose>
                        <xsl:when test ="$PortaltypeID = 4">
                            <span class="labelHeader" style="cursor:pointer;"
                              onClick="return LoadCoachInfoWizard('LoadMyServices','{$BrandID}','divClientPortalOperations_Container','-99');">
                                Goal Templates
                            </span>
                        </xsl:when>
                        <xsl:otherwise>
                            <span class="labelHeader" style="cursor:pointer;"
                               onClick="return LoadCoachInfoWizard('LoadMyServices','{$BrandID}','divClientPortalOperations_Container','-99');">
                                Services
                            </span>
                        </xsl:otherwise>
                    </xsl:choose>
                </td>
                <xsl:choose>
                    <xsl:when test ="$PortaltypeID != 4">
                        <td width="25%" style="border-right:1px solid #376092;text-align:center;">
                            <span class="labelHeader" style="cursor:pointer;"
                               onClick="return LoadCoachInfoWizard('LoadMyPackages','{$BrandID}','divClientPortalOperations_Container','-99');">
                                Packages
                            </span>
                        </td>
                    </xsl:when>
                </xsl:choose>
                <td width="25%" style="text-align:center;">
                    <span class="labelHeader" style="cursor:pointer;"
                       onClick="return LoadCoachInfoWizard('LoadMyImage','{$BrandID}','divClientPortalOperations_Container','-99');">
                        Images
                    </span>
                </td>
            </tr>
            <tr>
                <td width="25%" style="border-right:1px solid #376092;text-align:center;">
                    <span style="margin-top:10px;">
                        <xsl:choose>
                            <xsl:when test ="$Profile &gt; 0">
                                <input type="checkbox" disabled="disabled" checked="checked"/>
                            </xsl:when>
                            <xsl:otherwise>
                                <input type="checkbox" disabled="disabled"/>
                            </xsl:otherwise>
                        </xsl:choose>
                    </span>
                </td>
                <td width="25%" style="border-right:1px solid #376092;text-align:center;">
                    <span style="margin-top:10px;">
                        <xsl:choose>
                            <xsl:when test ="$Services &gt; 0">
                                <input type="checkbox" disabled="disabled" checked="checked"/>
                            </xsl:when>
                            <xsl:otherwise>
                                <input type="checkbox" disabled="disabled"/>
                            </xsl:otherwise>
                        </xsl:choose>
                    </span>
                </td>
                <xsl:choose>
                    <xsl:when test ="$PortaltypeID != 4">
                        <td width="25%" style="border-right:1px solid #376092;text-align:center;">
                            <span style="margin-top:10px;">
                                <xsl:choose>
                                    <xsl:when test ="$Packages &gt; 0">
                                        <input type="checkbox" disabled="disabled" checked="checked"/>
                                    </xsl:when>
                                    <xsl:otherwise>
                                        <input type="checkbox" disabled="disabled"/>
                                    </xsl:otherwise>
                                </xsl:choose>
                            </span>
                        </td>
                    </xsl:when>
                </xsl:choose>
                <td width="25%" style="text-align:center;">
                    <span style="margin-top:10px;">
                        <xsl:choose>
                            <xsl:when test ="$Images &gt; 0">
                                <input type="checkbox" disabled="disabled" checked="checked"/>
                            </xsl:when>
                            <xsl:otherwise>
                                <input type="checkbox" disabled="disabled"/>
                            </xsl:otherwise>
                        </xsl:choose>
                    </span>
                </td>
            </tr>
        </table>
    </xsl:template>
</xsl:stylesheet>