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

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <h1 class="skjema-admin__page-title">
        Rediger status
    </h1>

    <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="j" Visible="False">Hjelp</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">
        <label class="skjema-admin__page__label">
            Ledetekst
        </label>

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

    <div class="skjema-admin__page__field">
        <label class="skjema-admin__page__label">
            Rolle *
        </label>

        <asp:DropDownList 
            runat="server" 
            CssClass="skjema-admin__page__text"
            ID="ddlParentEndpoint" />

        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" InitialValue="---" ErrorMessage="Du må angi hvilken rolle denne statusen tilhører." ControlToValidate="ddlParentEndpoint"
            Display="Dynamic"></asp:RequiredFieldValidator>
    </div>

    <div class="skjema-admin__page__field">
        <label class="skjema-admin__page__label">
            Standard saksbehandler
        </label>

        <asp:DropDownList
            CssClass="skjema-admin__page__text"
            runat="server" 
            ID="ddlUsers" />
    </div>

    <div class="skjema-admin__page__field">
        <label class="skjema-admin__page__label">
            Beskrivelse
        </label>

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

    <div class="skjema-admin__page__field">
        <label class="skjema-admin__page__label">
            Arkivert sak
        </label>

        <asp:CheckBox 
            runat="server" 
            CssClass="skjema-admin__page__tick"
            ID="checkIsLocked" />
    </div>

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

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