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

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    
    <h1 class="skjema-admin__page-title">
        Opprett rolle
    </h1>
    
    <div class="skjema-admin__page__field">

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

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

        <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 
            CssClass="skjema-admin__page__text"
            ID="txtCaption" 
            runat="server" 
            MaxLength="300">
        </asp:TextBox>
    </div>

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

        <asp:DropDownList 
            runat="server" 
            CssClass="skjema-admin__page__text"
            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" 
            CssClass="skjema-admin__page__text"
            runat="server" 
            TextMode="MultiLine" 
            Height="50px">
        </asp:TextBox>
    </div>
    
    <div class="skjema-admin__page__field">
        <label class="skjema-admin__page__label">
            Huk av for å begrense påloggingstilbydere
        </label>
        <asp:CheckBoxList 
            ID="cbIdentityProviders" 
            CssClass="skjema-admin__page__tick"
            runat="server">
            <asp:ListItem Value="IdPorten">ID-porten autentisering</asp:ListItem>
            <asp:ListItem Value="Feide">Feide autentisering</asp:ListItem>
        </asp:CheckBoxList>    
    </div>

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

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