<!DOCTYPE html>
<html>
  <%include subviews/head.html%>
  <script src="/angular/angular.min.js"></script>
  <script src="/angularcontrollers/sellrequest.js"></script>
  <link rel="stylesheet" href="css/inputfile.css">
  <body ng-app="myApp" ng-controller="sellrequestlistCtrl">
  <body>
    <%include subviews/mainmenu.html%>
    <div class="container">
      <br>
      <br>
      <br>
      <br>
      <table class="table" id="sellrequestlisttable">
				<%= msg %>
				<%if(sellrequests!=''){%>
				 <thead>
					<tr>
					 <th scope="col">Cod.</th>
					 <th scope="col">Data Venda</th>
					</tr>
				 </thead>
				<%}%>
				<tbody>
				 <%for (i = 0; i < sellrequests.length; i++) {%>
					<tr>
					 <td><a href='/sellrequestdetail?id=<%= sellrequests[i]._id %>'><%= sellrequests[i].codigo %></a></td>
					 <td><%= sellrequests[i].data_venda %></td>
					</tr>
				 <%};%>
				</tbody>
			</table>
    </div>
    <%include subviews/footer.html%>
  </body>
</html>
