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

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">

    <h1 class="skjema-admin__page-title">
        Rediger prosess
    </h1>

    <p class="mb-5">
        Fra denne siden kan du redigere en prosess. Gjør de ønskede endringer og klikk 
		på "Oppdater" knappen når du er ferdig.
    </p>

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

        <asp:TextBox 
            ID="txtName" 
            CssClass="skjema-admin__page__text"
            runat="server" 
            MaxLength="300">
        </asp:TextBox>

        <asp:HyperLink ID="HyperLink7" runat="server" Target="_blank" Visible="False">Help</asp:HyperLink>

        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Du må angi et navn." ControlToValidate="txtName"
            Display="Dynamic"></asp:RequiredFieldValidator>
    </div>

    <div class="skjema-admin__page__field">
        <asp:Label 
            ID="Label3" 
            CssClass="skjema-admin__page__label"
            runat="server">
            Kommentar
        </asp:Label>

        <asp:TextBox 
            ID="txtComment" 
            CssClass="skjema-admin__page__text"
            runat="server" 
            TextMode="MultiLine" 
            Height="259px">
        </asp:TextBox>
    </div>

    <div class="skjema-admin__page__field">
        <div class="mb-4">
            <asp:Label ID="Label4" runat="server">Restart prosess-intervall</asp:Label>
            <asp:TextBox ID="txtRestartAbortedProcessInterval" runat="server" MaxLength="10" Width="40px"></asp:TextBox>        
            timer. 
        </div>

        Tid mellom hver gang en avbrutt prosess skal forsøkes restartes.
    </div>

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

    <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
</asp:Content>
