Update of 
/var/cvs/contributions/CMSContainer_Portlets/portlets-login/src/webapp/WEB-INF/templates/edit_defaults/login
In directory 
james.mmbase.org:/tmp/cvs-serv21965/src/webapp/WEB-INF/templates/edit_defaults/login

Modified Files:
        login.jsp 
Log Message:
CMSC-1355  LoginPortlet: add redirect possibility if successful logged in


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-login/src/webapp/WEB-INF/templates/edit_defaults/login
See also: http://www.mmbase.org/jira/browse/CMSC-1355


Index: login.jsp
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-login/src/webapp/WEB-INF/templates/edit_defaults/login/login.jsp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- login.jsp   27 Mar 2009 11:55:19 -0000      1.8
+++ login.jsp   31 Mar 2009 08:14:46 -0000      1.9
@@ -1,6 +1,15 @@
 <%...@include file="/WEB-INF/templates/portletglobals.jsp"%>
 <%...@include file="/WEB-INF/templates/edit_defaults/sections/globals.jsp"%>
 <div class="portlet-config-canvas">
+<script type="text/javascript">
+   function selectPage(page, path, positions) {
+      document.forms['<portlet:namespace />form'].page.value = page;
+      document.forms['<portlet:namespace />form'].pagepath.value = path;
+   }
+   function erase(field) {
+      document.forms['<portlet:namespace />form'][field].value = '';
+   }
+</script>
        <form name="<portlet:namespace />form" method="post" target="_parent" 
action="<cmsc:actionURL><cmsc:param name="action" 
value="edit"/></cmsc:actionURL>">
                <table class="editcontent">
 
@@ -34,9 +43,26 @@
                                        <textarea name="emailText" rows="8" 
cols="25"><c:out value="${emailText}" /></textarea>
                                </td>
                        </tr>
-
+        <tr>
+           <td nowrap><fmt:message key="edit_defaults.login.redirect" />:</td>
+           <td nowrap> 
+               <a href="<c:url 
value='/editors/site/select/SelectorPage.do?channel=${page}' />"
+                  target="selectpage" onclick="openPopupWindow('selectpage', 
340, 400)"> 
+                     <img src="<cmsc:staticurl 
page='/editors/gfx/icons/select.png'/>" alt="<fmt:message 
key="edit_defaults.channelselect" />"/></a>
+               <a 
href="javascript:erase('page');erase('pagepath');eraseList('window')">
+                  <img src="<cmsc:staticurl 
page='/editors/gfx/icons/erase.png'/>" alt="<fmt:message 
key="edit_defaults.erase"/>"/></a>
+            </td>
+            <td>
+            <mm:cloud>
+               <mm:node number="${page}" notfound="skip">
+                  <mm:field name="path" id="pagepath" write="false" />
+               </mm:node>
+            </mm:cloud>
+            <input type="hidden" name="page" value="${page}" />
+            <input type="text" name="pagepath" value="${pagepath}" 
disabled="true" />
+         </tr>
                        <%-- Save button --%>
-                       <c:import url="sections/savebutton.jsp" />
+                       <c:import url="../sections/savebutton.jsp" />
                        
                </table>
        </form>
_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to