Improve web view of the project (real pages for removal of DB records)
[proteocache.git] / webapp / view / query / RemoveJobs.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="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
5 <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
6 <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
7
8 <html>
9 <jsp:include page="../fragments/header_database.jsp" />
10 <body>
11         <div class="container">
12         <jsp:include page="../fragments/mainmenu.jsp" />
13         <spring:url value="/database/remove/go" var="formurl"/>
14
15         <div class="panel panel-default">
16                 <div class="panel-heading">
17                         <div style="font-weight:bold;">Delete jobs with the following conditions:</div>
18                 </div>
19                 <div class="panel-body">
20                         <form method="get" action="${fn:escapeXml(formurl)}">
21                                 <!-- remove a particular job -->
22                                 <p>
23                                         <input type="checkbox" name="byId" onclick="show(this, 'id');" /> Job with the job Id
24                                         <div id='id' style="visibility:hidden;">Job Id: <input type="text" name="id" value="${samplejobid}" /></div>
25                                         <input type="hidden" name="byId" value="off" />
26                                 </p>
27
28                                 <!-- remove jobs executed on the dates: -->
29                                 <p>
30                                         <input type="checkbox" name="byDate" onclick="show(this, 'date');" /> Jobs for the period
31                                         <div id='date' style="visibility:hidden;">
32                                         From <input type="text" name="date1" value = "${date1}" style=" width : 145px;" />
33                                         to <input type="text" name="date2" value = "${date2}" /></div>
34                                         <input type="hidden" name="byDate" value="off" />
35                                 </p>
36
37                                 <!-- remove jobs executed from particular IP: -->
38                                 <p>
39                                         <input type="checkbox" name="byIp" onclick="show(this, 'ip');" /> Jobs executed from the IP
40                                         <div id='ip' style="visibility:hidden;">IP: <input type="text" name="ip" value = '${sampleip}'/></div>
41                                         <input type="hidden" name="byIp" value="off" />
42                                 </p>
43                                 
44                                 <!-- remove jobs with a particular protein subsiquence: -->
45                                 <p>
46                                         <input type="checkbox" name="bySequence"  onclick="show(this, 'seq');"> Jobs with the protein subsequence
47                                         <div id='seq' style="visibility:hidden;"> Sequence: <input type="text" name="seq" value = "${sampleseq}"/></div>
48                                         <input type="hidden" name="bySequence" value="off" />
49                                 </p>
50                                 
51                                 <p><input type="submit" name="Delete" value="Delete"/></p>
52                         </form>
53                 </div>
54         </div>
55
56         <jsp:include page="../fragments/footer.jsp"/>
57         </div>
58 </body>
59 </html>