﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
        <div id="LifeSpaceUpdates" style="padding-left:5px;padding-top:2px;">
            <div id="divUpdates">
                <table class="tableMaster" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td colspan="3" style="padding-bottom: 30px;">
                            <xsl:call-template name="PublicationContent"></xsl:call-template>
                        </td>
                    </tr>
                    <tr>
                        <!--<td width="30%" valign="top">
                            <span class="labelBold" style="color: #000000;">Search LifeSpace:</span>
                            <div>
                                <input type="text" class="text" value="What do you want to do?"
                                       style="color: #7F7F7F; font-weight: bold; height: 25px;"></input>
                            </div>
                            <div class="label" style="color: #7F7F7F; margin-top: 5px; width: 80%;">
                                Ex: Run a half marathon
                                Get a better job
                                Travel to Paris
                                Volunteer More
                            </div>
                        </td>-->
                        <td valign="top" width="50%">
                            <span class="labelBold" style="color: #000000;">Active Communities:</span>
                            <xsl:call-template name="ActiveCommunities"></xsl:call-template>
                        </td>
                        <td valign="top" width="50%">
                            <span class="labelBold" style="color: #000000;">Active Templates:</span>
                            <xsl:call-template name="ActiveTemplates"></xsl:call-template>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" style="padding-top: 30px;">
                            <table class="tableMaster" cellpadding="0" cellspacing="0" border="0">
                                <tr>
                                    <td width="33%">
                                        <a class="labelBold" href="https://www.coachsimple.net/ListCommunities.aspx">
                                            View All Communities
                                        </a>
                                    </td>
                                    <td width="33%">
                                        <a class="labelBold" href="https://www.coachsimple.net/ListTemplates.aspx">
                                            View All Templates
                                        </a>
                                    </td>
                                    <td width="33%">
                                        <a class="labelBold" href="https://www.coachsimple.net/ListPublications.aspx">
                                            View All Publications
                                        </a>
                                    </td>
                                    <!--<td>
                                        <a class="labelBold">
                                            View All Content
                                        </a>
                                    </td>-->
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </xsl:template>

    <xsl:template name ="PublicationContent">
        <div id="LifeSpaceUpdates_PublicationContent">
            <xsl:value-of select="Updates/PublicationContent/Html" disable-output-escaping ="yes"/>
        </div>
    </xsl:template>

    <xsl:template name ="ActiveCommunities">
        <div id="LifeSpaceUpdates_ActiveCommunities">
            <xsl:value-of select="Updates/ActiveCommunities/Html" disable-output-escaping ="yes"/>
        </div>
    </xsl:template>

    <xsl:template name ="ActiveTemplates">
        <div id="LifeSpaceUpdates_ActiveTemplates">
            <xsl:value-of select="Updates/ActiveTemplates/Html" disable-output-escaping ="yes"/>
        </div>
    </xsl:template>

</xsl:stylesheet>
