From portal-commits at lists.jboss.org Tue Jul 17 15:20:53 2007 Content-Type: multipart/mixed; boundary="===============3258479375501395901==" MIME-Version: 1.0 From: portal-commits at lists.jboss.org To: portal-commits at lists.jboss.org Subject: [portal-commits] JBoss Portal SVN: r7808 - branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin. Date: Tue, 17 Jul 2007 15:20:53 -0400 Message-ID: --===============3258479375501395901== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: sohil.shah(a)jboss.com Date: 2007-07-17 15:20:52 -0400 (Tue, 17 Jul 2007) New Revision: 7808 Added: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/W= EB-INF/jsp/cms/admin/create.jsp Log: CMS Administration: Create File: Validate title has content - JBPORTAL-1544 Added: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-w= ar/WEB-INF/jsp/cms/admin/create.jsp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/= WEB-INF/jsp/cms/admin/create.jsp (rev 0) +++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/= WEB-INF/jsp/cms/admin/create.jsp 2007-07-17 19:20:52 UTC (rev 7808) @@ -0,0 +1,210 @@ +<%@ page import=3D" + org.jboss.portal.core.cms.ui.admin.CMSAdminConstants, + java.util.Locale" %> +<%@ page language=3D"java" extends=3D"org.jboss.portal.core.servlet.jsp.Po= rtalJsp" %> +<%@ taglib uri=3D"http://java.sun.com/portlet" prefix=3D"portlet" %> +<%@ taglib uri=3D"/WEB-INF/portal-lib.tld" prefix=3D"n" %> +<%@ page isELIgnored=3D"false" %> + + + +<% + String sCurrPath =3D (String)request.getAttribute("currpath"); + String[] langs =3D Locale.getISOLanguages(); + String sDocBase =3D (String)request.getAttribute("document_base_url"); + String sCSSURL =3D (String)request.getAttribute("css_url"); + = + //validation handling related data + String sContent =3D (String)request.getAttribute("error:content"); + String description =3D (String)request.getAttribute("error:description"= ); + String title =3D (String)request.getAttribute("error:title"); + String language =3D (String)request.getAttribute("error:language"); + if(sContent =3D=3D null) + { + sContent =3D ""; + } + if(description =3D=3D null) + { + description =3D ""; + } + if(title =3D=3D null) + { + title =3D ""; + } + if(language =3D=3D null) + { + language =3D ""; + } +%> + + + + + + + + + +
+ "/> + + "> + "> + + + + + + + + + + + + + + + + + + + + + +
${n:i18n("TITLE_CREATE")}
+ + + + + + + + + + + + + + + + + + + + + + + + + +
${n:i18n("CMS_CREATEFILEINDIR")}: + <%=3D sCurrPath %> +
${n:i18n("CMS_FILENAME")}: + + : Required +
${n:i18n("CMS_DESCRIPTION")}:" + class=3D"portlet-form-input-field"/>
+ ${n:i18n("CMS_TITLE")}: + " + class=3D"portlet-form-input-field"/> +
+ ${n:i18n("CMS_LANGUAGE")}: + +
+ ${n:i18n("CMS_WYSIWYG")}: + + +
+
+ /info.gif" border=3D"0" + alt=3D"Info"> Links to resources within this portal should be a= bsolute. For example: A link to an image + located in default/images/back.gif + should be typed in exactly as shown here. + Do not prefix a slash (/) to the path of the resource. You can verif= y the link is correct by clicking on the + preview button in the editor. +
+ +
+ + +
+ + + + "/> + "/> + "> + /browse.gif" border=3D"0" + alt=3D"${n:i18n("CMS_BACKTOBROWSER")}"> Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resource= s/portal-cms-war/WEB-INF/jsp/cms/admin/create.jsp ___________________________________________________________________ Name: svn:executable + * --===============3258479375501395901==--