Advertisement
Guest User

Untitled

a guest
Apr 24th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.02 KB | None | 0 0
  1. <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
  2.     pageEncoding="ISO-8859-1"%>
  3. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  4.  
  5. <jsp:include page="navigation-bar.jsp"></jsp:include>
  6. <c:set var="user" value="${ user }" />
  7.  
  8. <body>
  9.     <h3>All tasks:</h3>
  10.     <br>
  11.     <form style="display: inline-block"  action="./filtertasks" method="post">
  12.      <p>Filter by issue type</p>
  13.         <c:forEach items="${ issueTypes }" var="it" >
  14.          <input type="checkbox" name="selected" value= "${it.type.value}"> ${it.type.value} <br>
  15.         </c:forEach>
  16.          <input type="submit" value="Filter">
  17.      </form>
  18.      <form style="display: inline-block"  action="./filtertasks" method="post">
  19.       <p>Show tasks between</p>
  20.          <input type="date" name="firstDate">
  21.          <br> and <br>
  22.          <input type="date" name="secondDate"><br>
  23.          <input type="submit" value="Show">
  24.      </form>
  25.      
  26.     <table style="width: 100%">
  27.         <tr>
  28.             <th>Summary</th>
  29.             <th>Description</th>
  30.             <th>Creator</th>
  31.             <th>Assignee</th>
  32.             <th>Due date</th>
  33.             <th>Priority</th>
  34.             <th>Issue type</th>
  35.             <th>State</th>
  36.             <th>Details</th>
  37.             <th>Add comment</th>
  38.             <th>Edit</th>
  39.             <th>Delete</th>
  40.         </tr>
  41.        
  42.         <c:forEach items="${ tasks }" var="t">
  43.             <tr>
  44.                 <td>${t.summary}</td>
  45.                 <td>${t.description}</td>
  46.                 <td>${t.creator.name}</td>
  47.                 <td>${t.assignee.name}</td>
  48.                 <td>${t.dueDate}</td>
  49.                 <td>${t.priority.type.value}</td>
  50.                 <td>${t.issue.type.value}</td>
  51.                 <td>${t.state.type.value}</td>
  52.                 <td>
  53.                     <a href="./viewtaskdetails?taskId=${ t.id }">Show details</a>
  54.                 </td>
  55.                 <c:if test="${ user != null }">
  56.                     <td>
  57.                         <a href="./createtaskcomment?taskId=${ t.id }">Add comment</a>
  58.                     </td>
  59.                     <c:if test="${(user.id == t.creator.id || user.id == t.assignee.id)}">
  60.                         <td>
  61.                             <a href="./edittask?taskId=${ t.id }">Edit</a>
  62.                         </td>
  63.                         <td>
  64.                             <a href="./deletetask?taskId=${ t.id }">Delete</a>
  65.                         </td>
  66.                     </c:if>
  67.                 </c:if>
  68.             </tr> <br>
  69.         </c:forEach>
  70.     </table>
  71. </body>
  72. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement