<%@ taglib uri="webwork" prefix="webwork" %>
<%@ taglib uri="webwork" prefix="ui" %>
<%@ taglib uri="sitemesh-page" prefix="page" %>
<html>
<head>
	<title><webwork:text name="'configureportal.title'"/></title>
</head>
<body>
<table cellpadding=0 cellspacing=0 border=0 width=100%>
<tr>
<td width=200 bgcolor="f0f0f0" valign=top>
    <webwork:property value="remoteUser">
    <jsp:include page="/includes/panels/user_summary_pane.jsp" />
    </webwork:property>
</td>
<td bgcolor=ffffff valign=top>
<table width=100% cellpadding=10 cellspacing=0 border=0><tr><td>

    <script language="javascript">
        function unselectList(list)
        {
            document.forms['jiraform'].elements[list].selectedIndex=-1;
        }
    </script>

    <page:applyDecorator name="jiraform">
        <page:param name="title"><webwork:text name="'configureportal.title'"/></page:param>
        <page:param name="description"><webwork:text name="'configureportal.desc.line1'">
                        <webwork:param name="'value0'"><a href="<%= request.getContextPath() %>/secure/Dashboard.jspa"></webwork:param>
                        <webwork:param name="'value1'"></a></webwork:param>
                    </webwork:text>
                <br><webwork:text name="'configureportal.desc.line2'"></webwork:text>
        </page:param>
        <page:param name="action">DashboardConfig.jspa</page:param>
        <page:param name="helpURL">dashboard</page:param>
        <page:param name="width">100%</page:param>
        <tr><td colspan="2" bgcolor="ffffff" align="center">

        <table cellpadding=2 cellspacing=0 border=0 width=100% align=center style="border-bottom: 1px solid #bbb;">
        <tr>
            <webwork:iterator value="/dashboardPages">
                <webwork:if test="/portalConfig/pageName == pageName">
                    <td bgcolor=bbbbbb width="1%" nowrap align=center>
                        &nbsp;<font color=ffffff><b><webwork:if test="pageName == 'dashboard'"><webwork:text name="'common.concepts.dashboard'" /></webwork:if><webwork:else><webwork:property value="pageName" /></webwork:else></b></font>&nbsp;
                    </td>
                </webwork:if>
                <webwork:else>
                    <td width="1%" nowrap align=center>
                        &nbsp;<b><a href="DashboardConfig.jspa?selectPageId=<webwork:property value="./id"/>"><webwork:if test="pageName == 'dashboard'"><webwork:text name="'common.concepts.dashboard'" /></webwork:if><webwork:else><webwork:property value="pageName" /></webwork:else></a></b>&nbsp;
                    </td>
                </webwork:else>
            </webwork:iterator>

            <td align=right>
                <font size=1>
                    <a href="Dashboard.jspa"><webwork:text name="'configureportal.return.dashboard'"/></a>
                    <webwork:if test="/multiplePortalPagesEnabled == true">
                        | <a href="ConfigurePortalPages!default.jspa"><webwork:text name="'portal.configure'"/></a>
                    </webwork:if>
                    &nbsp; &nbsp;
                </font>
            </td>
        </tr>
        </table>

        <table cellpadding=4 cellspacing=1 border=0 width=80%>
            <%@ include file="/includes/panels/portal/configure_dashboard.jsp"%>
            <tr>
                <td align="center"><a href="javascript:unselectList('selectedLeftPortlets')"><webwork:text name="'configureportal.unselect'"/></a></td>
                <td>&nbsp;</td>
                <td align="center"><a href="RestoreDefaultDashboard!default.jspa"><webwork:text name="'restoredefaultdashboard.restoredefaults'"/></a></td>
                <td>&nbsp;</td>
                <td align="center"><a href="javascript:unselectList('selectedRightPortlets')"><webwork:text name="'configureportal.unselect'"/></a></td>
            </tr>
        </table>
        </td></tr>
    </page:applyDecorator>
</td></tr></table>
</td></tr></table>
</body>
</html>