<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PeriodOnSubscriptionEdit.aspx.cs" Inherits="eDocument.Server.Administrator.Subscription.PeriodOnSubscriptionEdit"  MasterPageFile="~/Site.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
	    <h1>Rediger søknadsrunde</h1>
		<table cellspacing="2" cellpadding="5">
				<tr>
					<td>
						<asp:Label ID="lblName" runat="server">Navn *</asp:Label>
					</td>
					<td>
						<asp:TextBox ID="txtName" runat="server" Width="272px"></asp:TextBox>
					</td>
					<td>
						<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Du må angi et navn." ControlToValidate="txtName" Display="Dynamic"></asp:RequiredFieldValidator>
					</td>
				</tr>
				<tr>
					<td>Startdato (f.o.m.) *</td>
					<td><asp:TextBox ID="txtStartDate" runat="server" Width="100px"></asp:TextBox></td>
					<td><asp:CompareValidator ID="CompareValidator1" 
					                          runat="server" 
					                          ControlToValidate="txtStartDate"
					                          ErrorMessage="Feil datoformat, riktig format er dd.mm.åååå"
					                          Operator="DataTypeCheck" 
					                          Type="Date"></asp:CompareValidator>
						<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Du må angi en startdato." ControlToValidate="txtStartDate" Display="Dynamic"></asp:RequiredFieldValidator>
					</td>
				</tr>
				<tr>
					<td>Stoppdato (t.o.m.) *</td>
					<td><asp:TextBox ID="txtStopDate" runat="server" Width="100px"></asp:TextBox></td>
					<td><asp:CompareValidator ID="CompareValidator2" 
					                          runat="server" 
					                          ControlToValidate="txtStopDate"
					                          ErrorMessage="Feil datoformat, riktig format er dd.mm.åååå"
					                          Operator="DataTypeCheck" 
					                          Type="Date"></asp:CompareValidator>
						<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Du må angi et stoppdato." ControlToValidate="txtStopDate" Display="Dynamic"></asp:RequiredFieldValidator>
					</td>
				</tr>
				<tr>
					<td valign="top">
						<asp:Label ID="lblBeforeStartMessage" runat="server">Melding før start</asp:Label>
					</td>
					<td>
						<asp:TextBox ID="txtBeforeStartMessage" runat="server" TextMode="MultiLine" Height="100px" Width="600px" MaxLength="1000"></asp:TextBox>
					</td>
					<td></td>
				</tr>
				<tr>
					<td valign="top">
						<asp:Label ID="lblAfterStopMessage" runat="server">Melding etter stopp</asp:Label>
					</td>
					<td>
						<asp:TextBox ID="txtAfterStopMessage" runat="server" TextMode="MultiLine" Height="100px" Width="600px" MaxLength="1000"></asp:TextBox>
					</td>
					<td></td>
				</tr>
				<tr>
					<td valign="top">
						<asp:Label ID="lblReminderMessage" runat="server">Melding som skal sendes til brukeren når søknadsfrist nærmer seg</asp:Label>
					</td>
					<td>
						<asp:TextBox ID="txtReminderMessage" runat="server" TextMode="MultiLine" Height="100px" Width="600px" MaxLength="1000"></asp:TextBox>
					</td>
					<td></td>
				</tr>
				<tr>
					<td>
						<asp:Label ID="lblReminderDaysBeforeStopDate" runat="server">Send påminnelse antall dager før søknadsfrist</asp:Label>
					</td>
					<td>
						<asp:TextBox ID="txtReminderDaysBeforeStopDate" runat="server" Width="272px"></asp:TextBox>
					</td>
					<td></td>
				</tr>
				<tr>
					<td></td>
					<td>
						<table width="100%" cellpadding="0" cellspacing="0">
							<tr>
								<td></td>
								<td colspan="1" align="left">
									<asp:Button ID="btnUpdate" runat="server" Text="Lagre" OnClick="btnUpdate_Click"></asp:Button>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
</asp:Content>