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

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

    <h2 class="skjema-admin__section-title">
        Detaljer
    </h2>

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

        <asp:Label ID="lblName" runat="server"></asp:Label>
    </div>

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

        <asp:Label ID="lblCaption" runat="server"></asp:Label>
    </div>

    <div class="skjema-admin__page__field">
        <asp:Label 
            ID="Label2" 
            class="skjema-admin__page__label"
            runat="server">
            Fra-status
        </asp:Label>

        <asp:Label ID="lblFromFlowStatus" runat="server"></asp:Label>
    </div>

    <div class="skjema-admin__page__field">
        <asp:Label 
            ID="Label5" 
            class="skjema-admin__page__label"
            runat="server">
            Til-status
        </asp:Label>

        <asp:Label ID="lblToFlowStatus" runat="server"></asp:Label>
    </div>

    <div class="skjema-admin__page__field">
        <label class="skjema-admin__page__label">
            Kjøres ved
        </label>

        <asp:Label ID="lblRuleType" runat="server"></asp:Label>
    </div>

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

        <asp:Label ID="lblTimeout" runat="server"></asp:Label>
    </div>

    <div class="skjema-admin__page__field">
        <label class="skjema-admin__page__label">
            Regelfelt i skjema
        </label>
        <asp:Label ID="lblRuleField" runat="server"></asp:Label>
    </div>

    <div class="skjema-admin__page__field">
        <label class="skjema-admin__page__label">
            Automatisk kjøring
        </label>
        <asp:Label ID="lblMatchModels" runat="server"></asp:Label>
    </div>

    <div class="skjema-admin__page__field">
        <asp:Label 
            ID="Label7" 
            CssClass="skjema-admin__page__label"
            runat="server">
            Oppretter oppgave
        </asp:Label>

        <asp:Label ID="lblCreateInstanceTask" runat="server"></asp:Label>
    </div>

    <div class="skjema-admin__page__field">
        <asp:Label 
            ID="Label4" 
            CssClass="skjema-admin__page__label"
            runat="server">
            Krever melding
        </asp:Label>

        <asp:Label ID="lblIsMessageRequired" runat="server"></asp:Label>
    </div>

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

        <asp:Label ID="lblMessagePrompt" runat="server"></asp:Label>
    </div>

    <div class="skjema-admin__page__field">

        <asp:Label 
            ID="Label3" 
            CssClass="skjema-admin__page__label"
            runat="server">
            Beskrivelse
        </asp:Label>

        <asp:Label ID="lblDescription" runat="server"></asp:Label>
    </div>

    <h2 class="skjema-admin__section-title">
        Prosesser
    </h2>

    <asp:DataGrid 
        ID="dgProcesses" 
        runat="server" 
        AutoGenerateColumns="False" 
        HeaderStyle-CssClass="HeaderStyle"
        ItemStyle-CssClass="ItemStyle" 
        AlternatingItemStyle-CssClass="AlternatingItemStyle" 
        Width="100%">

        <AlternatingItemStyle CssClass="AlternatingItemStyle"></AlternatingItemStyle>
        <ItemStyle CssClass="ItemStyle"></ItemStyle>
        <HeaderStyle CssClass="HeaderStyle"></HeaderStyle>

        <Columns>
            <asp:BoundColumn Visible="False" DataField="ProcessOnFlowRuleID"></asp:BoundColumn>
            <asp:BoundColumn Visible="False" DataField="ProcessID"></asp:BoundColumn>
            <asp:BoundColumn DataField="ProcessName" HeaderText="Prosess"></asp:BoundColumn>
            <asp:BoundColumn DataField="EndpointName" HeaderText="Rolle"></asp:BoundColumn>
            <asp:ButtonColumn Text="Rediger" CommandName="Edit" Visible="False"></asp:ButtonColumn>
            <asp:ButtonColumn Text="Fjern" CommandName="Delete"></asp:ButtonColumn>
        </Columns>
    </asp:DataGrid>

    <div class="skjema-admin__page__field">
        <div class="mb-4">
            <asp:Label 
                ID="lblNoProcessesMessage" 
                runat="server">
                Ingen prosesser.
            </asp:Label>
        </div>
    
        <asp:Button 
            ID="btnAttachProcess" 
            CssClass="skjema-admin__button skjema-admin__button--primary mr-2"
            runat="server" 
            Text="Legg til prosess" 
            OnClick="btnAttachProcess_Click">
        </asp:Button>

        <asp:Button 
            ID="btnEdit" 
            CssClass="skjema-admin__button skjema-admin__button--primary mr-2"
            runat="server" 
            Text="Rediger" 
            OnClick="btnEdit_Click">
        </asp:Button>

        <asp:Button 
            ID="btnBackToFlowProcess" 
            CssClass="skjema-admin__button"
            runat="server" 
            Text="Tilbake til arbeidsflyt" 
            OnClick="btnBackToFlowProcess_Click">
        </asp:Button>
    </div>

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