<%@ Register TagPrefix="IT" TagName="PickImage" Src="~/UserControls/PickImage.ascx" %>
<%@ Control Language="vb" CodeBehind="ProjectMilestones.ascx.vb" AutoEventWireup="false" Inherits="ASPNET.StarterKit.IssueTracker.ProjectMilestones" %>
<fieldset>
	<legend>Project Milestones</legend>
	<table cellpadding="5" Width="350">
		<tr>
			<td>
				When you create an issue, you assign the issue a milestone such as First, 
				Second, or Third. Enter the list of milestones below. Each milestone can be 
				associated with an image.
			</td>
		</tr>
		<tr>
			<td>
				<asp:Label id="lblError" ForeColor="red" EnableViewState="false" runat="Server" />
				<asp:CustomValidator Text="You must add at least one milestone"
					Runat="server" id="CustomValidator1" />
			</td>
		</tr>
		<tr>
			<td>
				<asp:DataGrid id="grdMilestones" AutoGenerateColumns="false" BorderColor="White" BorderStyle="None"
					CellPadding="2" width="100%" 
					Runat="Server">
					<Columns>
						<asp:TemplateColumn HeaderText="Milestone">
							<headerstyle horizontalalign="Left" cssclass="gridHeader"></headerstyle>
							<itemstyle cssclass="gridFirstItem" width="80%"></itemstyle>
							<ItemTemplate>
								<asp:Label id="lblMilestoneName" runat="Server" />
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn HeaderText="Image">
							<headerstyle horizontalalign="Center" cssclass="gridHeader"></headerstyle>
							<itemstyle horizontalalign="Center" cssclass="gridItem" width="10%"></itemstyle>
							<ItemTemplate>
								<asp:Image id="imgMilestone" runat="Server" />
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn>
							<headerstyle horizontalalign="Right" cssclass="gridHeader"></headerstyle>
							<itemstyle horizontalalign="Right" cssclass="gridLastItem" width="10%"></itemstyle>
							<ItemTemplate>
								<asp:Button id="btnDelete" CommandName="delete" Text="Delete" CssClass="standardText" ToolTip="Delete Milestone"
									runat="Server" />
							</ItemTemplate>
						</asp:TemplateColumn>
					</Columns>
				</asp:DataGrid>
			</td>
		</tr>
		<tr>
			<td>
				<asp:TextBox id="txtName" MaxLength="50" CssClass="standardText" runat="Server" />
				<asp:Button Text="Add Milestone" CssClass="standardText" CausesValidation="false"
					runat="server" id="btnAdd" />
			</td>
		</tr>
		<tr>
			<td>
				<it:PickImage id="lstImages" ImageDirectory="/Milestone" runat="Server" />
			</td>
		</tr>
	</table>
</fieldset>
