
<div class="page-content-wrapper">
    <div class="page-content all">
        <div class="row">
            <div class="col-md-12">
                <div class="portlet box blue">
                    <div class="portlet-title" style="height: 5px">
                        <div class="caption">
                            <i class="fa fa-edit"></i> Present History Questions
                        </div>
                        <div class="actions">
                            <a href="javascript:;" class="btn btn-default btn-sm" id="question_add">
                                <i class="fa fa-plus"></i> Add New  </a>
                        </div>






                    </div>
                    <div class="portlet-body" >
                        <div class="table-toolbar">

                        </div>
                        <table class="table table-striped table-hover table-bordered" id="question">
                            <thead>
                                <tr>
                                    <th>
                                        Questions
                                    </th>
                                    <th>
                                        Answers
                                    </th>
                                    <th>
                                        Edit
                                    </th>
                                    <th>
                                        Delete
                                    </th>
                                </tr>
                            </thead>
                            <tbody>

                                {foreach $allData as $data}
                                <tr>

                                    <td>
                                        <input type="text" class="form-control updateElement invCatName" id="cat{$data->id}" data-id="{$data->id}" disabled=""  data-colName="name" data-tableName="presenthistoryquestions"  value="{$data->name}"/>
                                    </td>
                                    <td>
                                        <a class="btn green btn-xs showInv" data-id="{$data->id}" style=" float: left;" href="#" >
                                            <i class="fa fa-pencil"></i> Show
                                        </a>
                                    </td>
                                    <td>
                                        <a class="btn grey-cascade btn-xs editCat" data-id="{$data->id}" style=" float: left;" href="#" >
                                            <i class="fa fa-pencil"></i>
                                        </a>
                                    </td>
                                    <td>
                                        {if $data->displayorder !=  0 }
                                        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="{$data->id}" style=" float: left;" href="#" data-link="addpresenthistory" data-fn="del" data-tableName="presenthistoryquestions">
                                            <i class="fa fa-close"></i>
                                        </a>{/if}
                                    </td>
                                </tr> 

                                {/foreach}
                            </tbody>
                        </table>



                    </div>
                </div>
            </div>
        </div>
    </div>

</div>

<input type="hidden" id="controllName" value="addpresenthistory"/>





<!----#########################################################################  model ##############################################################################################################--->
<div class="all">
    <!--------------------------------------------------------------------------- simple form Ultrasound Model-------------------------------------------------------------------------------------->
    <div class="modal fade" tabindex="-1" role="dialog" aria-hidden="false" data-backdrop="static" data-keyboard="false"   id="answersModel" style="min-width:1000px;">
        <div class="modal-dialog  modal-lg wds65">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                    <h4 class="modal-title">  </h4>
                </div>
                <div class="modal-body">
                    <div class="portlet-body form">
                        <div class="row">
                            <div class="col-md-12">
                                <div class="portlet blue-hoki box">

                                    <div class="portlet-title">
                                        <div class="caption">
                                            <i class="fa fa-cogs"></i> Answers
                                        </div>
                                        <div class="actions">
                                            <a href="javascript:;" class="btn btn-default btn-sm" id="answer_add">
                                                <i class="fa fa-plus"></i> Add </a>

                                        </div>
                                    </div>
                                    <div class="portlet-body">

                                        <table class="table table-striped table-hover table-bordered" id="answers" >
                                            <thead>
                                                <tr>
                                                    <th>
                                                        Answers
                                                    </th>
                                                    <th>
                                                        Favorite
                                                    </th>
                                                    <th>
                                                        Edit
                                                    </th>
                                                    <th>
                                                        Delete
                                                    </th>
                                                </tr>

                                            </thead>
                                            <tbody id="showAnswers">

                                            </tbody>
                                        </table>
                                        <input type="hidden" id="questionId" value=""/>
                                    </div>
                                </div>
                            </div>
                            <div class="modal-footer">

                                <button type="button" class="btn default" id="closemodel" data-dismiss="modal"> Close</button>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>




    <!-------------##############################-------------------- End of Models -----------------------#########################################-------------->
</div>