<!--                                                                  -->
<!--  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=""  encoding="utf-8" />

    <xsl:include href="/app/tools/rps/templates/global.xsl" />

    <xsl:template name="pickLayout">
        <div class="MainBaseSection">
            <xsl:call-template name="configMainLayout" />
        </div>
    </xsl:template>

    <xsl:template name="configMainLayout">
        <div class="Layout-section" id="dashboard">
            <div class="Dashboard-section">
                <h2 class="Layout-heading-x">Configure Your Site</h2>
                <ul class="Dashboard-list">
                    <xsl:if test="Access/admin/jobqueue/show = 1">
                        <li class="Dashboard-list-item" id="jobqueueLink">
                            <div class="Dashboard-list-item-wrapper">
                                <a class="Dashboard-list-item-link" href="/support/job_queue">
                                    <div class="Dashboard-list-item-icon">
                                        <xsl:call-template name="icon">
                                            <xsl:with-param name="type" select="'pic-job-queue'" />
                                            <xsl:with-param name="role" select="'pic'" />
                                        </xsl:call-template>
                                    </div>
                                    <h3 class="Dashboard-list-item-title">Job Queue</h3>
                                </a>
                                <span class="Dashboard-list-item-subtle">View the processes currently running as well as those waiting to run</span>
                            </div>
                        </li>
                    </xsl:if>
                    <xsl:if test="Access/rps/label/edit = 1">
                        <li class="Dashboard-list-item" id="labelsLink">
                            <div class="Dashboard-list-item-wrapper">
                                <a class="Dashboard-list-item-link" href="/rps/label">
                                    <div class="Dashboard-list-item-icon">
                                        <xsl:call-template name="icon">
                                            <xsl:with-param name="type" select="'pic-labels'" />
                                            <xsl:with-param name="role" select="'pic'" />
                                        </xsl:call-template>
                                    </div>
                                    <h3 class="Dashboard-list-item-title">Labels</h3>
                                </a>
                                <span class="Dashboard-list-item-subtle">Create and modify labels that are part of your company</span>
                            </div>
                        </li>
                    </xsl:if>
                    <xsl:if test="Access/admin/locale/show = 1">
                        <li class="Dashboard-list-item" id="localeLink">
                            <div class="Dashboard-list-item-wrapper">
                                <a class="Dashboard-list-item-link" href="/admin/locale?c=show">
                                    <div class="Dashboard-list-item-icon">
                                        <xsl:call-template name="icon">
                                            <xsl:with-param name="type" select="'pic-settings'" />
                                            <xsl:with-param name="role" select="'pic'" />
                                        </xsl:call-template>
                                    </div>
                                    <h3 class="Dashboard-list-item-title">Locale Settings</h3>
                                </a>
                                <span class="Dashboard-list-item-subtle">View country, language, and base currency settings</span>
                            </div>
                        </li>
                    </xsl:if>
                    <xsl:if test="Access/rps/mapface/main = 1">
                        <li class="Dashboard-list-item" id="mapfaceLink">
                            <div class="Dashboard-list-item-wrapper">
                                <a class="Dashboard-list-item-link" href="/rps/mapface">
                                    <div class="Dashboard-list-item-icon">
                                        <xsl:call-template name="icon">
                                            <xsl:with-param name="type" select="'pic-map-face'" />
                                            <xsl:with-param name="role" select="'pic'" />
                                        </xsl:call-template>
                                    </div>
                                    <h3 class="Dashboard-list-item-title">MapFace</h3>
                                </a>
                                <span class="Dashboard-list-item-subtle">Resolve importer exceptions</span>
                            </div>
                        </li>
                    </xsl:if>
                    <xsl:if test="Access/admin/mcps/show = 1">
                        <li class="Dashboard-list-item" id="mcpsLink">
                            <div class="Dashboard-list-item-wrapper">
                                <a class="Dashboard-list-item-link" href="/admin/mcps?c=show">
                                    <div class="Dashboard-list-item-icon">
                                        <xsl:call-template name="icon">
                                            <xsl:with-param name="type" select="'pic-mcps'" />
                                            <xsl:with-param name="role" select="'pic'" />
                                        </xsl:call-template>
                                    </div>
                                    <h3 class="Dashboard-list-item-title">MCPS</h3>
                                </a>
                                <span class="Dashboard-list-item-subtle">Create and modify MCPS rates and settings</span>
                            </div>
                        </li>
                    </xsl:if>
                    <xsl:if test="Access/rps/portal/edit = 1">
                        <li class="Dashboard-list-item" id="payeeLink">
                            <div class="Dashboard-list-item-wrapper">
                                <a class="Dashboard-list-item-link" href="/rps/portal">
                                    <div class="Dashboard-list-item-icon">
                                        <xsl:call-template name="icon">
                                            <xsl:with-param name="type" select="'pic-payees'" />
                                            <xsl:with-param name="role" select="'pic'" />
                                        </xsl:call-template>
                                    </div>
                                    <h3 class="Dashboard-list-item-title">Payee Portal</h3>
                                </a>
                                <span class="Dashboard-list-item-subtle">Manage and view settings for online statement distribution</span>
                            </div>
                        </li>
                    </xsl:if>
                    <xsl:if test="Access/rps/payor/edit = 1">
                        <li class="Dashboard-list-item" id="payorLink">
                            <div class="Dashboard-list-item-wrapper">
                                <a class="Dashboard-list-item-link" href="/rps/payor">
                                    <div class="Dashboard-list-item-icon">
                                        <xsl:call-template name="icon">
                                            <xsl:with-param name="type" select="'pic-payors'" />
                                            <xsl:with-param name="role" select="'pic'" />
                                        </xsl:call-template>
                                    </div>
                                    <h3 class="Dashboard-list-item-title">Payors</h3>
                                </a>
                                <span class="Dashboard-list-item-subtle">Create and modify payors</span>
                            </div>
                        </li>
                    </xsl:if>
                    <xsl:if test="Access/rps/price/edit = 1">
                        <li class="Dashboard-list-item" id="pricesLink">
                            <div class="Dashboard-list-item-wrapper">
                                <a class="Dashboard-list-item-link" href="/rps/price">
                                    <div class="Dashboard-list-item-icon">
                                        <xsl:call-template name="icon">
                                            <xsl:with-param name="type" select="'pic-prices'" />
                                            <xsl:with-param name="role" select="'pic'" />
                                        </xsl:call-template>
                                    </div>
                                    <h3 class="Dashboard-list-item-title">Prices</h3>
                                </a>
                                <span class="Dashboard-list-item-subtle">Create and modify prices to be used in products</span>
                            </div>
                        </li>
                    </xsl:if>
                    <xsl:if test="Access/rps/region/edit = 1">
                        <li class="Dashboard-list-item" id="regionsLink">
                            <div class="Dashboard-list-item-wrapper">
                                <a class="Dashboard-list-item-link" href="/rps/region">
                                    <div class="Dashboard-list-item-icon">
                                        <xsl:call-template name="icon">
                                            <xsl:with-param name="type" select="'pic-regions'" />
                                            <xsl:with-param name="role" select="'pic'" />
                                        </xsl:call-template>
                                    </div>
                                    <h3 class="Dashboard-list-item-title">Regions</h3>
                                </a>
                                <span class="Dashboard-list-item-subtle">Create and modify regions to be used in contract terms</span>
                            </div>
                        </li>
                    </xsl:if>
                    <xsl:if test="Access/rps/service/edit = 1">
                        <li class="Dashboard-list-item" id="serviceLink">
                            <div class="Dashboard-list-item-wrapper">
                                <a class="Dashboard-list-item-link" href="/rps/service">
                                    <div class="Dashboard-list-item-icon">
                                        <xsl:call-template name="icon">
                                            <xsl:with-param name="type" select="'pic-service-settings'" />
                                            <xsl:with-param name="role" select="'pic'" />
                                        </xsl:call-template>
                                    </div>
                                    <h3 class="Dashboard-list-item-title">Service Settings</h3>
                                </a>
                                <span class="Dashboard-list-item-subtle">Manage mechanical exclusions by service</span>
                            </div>
                        </li>
                    </xsl:if>
                    <xsl:if test="Access/rps/artist_statement_settings/edit = 1">
                        <li class="Dashboard-list-item" id="statementLink">
                            <div class="Dashboard-list-item-wrapper">
                                <a class="Dashboard-list-item-link" href="/rps/artist_statement_settings">
                                    <div class="Dashboard-list-item-icon">
                                        <xsl:call-template name="icon">
                                            <xsl:with-param name="type" select="'pic-data'" />
                                            <xsl:with-param name="role" select="'pic'" />
                                        </xsl:call-template>
                                    </div>
                                    <h3 class="Dashboard-list-item-title">Statement Options</h3>
                                </a>
                                <span class="Dashboard-list-item-subtle">Add optional fields to your payee royalty statements</span>
                            </div>
                        </li>
                    </xsl:if>
                    <xsl:if test="Access/rps/reference/statrates = 1">
                        <li class="Dashboard-list-item" id="ratesLink">
                            <div class="Dashboard-list-item-wrapper">
                                <a class="Dashboard-list-item-link" href="/rps/reference?c=statrates">
                                    <div class="Dashboard-list-item-icon">
                                        <xsl:call-template name="icon">
                                            <xsl:with-param name="type" select="'pic-rates'" />
                                            <xsl:with-param name="role" select="'pic'" />
                                        </xsl:call-template>
                                    </div>
                                    <h3 class="Dashboard-list-item-title">Statutory Rates</h3>
                                </a>
                                <span class="Dashboard-list-item-subtle">View the current and historical statutory rates</span>
                            </div>
                        </li>
                    </xsl:if>
                    <xsl:if test="Access/rps/user/edit = 1">
                        <li class="Dashboard-list-item" id="usersLink">
                            <div class="Dashboard-list-item-wrapper">
                                <a class="Dashboard-list-item-link" href="/rps/user">
                                    <div class="Dashboard-list-item-icon">
                                        <xsl:call-template name="icon">
                                            <xsl:with-param name="type" select="'pic-users'" />
                                            <xsl:with-param name="role" select="'pic'" />
                                        </xsl:call-template>
                                    </div>
                                    <h3 class="Dashboard-list-item-title">Users</h3>
                                </a>
                                <span class="Dashboard-list-item-subtle">Create and modify user accounts</span>
                            </div>
                        </li>
                    </xsl:if>
                </ul>
            </div>
        </div>
    </xsl:template>

</xsl:stylesheet>
