<!-- .\ CONFIGURATION \.___________________________________________ -->
- <!-- The following are needed by the maven-app-configuration-web artifact -->
-
<action name="configureAppearance" class="organisationInfo" method="input">
<result name="input">/WEB-INF/jsp/admin/appearance.jsp</result>
</action>
<%@ taglib prefix="ww" uri="/webwork" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<ww:set name="organisationInfo" value="organisationInfo"/>
+
<html>
<head>
<title>Configure Appearance</title>
<div style="float: right">
<a href="<ww:url action='editAppearance' />">Edit</a>
</div>
-<h2>Organisation Details</h2>
+<h2>Organization Details</h2>
<p>
The logo in the top right of the screen is controlled by the following settings.
<a href="<ww:url action='editAppearance' />">Change your appearence</a>
</p>
+<h3>Organization Information</h3>
+ <table>
+ <tr>
+ <th>Name</th>
+ <td>${organisationName}</td>
+ </tr>
+ <tr>
+ <th>URL</th>
+ <td><a href="${organisationUrl}">
+ <code>${organisationUrl}</code>
+ </a></td>
+ </tr>
+ <tr>
+ <th>Logo URL</th>
+ <td>
+ <code>${organisationLogo}</code>
+ </td>
+ </tr>
+ </table>
</body>
</html>
<body>
<h1>Appearance</h1>
-<h2>Organisation Details</h2>
+<h2>Organization Details</h2>
<p>
- Enter the details of the company super POM below. If it exists, the organization name, URL and logo will be read
- from it.
+ Enter the details of your organization below.
</p>
+<ww:set name="editOrganisationInfo" value="editOrganisationInfo"/>
<ww:actionmessage/>
-<ww:form method="post" action="editAppearance" namespace="/admin" validate="true" theme="xhtml">
- <ww:textfield name="editAppearance.organisationName" label="Organisation Name"/>
- <ww:textfield name="editAppearance.organisationUrl" label="Organisation Url"/>
- <ww:textfield name="editAppearance.organisationLogo" label="Orgnaisation Logo"/>
+<ww:form method="post" action="saveAppearance" namespace="/admin" validate="true" theme="xhtml">
+ <ww:textfield name="organisationName" value="${organisationName}" label="Name"/>
+ <ww:textfield name="organisationUrl" value="${organisationUrl}" label="URL"/>
+ <ww:textfield name="organisationLogo" value="${organisationLogo}" label="Logo URL"/>
<ww:submit value="Save"/>
</ww:form>
</body>
<%@ taglib uri="/webwork" prefix="ww" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<ww:set name="organisationInfo" value="organisationInfo"/>
-<c:if test="${!empty(companyLogo)}">
- <ww:set name="companyUrl" value="companyUrl"/>
+<c:if test="${!empty(organisationLogo)}">
+ <ww:set name="organisationUrl" value="organisationUrl"/>
<c:choose>
- <c:when test="${!empty(companyUrl)}">
+ <c:when test="${!empty(organisationUrl)}">
<a href="${companyUrl}">
- <img src="${companyLogo}" title="${companyName}" border="0" alt=""/>
+ <img src="${organisationLogo}" title="${organisationName}" border="0" alt=""/>
</a>
</c:when>
<c:otherwise>
- <img src="${companyLogo}" title="${companyName}" border="0" alt=""/>
+ <img src="${organisationLogo}" title="${organisationName}" border="0" alt=""/>
</c:otherwise>
</c:choose>
</c:if>