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

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
			<h1>Legg til prosess</h1>
			<p>
				Fra denne siden kan du velge hvilke prosesser du ønsker å legge til skjemaet. Prosessen(e) vil bli utført når skjemaet sendes inn. Sett et kryss i avkrysningsboksen for den/de prosessen(e) du ønsker å legge til og klikk "Utfør" knappen.
			</p>
			<asp:datagrid id="dgProcesses" runat="server" AutoGenerateColumns="False" Width="100%" HeaderStyle-CssClass="HeaderStyle"
				ItemStyle-CssClass="ItemStyle" AlternatingItemStyle-CssClass="AlternatingItemStyle" AllowSorting="False">
				<AlternatingItemStyle CssClass="AlternatingItemStyle"></AlternatingItemStyle>
				<ItemStyle CssClass="ItemStyle"></ItemStyle>
				<HeaderStyle CssClass="HeaderStyle"></HeaderStyle>
				<Columns>
					<asp:BoundColumn Visible="False" DataField="ProcessID"></asp:BoundColumn>
					<asp:TemplateColumn>
						<HeaderTemplate>
							Velg
						</HeaderTemplate>
						<ItemTemplate>
							<asp:CheckBox runat="server" ID="cbSelect" />
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn DataField="Name" SortExpression="Name ASC" HeaderText="Navn"></asp:BoundColumn>
					<asp:BoundColumn DataField="Comment" HeaderText="Kommentar"></asp:BoundColumn>
					<asp:BoundColumn DataField="CreatedOn" SortExpression="CreatedOn ASC" HeaderText="Opprettet"></asp:BoundColumn>
					<asp:TemplateColumn Visible="False">
						<HeaderTemplate>
							IsAsync
						</HeaderTemplate>
						<ItemTemplate>
							<asp:CheckBox runat="server" ID="cbIsAsync" />
						</ItemTemplate>
					</asp:TemplateColumn>
				</Columns>
			</asp:datagrid>
			<P>
				<asp:Label id="lblNoProcessesMessage" runat="server">Ingen tilgjengelige prosesser. <a href="../Process/Create.aspx">Klikk her for å opprette en ny prosess.</a></asp:Label></P>
			<P>
				<asp:Button id="btnCancel" runat="server" Text="Avbryt" onclick="btnCancel_Click"></asp:Button>&nbsp;
				<asp:Button id="btnAttach" runat="server" Text="Utfør" onclick="btnAttach_Click"></asp:Button><asp:label id="lblMessage" runat="server" ForeColor="Red"></asp:label></P>
</asp:Content>