Add mode comments to the classes
[proteocache.git] / query / Sequence.jsp
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
3 <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
4 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
5 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
6 <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
7 <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
8
9 <html>
10 <jsp:include page="../fragments/header.jsp" />
11 <body>
12         <div class="container">
13         <jsp:include page="../fragments/mainmenu.jsp" />
14         <spring:url value="/sequence/sequence/results" var="query"/>
15
16         <div class="panel panel-default">
17                 <div class="panel-heading">
18                         <div style="font-weight:bold;">Enter protein sequence</div>
19                 </div>
20                 <div class="panel-body">
21                         <form method="get" action="${query}">
22                         <c:choose>
23                         <c:when test="${error == null}">
24                                 <div class="form-group">
25                                         <p><textarea class="form-control" rows="3" name="sequence">${value}</textarea></p>
26                                         <p>
27                                         <input type="radio" name="searchtype" value="whole"> Search for the whole sequence<br/>
28                                         <input type="radio" name="searchtype" value="partial" Checked> Search for partial sequence matching
29                                         </p>
30                                         <input type="submit" name="Search" value="Search"/>
31                                 </div>
32                         </c:when>
33                         <c:otherwise>
34                                 <div class="form-group has-error">
35                                         <p><textarea class="form-control" rows="3" name="sequence">${value}</textarea></p>
36                                         <p class="help-block">${error}</p>
37                                         <p><input type="radio" name="searchtype" value="whole">search for the whole sequence<br/>
38                                         <input type="radio" name="searchtype" value="partial" Checked>search for partial sequence matching</p>
39                                         <input type="submit" name="Search" value="Search"/>
40                                 </div>
41                         </c:otherwise>
42                         </c:choose>
43                         </form>
44                 </div>
45         </div>
46         <jsp:include page="../fragments/footer.jsp"/>
47         </div>
48 </body>
49 </html>