| <!-- |
| 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. |
| --> |
| <%@ include file="/taglibs.jsp" %>
|
|
|
| <c:if test="${!empty parentFolder.parent.path}">
|
| <c:set var="folderName" value="${parentFolder.parent.path}" />
|
| </c:if>
|
| <c:if test="${empty parentFolder.parent.path}">
|
| <c:set var="folderName" value="/" />
|
| </c:if>
|
|
|
| <p class="subtitle">
|
| <c:if test="${state == 'add'}">
|
| <fmt:message key="bookmarkForm.add.subtitle" >
|
| <fmt:param value="${folderName}" />
|
| </fmt:message>
|
| </c:if>
|
| <c:if test="${state == 'edit'}">
|
| <fmt:message key="bookmarkForm.edit.subtitle" >
|
| <fmt:param value="${folderName}" />
|
| </fmt:message>
|
| </c:if>
|
| <c:if test="${state == 'correct'}">
|
| <fmt:message key="bookmarkForm..correct.subtitle" >
|
| <fmt:param value="${folderName}" />
|
| </fmt:message>
|
| </c:if>
|
| </p>
|
|
|
| <p>
|
| <b><fmt:message key="bookmarksForm.path" /></b>:
|
| <c:out value="${folderName}" />
|
| </p>
|
|
|
| <html:form action="/editor/bookmarkSave" method="post" focus="name">
|
|
|
| <html:hidden property="method" value="update"/></input>
|
| <html:hidden property="id" /></input>
|
|
|
| <input type="hidden" name="<%= RollerRequest.FOLDERID_KEY %>"
|
| value="<%= request.getAttribute(RollerRequest.FOLDERID_KEY) %>" />
|
|
|
| <table>
|
|
|
| <tr>
|
| <td><fmt:message key="bookmarkForm.name" /></td>
|
| <td><html:text property="name" maxlength="255" size="70" /></input></td>
|
| </tr>
|
|
|
| <tr>
|
| <td><fmt:message key="bookmarkForm.description" /></td>
|
| <td><html:textarea property="description" rows="5" cols="50" /></td>
|
| </tr>
|
|
|
| <tr>
|
| <td><fmt:message key="bookmarkForm.url" /></td>
|
| <td><html:text property="url" maxlength="255" size="70" /></input></td>
|
| </tr>
|
|
|
| <tr>
|
| <td><fmt:message key="bookmarkForm.rssUrl" /></td>
|
| <td><html:text property="feedUrl" maxlength="255" size="70" /></input></td>
|
| </tr>
|
|
|
| <tr>
|
| <td><fmt:message key="bookmarkForm.image" /></td>
|
| <td><html:text property="image" maxlength="255" size="70" /></input></td>
|
| </tr>
|
|
|
| <tr>
|
| <td><fmt:message key="bookmarkForm.priority" /></td>
|
| <td><html:text property="priority" maxlength="255" size="5" /></input></td>
|
| </tr>
|
|
|
| <tr>
|
| <td><fmt:message key="bookmarkForm.weight" /></td>
|
| <td><html:text property="weight" maxlength="255" size="5" /></input></td>
|
| </tr>
|
|
|
| </table>
|
|
|
| <p>
|
| <input type="submit" value="<fmt:message key='bookmarkForm.save'/>" />
|
| <input type="button" value="<fmt:message key='bookmarkForm.cancel' />"
|
| onclick="window.location = 'bookmarks.do?method=selectFolder&folderId=<%=
|
| request.getAttribute(RollerRequest.FOLDERID_KEY) %>'" />
|
| </p>
|
|
|
| </html:form>
|