diff src/main/webapp/pages/createFile.jsp @ 95:b27a99201cbe

New feature: new full text search with MySQL ngram parser (5.7.6 above)
author Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
date Mon, 03 Jul 2017 23:48:53 +0200
parents 3e62083dbcbf
children
line wrap: on
line diff
--- a/src/main/webapp/pages/createFile.jsp	Mon Jul 03 23:43:44 2017 +0200
+++ b/src/main/webapp/pages/createFile.jsp	Mon Jul 03 23:48:53 2017 +0200
@@ -9,7 +9,7 @@
 <head>
 
 	<jsp:include page="../componentes/headContent.jsp"/>
-	
+
 	<script>
 		$(function() {
 			$("#sectionId").autocomplete({
@@ -22,7 +22,7 @@
 							term : request.term
 						},
 						success : function(data) {
-	
+
 							response($.map(data, function(item) {
 								return {
 									label : item.name,
@@ -37,50 +37,50 @@
 				},
 				minLength : 0
 			});
-		});			
+		});
 	</script>
-	
-	
+
+
 </head>
 
 <body>
 
-	<jsp:include page="../componentes/template.jsp"/>
+	<jsp:include page="../componentes/template2.jsp"/>
 
 	<div id="page">
-	
+
 		<% if(sessionBean.getUser() == null) { %>
-			<label>You must login!</label>
+        <label class="subTitel">Please login or create a new account above</label>
 		<% } else { %>
-		
+
 			<label class="subTitel">Create New File (Branch)</label>
-			
+
 			<form name="createFileForm"
 				action="<%=sessionBean.getApplicationBean().getRootServer()%>/proxy.jsp"
 				method="post"
 				class="contentForm">
-				<input name="bean" type="hidden" value="createFileBean" /> 
-			
+				<input name="bean" type="hidden" value="createFileBean" />
+
 				<table style="width: 300px; margin-left: auto;margin-right: auto;">
 					<tr>
 						<td><label>Section Id</label></td>
 						<td>
 							<input
 								id="sectionId"
-								name="sectionId"		 
+								name="sectionId"
 								type="text"
 								class="searchInput"
 								value="<%=(sessionBean.getCreateFilePage().getSectionId() == null) ? "" : sessionBean.getCreateFilePage().getSectionId()%>"
-								style="width: 150px;" />						
+								style="width: 150px;" />
 						</td>
 						<td>
 							<input type="submit" value="Load" onclick="setAction('loadSection', 'createFileForm');"/>
 						</td>
 					</tr>
 				</table>
-				
+
 				<% if(sessionBean.getCreateFilePage().getSection() != null) { %>
-					
+
 					<table style="width: 300px; margin-left: auto;margin-right: auto;">
 						<tr>
 							<td><label>Section Name</label></td>
@@ -100,7 +100,7 @@
 								<textarea rows=20" cols="70">
 									<%=sessionBean.getCreateFilePage().getSection().getText() %>
 								</textarea>
-								
+
 							</td>
 						</tr>
 						<tr>
@@ -110,18 +110,18 @@
 									value="Create"
 							 		title="Create Branch in Extraction Interface"
 									onclick="sectionInExtractionInterface(<%=sessionBean.getCreateFilePage().getSectionId() %>, '<%=sessionBean.getCreateFilePage().getSection().getName()%>', <%=sessionBean.getCreateFilePage().getSection().getBook().getId() %>, '<%=sessionBean.getCreateFilePage().getSection().getBook().getName() %>', <%=sessionBean.getUser().getId() %>, '<%=sessionBean.getApplicationBean().getExtractionInterfaceUrl() %>');"/>
-									
+
 								<input type="submit" value="Reset" onclick="setAction('reset', 'createFileForm');"/>
 							</td>
 						</tr>
 					</table>
-					
-					
+
+
 				<% } %>
-				
+
 			</form>
 		<% } %>
-	
+
 	</div>
-	
-</body>
\ No newline at end of file
+
+</body>