Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 145 | Rev 147 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 145 Rev 146
Línea 50... Línea 50...
50
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-checkbox/awesome-bootstrap-checkbox.css'));
50
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-checkbox/awesome-bootstrap-checkbox.css'));
51
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-input-number/input-number-format.jquery.js'));
51
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-input-number/input-number-format.jquery.js'));
Línea 52... Línea 52...
52
 
52
 
53
// bootbox Alert //
53
// bootbox Alert //
-
 
54
$this->inlineScript()->appendFile($this->basePath('plugins/bootbox/bootbox.min.js'));
-
 
55
// Js Render //
Línea 54... Línea 56...
54
$this->inlineScript()->appendFile($this->basePath('plugins/bootbox/bootbox.min.js'));
56
$this->inlineScript()->appendFile($this->basePath('plugins/jsrender/jsrender.min.js'));
55
 
57
 
Línea 56... Línea 58...
56
$status_active = \LeadersLinked\Model\CompanySelfEvaluationForm::STATUS_ACTIVE;
58
$status_active = \LeadersLinked\Model\CompanySelfEvaluationForm::STATUS_ACTIVE;
57
$status_inactive = \LeadersLinked\Model\CompanySelfEvaluationForm::STATUS_INACTIVE;
59
$status_inactive = \LeadersLinked\Model\CompanySelfEvaluationForm::STATUS_INACTIVE;
58
 
-
 
59
$lang_es = \LeadersLinked\Model\CompanySelfEvaluationForm::LANGUAGE_SPANISH;
60
 
60
$lang_en = \LeadersLinked\Model\CompanySelfEvaluationForm::LANGUAGE_ENGLISH;
61
$lang_es = \LeadersLinked\Model\CompanySelfEvaluationForm::LANGUAGE_SPANISH;
61
 
62
$lang_en = \LeadersLinked\Model\CompanySelfEvaluationForm::LANGUAGE_ENGLISH;
62
 
63
            
63
$this->inlineScript()->captureStart();
64
$this->inlineScript()->captureStart();
64
echo <<<JS
65
echo <<<JS
Línea 614... Línea 615...
614
	objFormGenerator.render();
615
	objFormGenerator.render();
Línea 615... Línea 616...
615
 
616
 
616
	var allowEdit   = $allowEdit;
617
	var allowEdit   = $allowEdit;
Línea 617... Línea -...
617
	var allowDelete = $allowDelete;
-
 
618
 
618
	var allowDelete = $allowDelete;
619
function getRows(){
-
 
620
	$.get("$routeDatatable", function(data, status){
-
 
621
    console.log(data);
-
 
622
  });
-
 
623
}
-
 
Línea -... Línea 619...
-
 
619
 
-
 
620
	const renderSelfTable = (data) => $("#rows").html($.templates("#formTmpl").render(data));
-
 
621
	
624
 
622
 
625
getRows();
623
 
626
	
624
 
627
	var tableForm = $('#gridTable').dataTable( {
625
	var tableForm = $('#gridTable').dataTable( {
628
			'processing': true,
626
			'processing': true,
Línea 652... Línea 650...
652
						
650
						
653
						if(response.success) {
651
						if(response.success) {
654
								json.recordsTotal       = response.data.total;
652
								json.recordsTotal       = response.data.total;
655
								json.recordsFiltered    = response.data.total;
653
								json.recordsFiltered    = response.data.total;
-
 
654
								json.data               = response.data.items;
-
 
655
 
-
 
656
								console.log(json.data);
-
 
657
								renderSelfTable(json.data);
656
								json.data               = response.data.items;
658
 
657
						} else {
659
						} else {
658
								$.fn.showError(response.data)
660
								$.fn.showError(response.data)
Línea 659... Línea 661...
659
						}
661
						}
Línea 1878... Línea 1880...
1878
    .panel-heading .accordion-toggle.collapsed:after {
1880
    .panel-heading .accordion-toggle.collapsed:after {
1879
        /* symbol for "collapsed" panels */
1881
        /* symbol for "collapsed" panels */
1880
        content: "\f078";    /* adjust as needed, taken from bootstrap.css */
1882
        content: "\f078";    /* adjust as needed, taken from bootstrap.css */
1881
    }
1883
    }
1882
</style>
1884
</style>
-
 
1885
 
-
 
1886
<script id="formTmpl" type="text/x-jsrender">
-
 
1887
                                <tr>
-
 
1888
                                    <td>{{:name}}</td>
-
 
1889
                                    <td>{{:language}}</td>
-
 
1890
                                    <td>{{:status}}</td>
-
 
1891
                                    <td></td>
-
 
1892
</tr>
-
 
1893
                            </script>
-
 
1894
 
1883
<!-- Content Header (Page header) -->
1895
<!-- Content Header (Page header) -->
1884
<section class="content-header">
1896
<section class="content-header">
1885
    <div class="container-fluid">
1897
    <div class="container-fluid">
1886
        <div class="row mb-2">
1898
        <div class="row mb-2">
1887
            <div class="col-sm-12">
1899
            <div class="col-sm-12">
Línea 1895... Línea 1907...
1895
    <div class="container-fluid" id="row-forms">
1907
    <div class="container-fluid" id="row-forms">
1896
        <div class="row">
1908
        <div class="row">
1897
            <div class="col-12">
1909
            <div class="col-12">
1898
                <div class="card">
1910
                <div class="card">
1899
                    <div class="card-body">
1911
                    <div class="card-body">
-
 
1912
 
-
 
1913
					<table  class="table table-hover">
-
 
1914
                            <thead>
-
 
1915
                                <tr>
-
 
1916
                                    <th>LABEL_NAME</th>
-
 
1917
                                    <th>LABEL_LANGUAGE</th>
-
 
1918
                                    <th>LABEL_ACTIVE</th>
-
 
1919
                                    <th>LABEL_ACTIONS</th>
-
 
1920
                                </tr>
-
 
1921
                            </thead>
-
 
1922
                            <tbody id="rows"></tbody>
-
 
1923
                        </table>
-
 
1924
 
-
 
1925
 
1900
                        <table id="gridTable" class="table   table-hover">
1926
                        <table id="gridTable" class="table   table-hover">
1901
                            <thead>
1927
                            <thead>
1902
                                <tr>
1928
                                <tr>
1903
                                    <th>LABEL_NAME</th>
1929
                                    <th>LABEL_NAME</th>
1904
                                    <th>LABEL_LANGUAGE</th>
1930
                                    <th>LABEL_LANGUAGE</th>