From 2c74374ce2b17acf50fce95d5092b63b0c08defe Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Tue, 18 Jul 2006 17:34:43 +0000 Subject: [PATCH] . Dashboards impl checkpoint - configurable JSP layouts - configurable "dashlets" (JSP snipets) - page config (de)serialisation per user git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3345 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- source/web/jsp/dashboards/container.jsp | 123 ++++++++++++++++++ .../dashboards/dashlets/getting-started.jsp | 57 ++++++++ .../web/jsp/dashboards/dashlets/tasklist.jsp | 22 ++++ source/web/jsp/dashboards/dummy.jsp | 16 +++ .../layouts/narrow-left-2column.jsp | 78 +++++++++++ .../layouts/narrow-right-2column.jsp | 78 +++++++++++ .../jsp/dashboards/layouts/single-column.jsp | 56 ++++++++ .../jsp/dashboards/layouts/three-column.jsp | 104 +++++++++++++++ 8 files changed, 534 insertions(+) create mode 100644 source/web/jsp/dashboards/container.jsp create mode 100644 source/web/jsp/dashboards/dashlets/getting-started.jsp create mode 100644 source/web/jsp/dashboards/dashlets/tasklist.jsp create mode 100644 source/web/jsp/dashboards/dummy.jsp create mode 100644 source/web/jsp/dashboards/layouts/narrow-left-2column.jsp create mode 100644 source/web/jsp/dashboards/layouts/narrow-right-2column.jsp create mode 100644 source/web/jsp/dashboards/layouts/single-column.jsp create mode 100644 source/web/jsp/dashboards/layouts/three-column.jsp diff --git a/source/web/jsp/dashboards/container.jsp b/source/web/jsp/dashboards/container.jsp new file mode 100644 index 0000000000..63a8decb8b --- /dev/null +++ b/source/web/jsp/dashboards/container.jsp @@ -0,0 +1,123 @@ +<%-- + Copyright (C) 2005 Alfresco, Inc. + + Licensed under the Mozilla Public License version 1.1 + with a permitted attribution clause. You may obtain a + copy of the License at + + http://www.alfresco.org/legal/license.txt + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + either express or implied. See the License for the specific + language governing permissions and limitations under the + License. +--%> +<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> +<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %> +<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %> + +<%@ page buffer="32kb" contentType="text/html;charset=UTF-8" %> +<%@ page isELIgnored="false" %> +<%@ page import="org.alfresco.web.app.Application" %> +<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %> + + + + + + <%-- load a bundle of properties with I18N strings --%> + + + + + <%-- Main outer table --%> + + + <%-- Title bar --%> + + + + + <%-- Main area --%> + + <%-- Shelf --%> + + + <%-- Work Area --%> + + +
+ <%@ include file="../parts/titlebar.jsp" %> +
+ <%@ include file="../parts/shelf.jsp" %> + + + <%-- Breadcrumb --%> + <%@ include file="../parts/breadcrumb.jsp" %> + + <%-- Status and Actions --%> + + + + + + + <%-- separator row with gradient shadow --%> + + + + + + + <%-- Details --%> + + + + + + + <%-- separator row with bottom panel graphics --%> + + + + + + +
+ + <%-- Status and Actions inner contents table --%> + <%-- Generally this consists of an icon, textual summary and actions for the current object --%> + + + + + +
+ + +
+
+
+ +
+ + + + +
+ + + +
+
+
+ +
+ +
+ +
\ No newline at end of file diff --git a/source/web/jsp/dashboards/dashlets/getting-started.jsp b/source/web/jsp/dashboards/dashlets/getting-started.jsp new file mode 100644 index 0000000000..f7dd0ffa14 --- /dev/null +++ b/source/web/jsp/dashboards/dashlets/getting-started.jsp @@ -0,0 +1,57 @@ +<%-- + Copyright (C) 2006 Alfresco, Inc. + + Licensed under the Mozilla Public License version 1.1 + with a permitted attribution clause. You may obtain a + copy of the License at + + http://www.alfresco.org/legal/license.txt + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + either express or implied. See the License for the specific + language governing permissions and limitations under the + License. +--%> +<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> +<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> +<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %> +<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %> + +<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %> + + +<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "yellow", "#ffffcc"); %> + + + + + + + + + + +
+ +
+
+ + + + + +
+ +
+
+ + + + + +
+ +<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "yellow"); %> + diff --git a/source/web/jsp/dashboards/dashlets/tasklist.jsp b/source/web/jsp/dashboards/dashlets/tasklist.jsp new file mode 100644 index 0000000000..74ac3923e7 --- /dev/null +++ b/source/web/jsp/dashboards/dashlets/tasklist.jsp @@ -0,0 +1,22 @@ +<%-- + Copyright (C) 2006 Alfresco, Inc. + + Licensed under the Mozilla Public License version 1.1 + with a permitted attribution clause. You may obtain a + copy of the License at + + http://www.alfresco.org/legal/license.txt + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + either express or implied. See the License for the specific + language governing permissions and limitations under the + License. +--%> +<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> +<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> +<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %> +<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %> + + diff --git a/source/web/jsp/dashboards/dummy.jsp b/source/web/jsp/dashboards/dummy.jsp new file mode 100644 index 0000000000..2893239647 --- /dev/null +++ b/source/web/jsp/dashboards/dummy.jsp @@ -0,0 +1,16 @@ +<%-- + Copyright (C) 2005 Alfresco, Inc. + + Licensed under the Mozilla Public License version 1.1 + with a permitted attribution clause. You may obtain a + copy of the License at + + http://www.alfresco.org/legal/license.txt + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + either express or implied. See the License for the specific + language governing permissions and limitations under the + License. +--%> \ No newline at end of file diff --git a/source/web/jsp/dashboards/layouts/narrow-left-2column.jsp b/source/web/jsp/dashboards/layouts/narrow-left-2column.jsp new file mode 100644 index 0000000000..b542179227 --- /dev/null +++ b/source/web/jsp/dashboards/layouts/narrow-left-2column.jsp @@ -0,0 +1,78 @@ +<%-- + Copyright (C) 2006 Alfresco, Inc. + + Licensed under the Mozilla Public License version 1.1 + with a permitted attribution clause. You may obtain a + copy of the License at + + http://www.alfresco.org/legal/license.txt + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + either express or implied. See the License for the specific + language governing permissions and limitations under the + License. +--%> +<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> +<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> +<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %> +<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %> + +<%@ page import="org.alfresco.web.app.Application" %> + + + <% Application.getDashboardManager().initDashboard(); %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source/web/jsp/dashboards/layouts/narrow-right-2column.jsp b/source/web/jsp/dashboards/layouts/narrow-right-2column.jsp new file mode 100644 index 0000000000..9ba8d8842a --- /dev/null +++ b/source/web/jsp/dashboards/layouts/narrow-right-2column.jsp @@ -0,0 +1,78 @@ +<%-- + Copyright (C) 2006 Alfresco, Inc. + + Licensed under the Mozilla Public License version 1.1 + with a permitted attribution clause. You may obtain a + copy of the License at + + http://www.alfresco.org/legal/license.txt + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + either express or implied. See the License for the specific + language governing permissions and limitations under the + License. +--%> +<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> +<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> +<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %> +<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %> + +<%@ page import="org.alfresco.web.app.Application" %> + + + <% Application.getDashboardManager().initDashboard(); %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source/web/jsp/dashboards/layouts/single-column.jsp b/source/web/jsp/dashboards/layouts/single-column.jsp new file mode 100644 index 0000000000..61456ebdd0 --- /dev/null +++ b/source/web/jsp/dashboards/layouts/single-column.jsp @@ -0,0 +1,56 @@ +<%-- + Copyright (C) 2006 Alfresco, Inc. + + Licensed under the Mozilla Public License version 1.1 + with a permitted attribution clause. You may obtain a + copy of the License at + + http://www.alfresco.org/legal/license.txt + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + either express or implied. See the License for the specific + language governing permissions and limitations under the + License. +--%> +<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> +<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> +<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %> +<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %> + +<%@ page import="org.alfresco.web.app.Application" %> + +<% Application.getDashboardManager().initDashboard(); %> + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source/web/jsp/dashboards/layouts/three-column.jsp b/source/web/jsp/dashboards/layouts/three-column.jsp new file mode 100644 index 0000000000..71fc017b9a --- /dev/null +++ b/source/web/jsp/dashboards/layouts/three-column.jsp @@ -0,0 +1,104 @@ +<%-- + Copyright (C) 2006 Alfresco, Inc. + + Licensed under the Mozilla Public License version 1.1 + with a permitted attribution clause. You may obtain a + copy of the License at + + http://www.alfresco.org/legal/license.txt + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + either express or implied. See the License for the specific + language governing permissions and limitations under the + License. +--%> +<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> +<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> +<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %> +<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %> + +<%@ page import="org.alfresco.web.app.Application" %> + +<%=Application.getDashboardManager()...%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +