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

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
			<h1>Rediger skjemaversjon</h1>
			<p>
				Fra denne siden er det mulig م redigere en skjemaversjon.
			</p>
			<table cellSpacing="2" cellPadding="5">
				<tr>
					<td>
						<asp:Label id="Label4" runat="server" Visible="False">Version</asp:Label>
					</td>
					<td>
						<asp:TextBox id="txtVersion" runat="server" Width="208px" 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="Label5" runat="server" Visible="False">SignMode</asp:Label>
					</td>
					<td>
						<asp:DropDownList id="ddlSignMode" runat="server" Width="208px" Visible="False">
							<asp:ListItem Value="-1" Selected="True">Undefined</asp:ListItem>
							<asp:ListItem Value="0">NoSign</asp:ListItem>
							<asp:ListItem Value="1">SignSubmit</asp:ListItem>
						</asp:DropDownList>
					</td>
					<td>
						<asp:hyperlink id="HyperLink7" runat="server" Target="_blank" NavigateUrl="~/Help/SignMode.aspx"
							Visible="False">Help</asp:hyperlink>
					</td>
					<td>
					</td>
				</tr>
				<tr>
					<td>
						<asp:Label id="Label6" runat="server" Visible="False">SignObject</asp:Label>
					</td>
					<td>
						<asp:DropDownList id="ddlSignObject" runat="server" Width="208px" Visible="False">
							<asp:ListItem Value="-1" Selected="True">Undefined</asp:ListItem>
							<asp:ListItem Value="0">XmlResponse</asp:ListItem>
							<asp:ListItem Value="1">PdfResponse</asp:ListItem>
							<asp:ListItem Value="2">DokumentbankenPdfResponse</asp:ListItem>
						</asp:DropDownList>
					</td>
					<td>
						<asp:hyperlink id="HyperLink6" runat="server" Target="_blank" NavigateUrl="~/Help/SignObject.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="btnUpdate" runat="server" Text="Oppdater" onclick="btnUpdate_Click"></asp:Button>
					</td>
				</tr>
			</table>
			<asp:Label id="lblMessage" runat="server" ForeColor="Red"></asp:Label>
</asp:Content>
