<!--                                                                  -->
<!--  Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved     -->
<!--  $Id$  -->
<!--                                                                  -->
<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/bookpub/templates/global.xsl" />

	<xsl:template name="pickLayout">
		<xsl:call-template name="adminMainLayout" />
	</xsl:template>

	<xsl:template name="adminMainLayout">
		<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/bookpub/admin/locale = 1">
						<li class="Dashboard-list-item" id="localeLink">
							<div class="Dashboard-list-item-wrapper">
								<a class="Dashboard-list-item-link" href="/bookpub/admin?c=locale">
									<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">View 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/bookpub/admin/list_contributors = 1">
						<li class="Dashboard-list-item" id="contributorsLink">
							<div class="Dashboard-list-item-wrapper">
								<a class="Dashboard-list-item-link" href="/bookpub/admin?c=list_contributors">
									<div class="Dashboard-list-item-icon">
										<xsl:call-template name="icon">
											<xsl:with-param name="type" select="'pic-contributors'" />
											<xsl:with-param name="role" select="'pic'" />
										</xsl:call-template>
									</div>
									<h3 class="Dashboard-list-item-title">Manage Contributors</h3>
								</a>
								<span class="Dashboard-list-item-subtle">Create and modify contributors</span>
							</div>
						</li>
					</xsl:if>
					<xsl:if test="Access/bookpub/admin/list_imprints = 1">
						<li class="Dashboard-list-item" id="imprintsLink">
							<div class="Dashboard-list-item-wrapper">
								<a class="Dashboard-list-item-link" href="/bookpub/admin?c=list_imprints">
									<div class="Dashboard-list-item-icon">
										<xsl:call-template name="icon">
											<xsl:with-param name="type" select="'pic-imprints'" />
											<xsl:with-param name="role" select="'pic'" />
										</xsl:call-template>
									</div>
									<h3 class="Dashboard-list-item-title">Manage Imprints</h3>
								</a>
								<span class="Dashboard-list-item-subtle">Create and modify imprints</span>
							</div>
						</li>
					</xsl:if>
					<xsl:if test="Access/bookpub/admin/list_report_config = 1">
						<li class="Dashboard-list-item" id="reportsLink">
							<div class="Dashboard-list-item-wrapper">
								<a class="Dashboard-list-item-link" href="/bookpub/admin?c=list_report_config">
									<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">Configure Reports</h3>
								</a>
								<span class="Dashboard-list-item-subtle">Modify your reporting settings</span>
							</div>
						</li>
					</xsl:if>
					<xsl:if test="Access/bookpub/user/edit = 1">
						<li class="Dashboard-list-item" id="usersLink">
							<div class="Dashboard-list-item-wrapper">
								<a class="Dashboard-list-item-link" href="/bookpub/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">Manage Users</h3>
								</a>
								<span class="Dashboard-list-item-subtle">Create and modify user accounts</span>
							</div>
						</li>
					</xsl:if>
					<xsl:if test="Access/bookpub/admin/price_variance = 1">
						<li class="Dashboard-list-item" id="pricesLink">
							<div class="Dashboard-list-item-wrapper">
								<a class="Dashboard-list-item-link" href="/bookpub/admin?c=price_variance">
									<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">Price Validation</h3>
								</a>
								<span class="Dashboard-list-item-subtle">Manage your threshold for price exceptions</span>
							</div>
						</li>
					</xsl:if>
				</ul>
			</div>
		</div>
	</xsl:template>
</xsl:stylesheet>
