Improve import layout.

This commit is contained in:
Paulo Gustavo Veiga 2012-05-24 00:35:17 -03:00
parent fc1ee1ff2e
commit a832d72bac
4 changed files with 44 additions and 69 deletions

View File

@ -163,7 +163,7 @@
<definition name="importMap" extends="pageTemplate">
<put name="title" value="IMPORT_MINDMAP"/>
<put name="details" value="IMPORT_MINDMAP_INFO"/>
<put name="body" value="/jsp/mindmapImportError.jsp"/>
<put name="body" value="/jsp/mindmapImport.jsp"/>
</definition>
<definition name="activationAccountConfirmation" extends="pageTemplate">

View File

@ -20,8 +20,7 @@
<form action="<c:url value='/c/j_spring_security_check'/>" method="POST">
<fieldset>
<label for="email">
<spring:message code="EMAIL"/>
<label for="email"><spring:message code="EMAIL"/></label>
<input type='email' tabindex="1" id="email" name='j_username' required="required"/>
<label for="password"><spring:message code="PASSWORD"/></label>

View File

@ -1,43 +1,29 @@
<%@ include file="/jsp/init.jsp" %>
<div id="importContainer">
<div class="fform">
<h1>
<spring:message code="${requestScope.title}"/>
</h1>
<p><spring:message code="${requestScope.details}"/></p>
<form:form method="post" commandName="importMap" enctype="multipart/form-data">
<table>
<tr>
<td class="formLabel">
<spring:message code="NAME"/>:
</td>
<td>
<form:input path="title" id="title" tabindex="1"/>
<fieldset>
<label for="title"><spring:message code="NAME"/></label>
<form:input path="title" id="title" tabindex="1" required="required"/>
<form:errors path="title" cssClass="errorMsg"/>
</td>
</tr>
<tr>
<td class="formLabel">
<spring:message code="DESCRIPTION"/>:
</td>
<td>
<label for="title"><spring:message code="DESCRIPTION"/></label>
<form:input path="description" id="description" tabindex="2"/>
<form:errors path="description" cssClass="errorMsg"/>
</td>
</tr>
<tr>
<td class="formLabel">
<span class="fieldRequired">*</span>
<spring:message code="FREE_MIND_FILE"/>:
</td>
<td>
<input type="file" name="mapFile"/>
<label for="mapFile"><spring:message code="FREE_MIND_FILE"/></label>
<input type="file" name="mapFile" id="mapFile"/>
<form:errors path="mapFile" cssClass="errorMsg"/>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<input type="submit" value="<spring:message code="IMPORT"/>" class="btn btn-primary">
</fieldset>
<input type="submit" value="<spring:message code="IMPORT"/>" class="btn btn-primary"/>
<input type="button" value="<spring:message code="CANCEL"/>" class="btn"
onclick="window.location='/c/mymaps.htm'">
</td>
</tr>
</table>
</form:form>
</div>

View File

@ -1,10 +0,0 @@
<%@ include file="/jsp/init.jsp" %>
<h1>
<spring:message code="${requestScope.title}"/>
</h1>
<p style="font-weight:bold;">
<spring:message code="${requestScope.details}"/>
</p>
<jsp:include page="/jsp/mindmapImport.jsp"/>