<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Options.aspx.cs" Inherits="Approval_Options" meta:resourcekey="Page" %>

<!DOCTYPE html>

<html>
<head runat="server">
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../libs/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="../libs/fontawesome/css/all.min.css" >
    <script type="text/javascript" src="../libs/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="../libs/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
    <script type="text/javascript">
        $(document).ready(function () {
            Dialog.setMessage('<asp:Literal runat="server" Text="<%$ Resources:Dialog, Title%>" />', '<asp:Literal runat="server" Text="<%$ Resources:Dialog, OK%>" />', '<asp:Literal runat="server" Text="<%$ Resources:Dialog, Cancel%>" />');
            Dialog.setUseBrowserConfirm(<%=AppSetting.UseBrowserConfirm%>);
        });

        function Apply() {
            __doPostBack("ApplyButton", ""); 
        }

        function Applied() {
            GotoToApprovalFolders();
        }

        function GotoToApprovalFolders() {
            location.href = "List.aspx?type=<%=AppFolderDataSource.APPROVAL_FOLDERID%>";
        }
    </script>

    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
            <CompositeScript>
                <Scripts>
                    <asp:ScriptReference Path="~/libs/tabs/common.js" />
                    <asp:ScriptReference Path="~/libs/tabs/dialog.js" />
                </Scripts>
            </CompositeScript>
        </asp:ScriptManager>

        <div class="container-fluid">
            <div class="row" id="toolBar" data-spy="affix">
                <div class="col-xs-12" style="padding-top:2px;padding-bottom:2px;">
                    <button type="button" id="sendToolButton" class="btn btn-primary" onclick="Apply()" ><asp:Localize ID="Localize1" runat="server" meta:resourcekey="L01">적용</asp:Localize></button>
                    <span>&nbsp;</span>
                    <button type="button" id="Button2" class="btn btn-primary" onclick="GotoToApprovalFolders();"><span class="fa-solid fa-xmark"></span></button>
                </div>
            </div>
        </div>

        <div class="container-fluid" style="padding-top:40px">
            <h4><asp:Localize ID="Localize2" runat="server" meta:resourcekey="L02">부재중 설정</asp:Localize></h4>
            <div class="form-group">
                <dl>
                    <dd><asp:Localize ID="Localize3" runat="server" meta:resourcekey="L03">결재권자가 결재를 할 수 없는 경우 설정을 하십시오.</asp:Localize></dd>
                    <dd><asp:Localize ID="Localize4" runat="server" meta:resourcekey="L04">부재 중 설정을 하면 결재선에 있는 결재권자들이 부재 중임을 확인할 수 있습니다.</asp:Localize></dd>
                </dl>
                <div class="checkbox"><label><input type="checkbox" id="AbsenceCheckBox" runat="server"><asp:Localize ID="Localize5" runat="server" meta:resourcekey="L05">부재 중 입니다.</asp:Localize></label></div>
            </div>
            <div>&nbsp;</div>

            <h4><asp:Localize ID="Localize6" runat="server" meta:resourcekey="L06">메일 알림 설정</asp:Localize></h4>
            <div class="form-group">
                <dl>
                    <dd><asp:Localize ID="Localize7" runat="server" meta:resourcekey="L07">결재 진행 단계에서 전송되는 알림 메일을 수신할 지 여부를 지정할 수 있습니다.</asp:Localize></dd>
                </dl>
                <div class="checkbox"><label><input type="checkbox" id="NotifyMailCheckBox" runat="server"><asp:Localize ID="Localize8" runat="server" meta:resourcekey="L08">알림 메일을 수신하지 않습니다.</asp:Localize></label></div>
            </div>
        </div>

        <div style="display:">            
            <asp:LinkButton ID="ApplyButton" runat="server" OnClick="ApplyButton_Click" /> 
        </div>
    </form>
</body>
</html>
