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

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <h1 class="skjema-admin__page-title">
        Opprett 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">
        </asp:TextBox>

        <asp:RequiredFieldValidator 
            ID="RequiredFieldValidator1" 
            runat="server" 
            InitialValue="---" 
            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" 
            CssClass="skjema-admin__page__text"
            runat="server">
        </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" 
            InitialValue="---" 
            runat="server" 
            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">
        <asp:Label 
            ID="Label2" 
            CssClass="skjema-admin__page__label"
            runat="server">
            Beskrivelse
        </asp: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 
            CssClass="skjema-admin__page__tick"
            runat="server" 
            ID="checkIsLocked" />
    </div>

    <div>
        <asp:Button 
            CssClass="skjema-admin__button skjema-admin__button--primary"
            ID="btnCreate" 
            runat="server" 
            Text="Opprett" 
            OnClick="btnCreate_Click">
        </asp:Button>
    </div>

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