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

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
			<h1>Detaljer for distribusjonsliste objekt</h1>
			<p>
				Denne siden viser deg detaljer for et distribusjonsliste objekt. Klikk på 
				"Rediger" knappen dersom du ønsker å redigere distribusjonsliste objektet. Klikk på "Legg til e-postadresse" knappen dersom du ønsker å legge e-postadresser til denne distribusjonslisten.
			</p>			
			<H2 style="LEFT: 10px; TOP: 96px">Detaljer:</H2>
			<table cellSpacing="2" cellPadding="5">
				<tr>
					<td>
						<asp:Label id="Label1" runat="server">Navn</asp:Label>
					</td>
					<td>
						<asp:Label id="lblName" runat="server"></asp:Label>
					</td>
					<td>
						<asp:hyperlink id="HyperLink7" runat="server" Target="_blank" Visible="False">Help</asp:hyperlink>
					</td>
				</tr>
				<tr>
					<td>
						<asp:Label id="Label3" runat="server">Kommentar</asp:Label>
					</td>
					<td>
						<asp:Label id="lblComment" runat="server"></asp:Label>
					</td>
					<td>
					</td>
				</tr>
				<tr>
					<td>
						<asp:Label id="Label4" runat="server">Opprettet</asp:Label>
					</td>
					<td>
						<asp:Label id="lblCreatedOn" runat="server"></asp:Label>
					</td>
					<td>
					</td>
				</tr>
				<tr>
					<td colspan="3" align="right">
						<asp:Button id="btnEdit" runat="server" Text="Rediger" onclick="btnEdit_Click"></asp:Button>
					</td>
				</tr>
			</table>
			<P>
				<asp:Label id="lblMessage" runat="server" ForeColor="Red"></asp:Label></P>
			<h2>E-postadresser:</h2>
			<asp:datagrid id="dgMailAddresses" runat="server" AutoGenerateColumns="False" Width="100%" HeaderStyle-CssClass="HeaderStyle"
				ItemStyle-CssClass="ItemStyle" AlternatingItemStyle-CssClass="AlternatingItemStyle" AllowSorting="False">
				<Columns>
					<asp:BoundColumn DataField="MailAddressID" Visible="False"></asp:BoundColumn>
					<asp:BoundColumn DataField="MailDistributionListID" Visible="False"></asp:BoundColumn>
					<asp:BoundColumn DataField="Name" HeaderText="Navn"></asp:BoundColumn>
					<asp:BoundColumn DataField="MailAddress" HeaderText="E-postadresse"></asp:BoundColumn>
					<asp:BoundColumn DataField="Comment" HeaderText="Kommentar"></asp:BoundColumn>
					<asp:ButtonColumn Text="Fjern" CommandName="Delete"></asp:ButtonColumn>
				</Columns>
			</asp:datagrid>
			<P>
				<asp:Label id="lblNoMailAddressesMessage" runat="server">Ingen e-postadresser i distribusjonslisten.</asp:Label></P>
			<P>
				<asp:Button id="btnAttachMailAddress" runat="server" Text="Legg til e-postadresse" onclick="btnAttachMailAddress_Click"></asp:Button></P>
</asp:Content>