roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mrai...@apache.org
Subject svn commit: r376870 - /incubator/roller/branches/roller_2.1/web/website/CreateWebsite.jsp
Date Fri, 10 Feb 2006 21:56:41 GMT
Author: mraible
Date: Fri Feb 10 13:56:39 2006
New Revision: 376870

URL: http://svn.apache.org/viewcvs?rev=376870&view=rev
Log:
Focus on first field.

Modified:
    incubator/roller/branches/roller_2.1/web/website/CreateWebsite.jsp

Modified: incubator/roller/branches/roller_2.1/web/website/CreateWebsite.jsp
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_2.1/web/website/CreateWebsite.jsp?rev=376870&r1=376869&r2=376870&view=diff
==============================================================================
--- incubator/roller/branches/roller_2.1/web/website/CreateWebsite.jsp (original)
+++ incubator/roller/branches/roller_2.1/web/website/CreateWebsite.jsp Fri Feb 10 13:56:39
2006
@@ -1,106 +1,106 @@
-<%@ include file="/taglibs.jsp" %>
-<script type="text/javascript">
-<!--
-function previewImage(theme) {
-    <% String ctxPath = request.getContextPath(); %>
-    document.preview.src="<%= ctxPath %>/images/preview/sm-theme-" + theme + ".png";
-}
-function cancel() {
-    document.createWebsiteForm.method.value="cancel"; 
-    document.createWebsiteForm.submit();
-}
-function handlePreview() {
-	previewSpan = document.getElementById("handlePreview");
-	var n1 = previewSpan.childNodes[0];
-    var n2 = document.createTextNode(document.createWebsiteForm.handle.value);
-    if (n1 == null) {
-	    previewSpan.appendChild(n2);
-    } else {
-	    previewSpan.replaceChild(n2, n1);
-    }
-}
--->
-</script>
-
-<p class="subtitle"><fmt:message key="createWebsite.prompt" /></p>
-
-<br /> 
-<html:form action="/editor/createWebsite" method="post" focus="handle">
-<input type="hidden" name="method" value="save"></input> 
-
-<table class="formtable">
-
-<tr>
-    <td class="label"><label for="name" /><fmt:message key="createWebsite.name"
/></label></td>
-    <td class="field"><html:text property="name" size="30" maxlength="30" /></td>
-    <td class="description"><fmt:message key="createWebsite.tip.name" /></td>
-</tr>
-
-<tr>
-    <td class="label"><label for="description" /><fmt:message key="createWebsite.description"
/></td>
-    <td class="field"><html:text property="description" size="30" maxlength="30"
/></td>
-    <td class="description"><fmt:message key="createWebsite.tip.description" /></td>
-</tr>
-
-<tr>
-    <td class="label"><label for="handle" /><fmt:message key="createWebsite.handle"
/></label></td>
-    <td class="field">
-        <html:text property="handle" size="30" maxlength="30" onkeyup="handlePreview()"
/><br />
-        <span style="text-size:70%">
-            <fmt:message key="createWebsite.weblogUrl" />:&nbsp;
-            <c:out value="${model.baseURL}" />/page/<span id="handlePreview" style="color:red">handle</span>
-        </span>
-    </td>
-    <td class="description"><fmt:message key="createWebsite.tip.handle" /></td>
-</tr>
-
-<tr>
-    <td class="label"><label for="emailAddress" /><fmt:message key="createWebsite.emailAddress"
/></label></td>
-    <td class="field"><html:text property="emailAddress" size="40" maxlength="50"
/></td>
-    <td class="description"><fmt:message key="createWebsite.tip.email" /></td>
-</tr>
-
-<tr>
-    <td class="label"><label for="locale" /><fmt:message key="createWebsite.locale"
/></label></td>
-    <td class="field">
-       <html:select property="locale" size="1" >
-          <html:options collection="locales" property="value" labelProperty="label"/>
-       </html:select>    
-    </td>
-    <td class="description"><fmt:message key="createWebsite.tip.locale" /></td>
-</tr>
-
-<tr>
-    <td class="label"><label for="timeZone" /><fmt:message key="createWebsite.timeZone"
/></label></td>
-    <td class="field">
-       <html:select property="timeZone" size="1" >
-           <html:options collection="timeZones" property="value" labelProperty="label"/>
-       </html:select>
-    </td>
-    <td class="description"><fmt:message key="createWebsite.tip.timezone" /></td>
-</tr>
-
-<tr>
-    <td class="label"><label for="theme" /><fmt:message key="createWebsite.theme"
/></label></td>
-    <td class="field">
-       <html:select property="theme" size="1" onchange="previewImage(this[selectedIndex].value)">
-           <html:options name="model" property="themes" />
-       </html:select>
-       <br />
-       <br />
-       <img name="preview" src="<%= request.getContextPath() %>/images/preview/sm-theme-basic.png"
height="268" width="322" />
-    </td>
-    <td class="description"><fmt:message key="createWebsite.tip.theme" /></td>
-</tr>
-</table>
-
-<br />
-   
-<input type="submit" value='<fmt:message key="createWebsite.button.save" />'></input>
-<input type="button" value='<fmt:message key="createWebsite.button.cancel" />' onclick="cancel()"></input>
-    
-</html:form>
-
-
-
-
+<%@ include file="/taglibs.jsp" %>
+<script type="text/javascript">
+<!--
+function previewImage(theme) {
+    <% String ctxPath = request.getContextPath(); %>
+    document.preview.src="<%= ctxPath %>/images/preview/sm-theme-" + theme + ".png";
+}
+function cancel() {
+    document.createWebsiteForm.method.value="cancel"; 
+    document.createWebsiteForm.submit();
+}
+function handlePreview() {
+	previewSpan = document.getElementById("handlePreview");
+	var n1 = previewSpan.childNodes[0];
+    var n2 = document.createTextNode(document.createWebsiteForm.handle.value);
+    if (n1 == null) {
+	    previewSpan.appendChild(n2);
+    } else {
+	    previewSpan.replaceChild(n2, n1);
+    }
+}
+-->
+</script>
+
+<p class="subtitle"><fmt:message key="createWebsite.prompt" /></p>
+
+<br /> 
+<html:form action="/editor/createWebsite" method="post" focus="name">
+<input type="hidden" name="method" value="save"></input> 
+
+<table class="formtable">
+
+<tr>
+    <td class="label"><label for="name" /><fmt:message key="createWebsite.name"
/></label></td>
+    <td class="field"><html:text property="name" size="30" maxlength="30" /></td>
+    <td class="description"><fmt:message key="createWebsite.tip.name" /></td>
+</tr>
+
+<tr>
+    <td class="label"><label for="description" /><fmt:message key="createWebsite.description"
/></td>
+    <td class="field"><html:text property="description" size="30" maxlength="30"
/></td>
+    <td class="description"><fmt:message key="createWebsite.tip.description" /></td>
+</tr>
+
+<tr>
+    <td class="label"><label for="handle" /><fmt:message key="createWebsite.handle"
/></label></td>
+    <td class="field">
+        <html:text property="handle" size="30" maxlength="30" onkeyup="handlePreview()"
/><br />
+        <span style="text-size:70%">
+            <fmt:message key="createWebsite.weblogUrl" />:&nbsp;
+            <c:out value="${model.baseURL}" />/page/<span id="handlePreview" style="color:red">handle</span>
+        </span>
+    </td>
+    <td class="description"><fmt:message key="createWebsite.tip.handle" /></td>
+</tr>
+
+<tr>
+    <td class="label"><label for="emailAddress" /><fmt:message key="createWebsite.emailAddress"
/></label></td>
+    <td class="field"><html:text property="emailAddress" size="40" maxlength="50"
/></td>
+    <td class="description"><fmt:message key="createWebsite.tip.email" /></td>
+</tr>
+
+<tr>
+    <td class="label"><label for="locale" /><fmt:message key="createWebsite.locale"
/></label></td>
+    <td class="field">
+       <html:select property="locale" size="1" >
+          <html:options collection="locales" property="value" labelProperty="label"/>
+       </html:select>    
+    </td>
+    <td class="description"><fmt:message key="createWebsite.tip.locale" /></td>
+</tr>
+
+<tr>
+    <td class="label"><label for="timeZone" /><fmt:message key="createWebsite.timeZone"
/></label></td>
+    <td class="field">
+       <html:select property="timeZone" size="1" >
+           <html:options collection="timeZones" property="value" labelProperty="label"/>
+       </html:select>
+    </td>
+    <td class="description"><fmt:message key="createWebsite.tip.timezone" /></td>
+</tr>
+
+<tr>
+    <td class="label"><label for="theme" /><fmt:message key="createWebsite.theme"
/></label></td>
+    <td class="field">
+       <html:select property="theme" size="1" onchange="previewImage(this[selectedIndex].value)">
+           <html:options name="model" property="themes" />
+       </html:select>
+       <br />
+       <br />
+       <img name="preview" src="<%= request.getContextPath() %>/images/preview/sm-theme-basic.png"
height="268" width="322" />
+    </td>
+    <td class="description"><fmt:message key="createWebsite.tip.theme" /></td>
+</tr>
+</table>
+
+<br />
+   
+<input type="submit" value='<fmt:message key="createWebsite.button.save" />'></input>
+<input type="button" value='<fmt:message key="createWebsite.button.cancel" />' onclick="cancel()"></input>
+    
+</html:form>
+
+
+
+



Mime
View raw message