<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="HelpDesk_AddResponse, MachSol.MachPanel.Web" %>

<asp:Content ID="Content7" ContentPlaceHolderID="CPH_Content" runat="Server">
    <asp:SqlDataSource ID="DS_DepartmentResponse" runat="server"></asp:SqlDataSource>
    <asp:GridView CssClass="table table-bordered table-striped table-hover" ID="GV_DepartmentREsponse" DataSourceID="DS_DepartmentResponse"
        runat="server" AllowPaging="True" AutoGenerateColumns="False">
        <AlternatingRowStyle CssClass="altRow" />
        <Columns>
            <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000280 %>' ControlStyle-Width="35%">
                <ItemTemplate>
                    <%#DataBinder.Eval(Container, "DataItem.ResponseTitle")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000559 %>' ControlStyle-Width="35%">
                <ItemTemplate>
                    <%#DataBinder.Eval(Container, "DataItem.ResponseName")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000360 %>' ControlStyle-Width="30%">
                <ItemTemplate>
                    <a href='EditResponse.aspx?DID=<%# DataBinder.Eval(Container, "DataItem.Id") %>&DepID=<%# DataBinder.Eval(Container, "DataItem.TicketDepartmentId") %>'
                        class="linkButtonEdit">
                        <asp:Literal ID="as" runat="server" Text='<%$ Resources:Content,GN0000276 %>'></asp:Literal></a>
                    <asp:LinkButton ID="LinkButton1" runat="server" CommandName="DeleteRow" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.Id") %>'
                        Text='<%$ Resources:Content,GN0000278 %>' CssClass="LinkButtonRemove btnAction"></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>

    
    <div class="col-xs-12">
        <div class="card">
            <div class="body">
                <div class="card">
                    <div class="header">
                        <h3>
                            <%= Resources.Content.GN0000658%>                                                                                                                                
                        </h3>
                    </div>

                    <div class="body">
                        <div class="row">
                            <div class="col-sm-4 col-xs-12 row-label">
                                *
                    <asp:Literal ID="Literal2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000558%>" />:
                            </div>

                            <div class="col-sm-6 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_ResponseTitle" Width="50%" MaxLength="250" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator Display="None" ID="RequiredFieldValidator1" ControlToValidate="TxBx_ResponseTitle"
                                            runat="server" ErrorMessage='' ValidationGroup="add"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-4 col-xs-12 row-label">
                                *
                    <asp:Literal ID="Literal3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000559%>" />:
                            </div>

                            <div class="col-sm-6 col-xs-12">
                                <div class="form-group">
                                        <asp:TextBox ID="TxBx_Response" Rows="8" Height="100px" class="col-xs-12" TextMode="MultiLine" MaxLength="8000"
                                            runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator Display="None" ID="RequiredFieldValidator2" ControlToValidate="TxBx_Response"
                                            runat="server" ErrorMessage='' ValidationGroup="add"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <br />

                <div>
                    <div class="clearfix">
                        <asp:ValidationSummary HeaderText='<%$ Resources:Content,EM000001 %>' ShowMessageBox="true"
                            ShowSummary="false" ID="ValidationSummary1" runat="server" ValidationGroup="add" />
                    </div>
                    <asp:Button ID="Btn_Add" runat="server" class="btn btn-primary waves-effect" Text='<%$ Resources:Content,GN0000659 %>'
                        ValidationGroup="add" CssClass="btn btn-primary btnAction" />
                    <asp:Button ID="Btn_Back" runat="server" SkinID="backButton" CausesValidation="false"
                        Text='<%$ Resources:Content,GN0000483 %>' CssClass="btn btn-primary" />
                </div>
            </div>
        </div>
    </div>
</asp:Content>
