<%@include file="header.jsp" %>
<%@page import="agilpizza.modelo.*"%>
<jsp:useBean id="pizzaDao" scope="application" class="agilpizza.dao.PizzaDAO" />

<h2>Conheça algumas de nossas pizzas tradicionais</h2>

<form action="confirmaPizzaTradicional" method="POST">

	<%
	for(Pizza pizza : pizzaDao.buscaPizzasTradicionais()) {
	%>

	<table>
	<thead>
		<tr>
			<td><input id="id<%= pizza.getNome()%>" type="checkbox" name="<%= pizza.getNome() %>" value="1"></td><td> <%= pizza.getNome() %> </td>
		</tr>
	</thead>
	<tbody>
	<%
		for(Ingrediente item: pizza.getIngredientes()) {
	%>
		<tr>
			<td>&nbsp;</td><td> - <%= item.getNome() %></td>
		</tr>
	<%
		}
	%>
		<tr><td colspan=2></td></tr>
	</table>
	<% 
	}
	%>
	<br><br>
	<input type="submit" id="adicionarPizza" value="Adicionar ao pedido">
	</form>


<%@include file="footer.jsp" %>