<%@ Page Title="" Language="C#" MaintainScrollPositionOnPostback="true" MasterPageFile="~/QuestionnaireSiteMaster.Master" AutoEventWireup="true" CodeBehind="survey.aspx.cs" Inherits="MKInsight.Online.APPS.Questionnaires.Survey" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cm" runat="server">
    <asp:UpdatePanel ID="p" runat="server">
        <ContentTemplate>

            <div class="container-fluid" style="padding-top: 60px;">
                <div role="alert" id="dv_Alert" runat="server" style="padding-top: 5px;">
                </div>

            </div>
            <div id="dv_print">
                <div id="dv_ques" runat="server">
                    <div class="jumbotron m-3">
                        <div class="container-fluid">
                            <h1 class="display-5">
                                <asp:Label ID="lbl_SurveyName" runat="server"></asp:Label></h1>
                            <p class="lead">
                                <asp:Label ID="lbl_Intro" runat="server"></asp:Label>
                            </p>
                        </div>
                    </div>

                    <div class="container-fluid">

                        <asp:Button ID="btn_refresh" runat="server" Style="display: none;" />

                        <asp:Panel ID="p_c" runat="server">
                        </asp:Panel>
                    </div>

                    <div class="jumbotron m-3" runat="server" id="dv_sig">
                        <div class="container-fluid">

                            <h1 class="display-5">
                                <asp:Label ID="lbl_declarationTitle" runat="server">test </asp:Label></h1>

                            <p class="lead">
                                <asp:Label ID="lbl_declaration" runat="server"></asp:Label>
                            </p>

                            <hr class="my-4">


                            <div role="alert" id="dv_fileAlert" runat="server">
                            </div>


                            <div class="card mt-1" id="dv_file" runat="server">

                                <div class="card-body">
                                    <h5 class="card-title">
                                        <asp:Label ID="lbl_FileTitle" runat="server"></asp:Label></h5>
                                    <p class="card-text small">
                                        <asp:Label ID="lbl_FileInfo" runat="server"></asp:Label>
                                    </p>

                                    <div class="input-group">
                                        <div class="custom-file">
                                            <asp:FileUpload ID="u_file" runat="server" CssClass="custom-file-input" />
                                            <label class="custom-file-label" runat="server" id="lbl_ChooseFile" for="u_file">Choose file</label>
                                        </div>
                                        <div class="input-group-append">
                                            <asp:Button ID="btn_Upload" runat="server" CssClass="btn btn-light" OnClick="OnUploadFile" Style="border-color: #CDD3D9;" />
                                        </div>
                                    </div>

                                    <div class="mt-1">
                                        <img id="img_Sign" runat="server" alt="" src="" class="img-fluid img-thumbnail" />
                                    </div>
                                </div>
                            </div>


                        </div>
                    </div>

                    <div class="container-fluid">

                        <asp:Button ID="btn_Submit" runat="server" CssClass="btn btn-primary border-0" OnClick="OnSubmit" />
                        <asp:Button ID="btn_SubmitAnonymous" runat="server" CssClass="btn btn-primary border-0 m-2" OnClick="OnSubmitAnonymous" />


                    </div>

                    <div class="m-3"></div>
                </div>
            </div>
            <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal" id="btnShowPopup" style="display: none;">
            </button>

            <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true" style="padding-top: 60px;">
                <div class="modal-dialog" role="document">
                    <div class="modal-content">
                        <div class="modal-header">
                            <h5 class="modal-title" id="exampleModalLabel">
                                <asp:Label ID="lbl_MTitle" runat="server"></asp:Label></h5>
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                <span aria-hidden="true">&times;</span>
                            </button>
                        </div>
                        <div class="modal-body">
                            <asp:Label ID="lbl_MBody" runat="server"></asp:Label>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-secondary" data-dismiss="modal">
                                <asp:Label ID="lbl_MClose" runat="server"></asp:Label></button>
                        </div>
                    </div>
                </div>
            </div>

        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btn_Upload" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
