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

<%@ Register Src="EditProperties.ascx" TagName="EditProperties" TagPrefix="uc2" %>

<%@ Register Src="EditResponseItems.ascx" TagName="EditResponseItems" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <style>
        table, td {
            padding: 10px;
        }
    </style>

    <asp:Button 
        ID="btnCreate" 
        CssClass="skjema-admin__button skjema-admin__button--primary mb-4 mr-3"
        runat="server" 
        Text="Legg til ny handling"
        OnClick="btnCreate_OnClick" />    

    <asp:Button 
        ID="btnAttach" 
        CssClass="skjema-admin__button skjema-admin__button--primary mb-4"
        runat="server" 
        Text="Legg til eksisterende handling"
        OnClick="btnAttach_OnClick" />    


    <div class="skjema-admin__page__field mt-5">
		<asp:Label 
            ID="Label1" 
            CssClass="skjema-admin__page__label"
            runat="server" 
            Text="Navn:">
		</asp:Label>

    	<asp:TextBox 
            ID="txtActionName" 
            CssClass="skjema-admin__page__text"
            runat="server">
    	</asp:TextBox>

		<asp:RequiredFieldValidator 
            ID="RequiredFieldValidator1" 
            runat="server" 
            ControlToValidate="txtActionName"
			ErrorMessage="*">
		</asp:RequiredFieldValidator>
    </div>

    <hr class="skjema-admin__hr"/>

    <div class="skjema-admin__table-parameter">
		<uc2:EditProperties id="EditProperties1" runat="server" />
    </div>

	<uc1:EditResponseItems ID="EditResponseItems1" runat="server" Visible="False" />

    <div class="skjema-admin__page__field">
        <asp:Label id="lblMessage" runat="server" ForeColor="Red"></asp:Label>
    </div>

	<asp:Button 
        ID="btnUpdate" 
        CssClass="skjema-admin__button skjema-admin__button--primary mb-5"
        runat="server" 
        Text="Oppdater" 
        OnClick="btnUpdate_Click" />
</asp:Content>