<%@ Page language="c#" Codebehind="Create.aspx.cs" AutoEventWireup="True" Inherits="eDocument.Server.Administrator.eDocumentTemplateVersion.Create"  MasterPageFile="~/Site.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
			<h1>
				Last opp skjemaversjon</h1>
			<p>
				Fra denne siden kan du laste opp en ny versjon av ditt skjema. Bla deg 
				frem til .edoc filen på din datamaskin. Dersom du ønsker at versjonen du laster 
				opp skal benyttes som den gjeldende versjonen for skjemaet lar du 
				avkryssningsboksen være valgt. De obligatoriske feltene er merket med *.
			</p>
			<table cellSpacing="2" cellPadding="5">
				<tr>
					<td>
						<asp:Label id="Label2" runat="server">Skjemafil *</asp:Label>
					</td>
					<td><INPUT type="file" runat="server" id="fleDocumentBinary" style="WIDTH: 272px; HEIGHT: 19px"
							size="26">
					</td>
					<td>
						<asp:hyperlink id="Hyperlink1" runat="server" Target="_blank" NavigateUrl="~/Help/eDocumentFile.aspx"
							Visible="False">Help</asp:hyperlink>
					</td>
					<td>
						<asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" ErrorMessage="Du må angi filbanen for skjemaet (.edoc) som skal lastes opp."
							ControlToValidate="fleDocumentBinary"></asp:RequiredFieldValidator>
					</td>
				</tr>
				<tr>
					<td>
						<asp:Label id="Label4" runat="server" Visible="False">Version</asp:Label>
					</td>
					<td>
						<asp:TextBox id="txtVersion" runat="server" Visible="False"></asp:TextBox>
					</td>
					<td>
						<asp:hyperlink id="Hyperlink2" runat="server" Target="_blank" NavigateUrl="~/eDocumentTemplateVersion/Help/Version.aspx"
							Visible="False">Help</asp:hyperlink>
					</td>
					<td>
						<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="You must specify a version number."
							Display="Dynamic" ControlToValidate="txtVersion" Visible="False"></asp:RequiredFieldValidator>
					</td>
				</tr>
				<tr>
					<td>
						<asp:Label id="Label1" runat="server">Bruk som gjeldende versjon</asp:Label>
					</td>
					<td>
						<asp:CheckBox id="cbUseAsCurrent" runat="server" Checked="True"></asp:CheckBox>
					</td>
					<td>
						<asp:hyperlink id="Hyperlink3" runat="server" Target="_blank" NavigateUrl="~/eDocumentTemplateVersion/Help/UseVersionAsCurrentVersion.aspx"
							Visible="False">Help</asp:hyperlink>
					</td>
					<td>
					</td>
				</tr>
				<tr>
					<td>Publiseringsdato</td>
					<td><asp:TextBox ID="txtPublishDate" runat="server" Width="100px"></asp:TextBox></td>
					<td><asp:CompareValidator ID="CompareValidator1" 
					                          runat="server" 
					                          ControlToValidate="txtPublishDate"
					                          ErrorMessage="Feil datoformat, riktig format er dd.mm.åååå"
					                          Operator="DataTypeCheck" 
					                          Type="Date"></asp:CompareValidator>
					</td>
				</tr>
				<tr>
					<td valign="top">
						<asp:Label id="Label3" runat="server">Kommentar</asp:Label>
					</td>
					<td>
						<asp:TextBox id="txtComment" runat="server" Width="272px" TextMode="MultiLine" Height="50px"></asp:TextBox>
					</td>
					<td>
					</td>
					<td>
					</td>
				</tr>
				<tr>
					<td colspan="2" align="right">
						<asp:Button id="btnCreate" runat="server" Text="Opprett" onclick="btnCreate_Click"></asp:Button>
					</td>
					<td>
					</td>
				</tr>
			</table>
			<asp:Label id="lblMessage" runat="server" ForeColor="Red"></asp:Label>
</asp:Content>
