<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Main.master" AutoEventWireup="true" CodeFile="GroupReports.aspx.cs" Inherits="Secyrity_GroupReports" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

<!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1 class="m-0">Group Reports  </h1>
          </div><!-- /.col -->
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="#">Home</a></li>
              <li class="breadcrumb-item active">Security</li>
              <li class="breadcrumb-item active">Manage Groups</li>
              <li class="breadcrumb-item active">Groups Reports</li>
            </ol>
          </div><!-- /.col -->
        </div><!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->

    <!-- Main content -->
    <section class="content">
    <div class="card card-primary">
              <div class="card-header">
                <h3 class="card-title">Please Select Reports Category</h3>
              </div>
              <!-- /.card-header -->
              <!-- form start -->
                <div class="card-body">
                  <div class="form-group">
                    <label for="exampleInputEmail1">Reports Categories</label>
                    <asp:DropDownList ID="ddl_reportsGroups" runat="server" class="form-control select2" style="width: 100%;"
                                             DataTextField="NAME" DataValueField="ID" AutoPostBack="True"
                                            onselectedindexchanged="ddl_reportsGroups_SelectedIndexChanged"> 
                                        </asp:DropDownList>
                  </div>
                  
                    </div>
                  
                <!-- /.card-body -->
            </div>
                <!-- Default box -->
                <div class="card card-success">
                    <div class="card-header">
                        <h3 class="card-title">Reports</h3>

                        <div class="card-tools">
                            <button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
                                <i class="fas fa-minus"></i>
                            </button>
                        </div>
                    </div>
                    <div><asp:Label ID="lblError" runat="server" Text=""></asp:Label></div>
                    <div class="card-body p-0">
                    <asp:GridView ID="grd_reports" class="table table-striped projects" GridLines="None" runat="server" AutoGenerateColumns=false OnRowCommand="grd_reports_RowCommand" 
                            DataKeyNames="ID">
                        <Columns>
                            <asp:BoundField DataField="NAME" HeaderText="Report Name"/>
                            <asp:BoundField DataField="STATUS" ItemStyle-Width="20%" HeaderText="Status" />
                            <asp:BoundField DataField="AP_STATUS" ItemStyle-Width="20%" HeaderText="Approval Status" />
                            <asp:ButtonField ButtonType="Link" CommandName="d" Text='<i class="fas fa-trash"></i> Delete' ControlStyle-CssClass="btn btn-danger btn-sm" />
                            <asp:ButtonField ButtonType="Link" CommandName="approve" Text="Approve"  ControlStyle-CssClass="btn btn-success btn-sm"/>
                            <asp:ButtonField ButtonType="Link" CommandName="decline" Text="Decline"  ControlStyle-CssClass="btn btn-danger btn-sm"/>
                        </Columns>
                    </asp:GridView>
                    </div>
                    
                    <!-- /.card-body -->
                </div>
                <!-- /.card -->
                <div class="row">
                    <div class="col-12">
                        <asp:Button ID="btnAdd" runat="server" Text="     Add     " OnClick="btnAdd_Click"
                                                class="btn btn-success float-right" />
                    </div>
                    <div class="modal fade" id="modal-xl">
                    <%--<asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>--%>
                        <div class="modal-dialog modal-xl">
                          <div class="modal-content">
                            <div class="modal-header">
                              <h4 class="modal-title">Adding new Report</h4>
                              <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                <span aria-hidden="true">&times;</span>
                              </button>
                            </div>
                            <div class="modal-body">
                            
                                <div class="card-body">
                                  <div class="form-group">
                                    <label for="exampleInputEmail1">Report Name</label>
                                    <asp:DropDownList ID="ddl_reports" runat="server" class="form-control" DataTextField="NAME" DataValueField="ID"></asp:DropDownList>
                                  </div>
                                  
                                    </div>
                                  
                                <!-- /.card-body -->

                              
                            </div>
                            <div class="modal-footer justify-content-between">
                              <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                              <asp:Button ID="btnSave" runat="server" Text="Save changes" OnClick="btnSave_Click" class="btn btn-primary" />
                            </div>
                          </div>
                          <!-- /.modal-content -->
                        </div>
                        <!-- /.modal-dialog -->
                        <%--</ContentTemplate>
                </asp:UpdatePanel>--%>
                      </div>
                      <!-- /.modal -->
                </div>
            </section>
    <!-- /.content -->
  </div>
  <!-- Toastr -->
	<!-- jQuery -->
	<script src="../plugins/jquery/jquery.min.js"></script>
	<!-- Bootstrap 4 -->
	<script src="../plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
	<!-- SweetAlert2 -->
	<script src="../plugins/sweetalert2/sweetalert2.min.js"></script>
	<!-- Toastr -->
	<script src="../plugins/toastr/toastr.min.js"></script>
	<!-- AdminLTE App -->
	<script src=".../dist/js/adminlte.min.js"></script>
	<!-- AdminLTE for demo purposes -->
	<script src="../plugins/datatables-buttons/js/dataTables.buttons.min.js"></script>
	<script src="../plugins/datatables/jquery.dataTables.min.js"></script>
	<script src="../plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
	<script src="../plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
	<script src="../plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script>
	<script src="../plugins/datatables-buttons/js/dataTables.buttons.min.js"></script>
	<script src="../plugins/datatables-buttons/js/buttons.bootstrap4.min.js"></script>
	<script src="../plugins/jszip/jszip.min.js"></script>
	<script src="../plugins/pdfmake/pdfmake.min.js"></script>
	<script src="../plugins/pdfmake/vfs_fonts.js"></script>
	<script src="../plugins/datatables-buttons/js/buttons.html5.min.js"></script>
	<script src="../plugins/datatables-buttons/js/buttons.print.min.js"></script>
	<script src="../plugins/datatables-buttons/js/buttons.colVis.min.js"></script>
	<!-- AdminLTE App -->
	<script src="../dist/js/adminlte.min.js"></script>
	<!-- AdminLTE for demo purposes -->
	<script src="../dist/js/demo.js"></script>
    
  <!-- /.content-wrapper -->
  
</asp:Content>

