You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by sn...@apache.org on 2006/09/27 22:52:25 UTC
svn commit: r450574 [2/2] - in /incubator/roller/trunk/sandbox/planetroller:
./ nbproject/ src/org/apache/roller/planet/ui/
src/org/apache/roller/planet/ui/forms/
src/org/apache/roller/planet/ui/utils/ src/org/apache/roller/planet/utils/
web/ web/WEB-I...
Added: incubator/roller/trunk/sandbox/planetroller/web/planet-ui/groupForm.jsp
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/sandbox/planetroller/web/planet-ui/groupForm.jsp?view=auto&rev=450574
==============================================================================
--- incubator/roller/trunk/sandbox/planetroller/web/planet-ui/groupForm.jsp (added)
+++ incubator/roller/trunk/sandbox/planetroller/web/planet-ui/groupForm.jsp Wed Sep 27 13:52:23 2006
@@ -0,0 +1,160 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. The ASF licenses this file to You
+ under the Apache License, Version 2.0 (the "License"); you may not
+ use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ 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. For additional information regarding
+ copyright in this work, please see the NOTICE file in the top level
+ directory of this distribution.
+--%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<%@page contentType="text/html"%>
+<%@page pageEncoding="UTF-8"%>
+<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
+<html>
+<f:view>
+<f:loadBundle basename="ApplicationResources" var="msgs" />
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <title><h:outputText value="#{msgs.groupPageTitle}" /></title>
+ <link rel="stylesheet" type="text/css" href='<c:url value="/planet.css" />' />
+</head>
+<body>
+<div id="wrapper">
+<%@include file="/planet-ui/menu.jsp" %>
+
+<h2><h:outputText value="#{msgs.groupPageTitle}" /></h2>
+<p><h:outputText value="#{msgs.groupHelp}" /></p>
+
+<h:form id="groupForm">
+<p><h:outputLink value="./groupsList.faces">
+ <h:outputText value="#{msgs.groupReturnToList}" />
+</h:outputLink></p>
+
+<h:inputHidden value="#{groupForm.group.id}" />
+<h:panelGrid columns="2" columnClasses="labelColumn,valueColumn">
+
+ <h:outputText value="#{msgs.groupTitle}" />
+ <h:panelGroup>
+ <h:inputText id="title" value="#{groupForm.group.title}" required="true" size="20">
+ <f:validateLength minimum="1" />
+ </h:inputText>
+ <h:message for="title" styleClass="fieldError" />
+ </h:panelGroup>
+
+ <h:outputText value="#{msgs.groupHandle}" />
+ <h:panelGroup>
+ <h:inputText id="handle" value="#{groupForm.group.handle}" required="true" size="20">
+ <f:validateLength minimum="1" />
+ </h:inputText>
+ <h:message for="handle" styleClass="fieldError" />
+ </h:panelGroup>
+
+ <h:outputText value="#{msgs.groupDescription}" />
+ <h:panelGroup>
+ <h:inputText id="description" value="#{groupForm.group.description}" required="false" size="60">
+ </h:inputText>
+ <h:message for="description" styleClass="fieldError" />
+ </h:panelGroup>
+
+</h:panelGrid>
+
+<p />
+<h:commandButton value="#{msgs.appSave}" action="#{groupForm.save}" />
+
+<c:if test="${groupForm.group.id != null}">
+<h2><h:outputText value="#{msgs.groupSubscriptions}" /></h2>
+
+<h:dataTable value="#{groupForm.subscriptions}" var="sub"
+ styleClass="data" rowClasses="oddRow,evenRow"
+ columnClasses=",narrowColumn,narrowColumn,narrowColumn">
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="#{msgs.groupSubscriptionTitle}" />
+ </f:facet>
+ <h:outputLink value="./subscriptionForm.faces?subid=#{sub.id}&groupid=#{groupForm.group.id}">
+ <h:outputText value="#{sub.title}" />
+ </h:outputLink>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="#{msgs.groupSubscriptionSiteURL}" />
+ </f:facet>
+ <h:outputLink value="#{sub.siteURL}" target="_blank"
+ title="#{sub.siteURL}" >
+ <h:graphicImage style="" value="../images/feed_link.png" />
+ <h:outputText value="link" />
+ </h:outputLink>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="#{msgs.groupSubscriptionFeedURL}" />
+ </f:facet>
+ <h:outputLink value="#{sub.feedURL}" target="_blank"
+ title="#{sub.feedURL}" >
+ <h:graphicImage style="" value="../images/feed_link.png" />
+ <h:outputText value="link" />
+ </h:outputLink>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="#{msgs.appAction}" />
+ </f:facet>
+ <h:outputLink value="javascript:removeSubscription('#{sub.id}','#{sub.title}')">
+ <h:graphicImage value="../images/delete.png" />
+ <h:outputText value="#{msgs.appRemove}" />
+ </h:outputLink>
+ </h:column>
+
+</h:dataTable>
+
+<p />
+<t:commandLink id="addSubscriptionLink" forceId="true" action="#{subscriptionForm.edit}" >
+ <h:graphicImage style="" value="../images/feed_add.png" />
+ <h:outputText value="#{msgs.groupAddSubscription}" />
+ <f:param name="groupid" value="#{groupForm.group.id}" />
+</t:commandLink>
+
+<%-- Kludgey way to get a confirm remove popup --%>
+<t:commandLink id="removeSubscriptionLink" forceId="true" action="#{groupForm.removeSubscription}" >
+ <f:param name="subid" value="" />
+ <f:param name="groupid" value="#{groupForm.group.id}" />
+</t:commandLink>
+<script type="text/javascript">
+function removeSubscription(subid, handle) {
+ if (window.confirm('<h:outputText value="#{msgs.groupConfirmSubscriptionRemove} " />' + handle)) {
+ clear_groupForm();
+ var f = document.forms['groupForm'];
+ f.elements['groupForm:_link_hidden_'].value='removeSubscriptionLink';
+ f.elements['subid'].value=subid;
+ f.submit();
+ }
+}
+</script>
+</c:if>
+</h:form>
+
+</div>
+</body>
+</f:view>
+</html>
+
+
+
+
+
+
Added: incubator/roller/trunk/sandbox/planetroller/web/planet-ui/groupsList.jsp
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/sandbox/planetroller/web/planet-ui/groupsList.jsp?view=auto&rev=450574
==============================================================================
--- incubator/roller/trunk/sandbox/planetroller/web/planet-ui/groupsList.jsp (added)
+++ incubator/roller/trunk/sandbox/planetroller/web/planet-ui/groupsList.jsp Wed Sep 27 13:52:23 2006
@@ -0,0 +1,104 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. The ASF licenses this file to You
+ under the Apache License, Version 2.0 (the "License"); you may not
+ use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ 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. For additional information regarding
+ copyright in this work, please see the NOTICE file in the top level
+ directory of this distribution.
+--%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<%@page contentType="text/html"%>
+<%@page pageEncoding="UTF-8"%>
+<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
+<html>
+<f:view>
+<f:loadBundle basename="ApplicationResources" var="msgs" />
+<fmt:setBundle basename="ApplicationResources" />
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <title><h:outputText value="#{msgs.groupsPageTitle}" /></title>
+ <link rel="stylesheet" type="text/css" href='<c:url value="/planet.css" />' />
+</head>
+<body>
+<div id="wrapper">
+<%@include file="/planet-ui/menu.jsp" %>
+
+<h2><h:outputText value="#{msgs.groupsListTitle}" /></h2>
+<p><h:outputText value="#{msgs.groupsHelp}" /></p>
+
+<h:form>
+<h:dataTable value="#{groupsList.groups}" var="group"
+ styleClass="data" rowClasses="oddRow,evenRow" columnClasses="narrowColumn,,narrowColumn">
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="#{msgs.groupsHandle}" />
+ </f:facet>
+ <h:outputLink value="./groupForm.faces?groupid=#{group.id}">
+ <h:outputText value="#{group.handle}" />
+ </h:outputLink>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="#{msgs.groupsTitle}" />
+ </f:facet>
+ <h:outputText value="#{group.title}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="#{msgs.appAction}" />
+ </f:facet>
+ <h:outputLink value="javascript:deleteGroup('#{group.id}','#{group.handle}')">
+ <h:graphicImage style="" value="../images/delete.png" />
+ <h:outputText value="#{msgs.appDelete}" />
+ </h:outputLink>
+ </h:column>
+
+</h:dataTable>
+
+<p />
+<h:commandLink action="#{groupForm.edit}">
+ <h:graphicImage value="../images/folder_add.png" />
+ <h:outputText value="#{msgs.groupsAddGroup}" />
+</h:commandLink>
+
+<%-- Kludgey way to get a confirm delete popup --%>
+<t:commandLink id="deleteGroupLink" forceId="true" action="#{groupsForm.deleteGroup}" >
+ <f:param name="groupid" value="" />
+</t:commandLink>
+<script type="text/javascript">
+function deleteGroup(groupid, handle) {
+ if (window.confirm('<h:outputText value="#{msgs.groupsConfirmGroupRemove} " />' + handle)) {
+ clear_groupsForm();
+ var f = document.forms['groupsForm'];
+ f.elements['groupsForm:_link_hidden_'].value='deleteGroupLink';
+ f.elements['groupid'].value=groupid;
+ f.submit();
+ }
+}
+</script>
+</h:form>
+
+</div>
+</body>
+</f:view>
+</html>
+
+
+
+
+
+
Added: incubator/roller/trunk/sandbox/planetroller/web/planet-ui/menu.jsp
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/sandbox/planetroller/web/planet-ui/menu.jsp?view=auto&rev=450574
==============================================================================
--- incubator/roller/trunk/sandbox/planetroller/web/planet-ui/menu.jsp (added)
+++ incubator/roller/trunk/sandbox/planetroller/web/planet-ui/menu.jsp Wed Sep 27 13:52:23 2006
@@ -0,0 +1,5 @@
+<h1><h:outputText value="#{msgs.appTitle}" /></h1>
+<a href='<c:url value="/main.faces" />'><h:outputText value="#{msgs.appHome}" /></a> |
+<a href='<c:url value="/planet-ui/configForm.faces" />'><h:outputText value="#{msgs.appConfig}" /></a> |
+<a href='<c:url value="/planet-ui/groupsList.faces" />'><h:outputText value="#{msgs.appGroups}" /></a> |
+<a href='<c:url value="/logout.jsp" />'><h:outputText value="#{msgs.appLogout}" /></a>
\ No newline at end of file
Added: incubator/roller/trunk/sandbox/planetroller/web/planet-ui/subscriptionForm.jsp
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/sandbox/planetroller/web/planet-ui/subscriptionForm.jsp?view=auto&rev=450574
==============================================================================
--- incubator/roller/trunk/sandbox/planetroller/web/planet-ui/subscriptionForm.jsp (added)
+++ incubator/roller/trunk/sandbox/planetroller/web/planet-ui/subscriptionForm.jsp Wed Sep 27 13:52:23 2006
@@ -0,0 +1,92 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. The ASF licenses this file to You
+ under the Apache License, Version 2.0 (the "License"); you may not
+ use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ 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. For additional information regarding
+ copyright in this work, please see the NOTICE file in the top level
+ directory of this distribution.
+--%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<%@page contentType="text/html"%>
+<%@page pageEncoding="UTF-8"%>
+<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
+<html>
+<f:view>
+<f:loadBundle basename="ApplicationResources" var="msgs" />
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <title><h:outputText value="#{msgs.subscriptionPageTitle}" /></title>
+ <link rel="stylesheet" type="text/css" href='<c:url value="/planet.css" />' />
+</head>
+<body>
+<div id="wrapper">
+<%@include file="/planet-ui/menu.jsp" %>
+
+<h:form>
+
+<h2><h:outputText value="#{msgs.subscriptionPageTitle}" /></h2>
+<p><h:outputText value="#{msgs.subscriptionHelp}" /></p>
+
+<%--
+<c:if test="${subscriptionForm.groupid != null}">
+<p><h:outputLink value="./groupForm.faces?groupid=#{subscriptionForm.groupid}">
+ <h:outputText value="Return to group" />
+</h:outputLink></p>
+</c:if>
+--%>
+
+<h:inputHidden value="#{subscriptionForm.subscription.id}" />
+<h:inputHidden value="#{subscriptionForm.groupid}" />
+<h:panelGrid columns="2" columnClasses="labelColumn,valueColumn">
+
+ <h:outputText value="#{msgs.subscriptionTitle}" />
+ <h:panelGroup>
+ <h:inputText id="title" value="#{subscriptionForm.subscription.title}" required="true" size="20">
+ <f:validateLength minimum="1" />
+ </h:inputText>
+ <h:message for="title" styleClass="fieldError" />
+ </h:panelGroup>
+
+ <h:outputText value="#{msgs.subscriptionFeedURL}" />
+ <h:panelGroup>
+ <h:inputText id="feedURL" required="true" size="50"
+ value="#{subscriptionForm.subscription.feedURL}"
+ validator="#{subscriptionForm.checkURL}" />
+ <h:message for="feedURL" styleClass="fieldError" />
+ </h:panelGroup>
+
+ <h:outputText value="#{msgs.subscriptionSiteURL}" />
+ <h:panelGroup>
+ <h:inputText id="siteURL" required="false" size="50"
+ value="#{subscriptionForm.subscription.siteURL}"
+ validator="#{subscriptionForm.checkURL}"/>
+ <h:message for="siteURL" styleClass="fieldError" />
+ </h:panelGroup>
+
+</h:panelGrid>
+
+<p />
+<h:commandButton value="#{msgs.appSave}" action="#{subscriptionForm.save}" />
+</h:form>
+
+</div>
+</body>
+</f:view>
+</html>
+
+
+
+
+
+
Added: incubator/roller/trunk/sandbox/planetroller/web/planet.css
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/sandbox/planetroller/web/planet.css?view=auto&rev=450574
==============================================================================
--- incubator/roller/trunk/sandbox/planetroller/web/planet.css (added)
+++ incubator/roller/trunk/sandbox/planetroller/web/planet.css Wed Sep 27 13:52:23 2006
@@ -0,0 +1,71 @@
+#wrapper {
+ width: 730px;
+ margin-right: auto;
+ margin-left: auto;
+ text-align: left;
+ padding: 15px 20px 15px 20px;
+}
+
+body {
+ color: #666;
+ background-image: url(/planet/images/body-bg-grey.png);
+ background-repeat: no-repeat;
+ background-position: center;
+ text-align: center;
+ margin: 0px;
+ padding: 0px;
+}
+
+h1,h2,h3 {
+ color: #4cbc00;
+ margin: 10px 0px 10px 0px;
+}
+a:link {
+ font-weight: bold;
+ color: #5c67e0;
+}
+a:visited {
+ font-weight: bold;
+ color: #5c67e0;
+}
+img {
+ border: none;
+ padding: 0px 3px 0px 0px;
+}
+.fieldError {
+ color: red;
+}
+
+table.form {
+ width: 80%
+}
+table.data {
+ width: 100%;
+ font-size: small;
+ border-collapse: collapse;
+ border: 1px solid #a0a0a0;
+}
+table.data td, table.data th {
+ border-collapse: collapse;
+ border: 1px solid #a0a0a0;
+ padding: 3px;
+}
+table.data th {
+ background: #f3e4c8;
+}
+td.narrowColumn {
+ width: 15%;
+}
+td.labelColumn {
+ width: 25%;
+}
+td.valueColumn {
+ width: 75%;
+}
+tr.evenRow {
+ background: #f5f5f5;
+}
+table.data th {
+ background-image: url(/planet/images/th-bg-grey.png);
+}
+