<%@ Register TagPrefix="IT" TagName="PickImage" Src="~/UserControls/PickImage.ascx" %>
<%@ Control Language="vb" CodeBehind="ProjectStatus.ascx.vb" AutoEventWireup="false" Inherits="ASPNET.StarterKit.IssueTracker.ProjectStatus" %>
<fieldset>
	<legend>Project Status</legend>
	<table cellpadding="5" width="350">
		<tr>
			<td>
				<asp:Label id="lblError" ForeColor="red" EnableViewState="false" runat="Server" />
				<asp:CustomValidator Text="You must add at least one status" Runat="server"
					id="CustomValidator1" />
			</td>
		</tr>
		<tr>
			<td>
				<p>
				When you create an issue, you assign the issue a status such as In Progress or 
				Completed. Enter the list of status values below. Each status can be associated 
				with an image.
				<p>
					<asp:DataGrid id="grdStatus" AutoGenerateColumns="false" BorderColor="White" BorderStyle="None"
						CellPadding="2" width="100%"
						Runat="Server">
						<headerstyle cssclass="gridHeader"></headerstyle>
						<Columns>
							<asp:TemplateColumn HeaderText="Status">
								<headerstyle horizontalalign="Left" cssclass="gridHeader"></headerstyle>
								<itemstyle cssclass="gridFirstItem" width="80%"></itemstyle>
								<ItemTemplate>
									<asp:Label id="lblStatusName" 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="imgStatus" 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 Status"
										runat="Server" />
								</ItemTemplate>
							</asp:TemplateColumn>
						</Columns>
					</asp:DataGrid>
					<br>
					<asp:TextBox id="txtName" CssClass="standardText" Maxlength="50" runat="Server" />
					<asp:Button Text="Add Status" CssClass="standardText" CausesValidation="false"
						runat="server" id="btnAdd" /></p>
			</td>
		</tr>
		<tr>
			<td>
				<it:PickImage id="lstImages" ImageDirectory="/Status" runat="Server" />
			</td>
		</tr>
	</table>
</fieldset>
