Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 144 Rev 145
Línea 613... Línea 613...
613
			var objFormGenerator = new classFormGenerator();
613
			var objFormGenerator = new classFormGenerator();
614
	objFormGenerator.render();
614
	objFormGenerator.render();
Línea 615... Línea 615...
615
 
615
 
616
	var allowEdit   = $allowEdit;
616
	var allowEdit   = $allowEdit;
-
 
617
	var allowDelete = $allowDelete;
-
 
618
 
-
 
619
function getRows(){
-
 
620
	$.get("$routeDatatable", function(data, status){
-
 
621
    console.log(data);
-
 
622
  });
-
 
623
}
-
 
624
 
Línea 617... Línea 625...
617
	var allowDelete = $allowDelete;
625
getRows();
618
	
626
	
619
	var tableForm = $('#gridTable').dataTable( {
627
	var tableForm = $('#gridTable').dataTable( {
620
			'processing': true,
628
			'processing': true,
Línea 1810... Línea 1818...
1810
 
1818
 
1811
 
1819
 
Línea 1812... Línea 1820...
1812
		instanceName = 'form-description'; 
1820
		instanceName = 'form-description'; 
1813
		CKEDITOR.instances[instanceName ].setData('');
1821
		CKEDITOR.instances[instanceName ].setData('');
Línea 1814... Línea 1822...
1814
		
1822
		
1815
		$('#form-main #form-language' ).val('EN'),
1823
		$('#form-main #form-language' ).val('$lang_es'),
1816
		$('#form-main #form-status' ).val('D');
1824
		$('#form-main #form-status' ).val('$status_inactive');
Línea 1870... Línea 1878...
1870
    .panel-heading .accordion-toggle.collapsed:after {
1878
    .panel-heading .accordion-toggle.collapsed:after {
1871
        /* symbol for "collapsed" panels */
1879
        /* symbol for "collapsed" panels */
1872
        content: "\f078";    /* adjust as needed, taken from bootstrap.css */
1880
        content: "\f078";    /* adjust as needed, taken from bootstrap.css */
1873
    }
1881
    }
1874
</style>
1882
</style>
1875
 
-
 
1876
<!-- Content Header (Page header) -->
1883
<!-- Content Header (Page header) -->
1877
<section class="content-header">
1884
<section class="content-header">
1878
    <div class="container-fluid">
1885
    <div class="container-fluid">
1879
        <div class="row mb-2">
1886
        <div class="row mb-2">
1880
            <div class="col-sm-12">
1887
            <div class="col-sm-12">
1881
                <h1>LABEL_SELF_EVALUATION_FORMS</h1>
1888
                <h1>LABEL_SELF_EVALUATION_FORMS</h1>
1882
            </div>
1889
            </div>
1883
        </div>
1890
        </div>
-
 
1891
    </div>
1884
    </div><!-- /.container-fluid -->
1892
    <!-- /.container-fluid -->
1885
</section>
1893
</section>
1886
 
-
 
1887
<section class="content">
1894
<section class="content">
1888
    <div class="container-fluid" id="row-forms">
1895
    <div class="container-fluid" id="row-forms">
1889
        <div class="row">
1896
        <div class="row">
1890
            <div class="col-12">
1897
            <div class="col-12">
1891
                <div class="card">                    
1898
                <div class="card">
1892
                    <div class="card-body">
1899
                    <div class="card-body">
1893
                        <table id="gridTable" class="table   table-hover">
1900
                        <table id="gridTable" class="table   table-hover">
1894
                            <thead>
1901
                            <thead>
1895
                                <tr>
1902
                                <tr>
1896
                                    <th>LABEL_NAME</th>
1903
                                    <th>LABEL_NAME</th>
Línea 1898... Línea 1905...
1898
                                    <th>LABEL_ACTIVE</th>
1905
                                    <th>LABEL_ACTIVE</th>
1899
                                    <th>LABEL_ACTIONS</th>
1906
                                    <th>LABEL_ACTIONS</th>
1900
                                </tr>
1907
                                </tr>
1901
                            </thead>
1908
                            </thead>
1902
                            <tbody>
1909
                            <tbody>
-
 
1910
							
1903
                            </tbody>
1911
                            </tbody>
1904
                        </table>
1912
                        </table>
1905
                    </div>
1913
                    </div>
1906
                    <div class="card-footer clearfix">
1914
                    <div class="card-footer clearfix">
1907
                        <div style="float:right;">
1915
                        <div style="float:right;">
Línea 1910... Línea 1918...
1910
                                <button type="button" class="btn btn-primary btn-add-form"><i class="fa fa-plus"></i> LABEL_ADD </button>
1918
                                <button type="button" class="btn btn-primary btn-add-form"><i class="fa fa-plus"></i> LABEL_ADD </button>
1911
                            <?php endif; ?>
1919
                            <?php endif; ?>
1912
                        </div>
1920
                        </div>
1913
                    </div>
1921
                    </div>
1914
                </div>
1922
                </div>
1915
            </div>     
1923
            </div>
1916
        </div>          
1924
        </div>
1917
    </div>
1925
    </div>
1918
    <!-- Row Edit -->
1926
    <!-- Row Edit -->
1919
    <div class="row" id="row-edit" style="display: none">
1927
    <div class="row" id="row-edit" style="display: none">
1920
        <div class="col-xs-12 col-md-12">
1928
        <div class="col-xs-12 col-md-12">
1921
            <form action="#" name="form-main" id="form-main">
1929
            <form action="#" name="form-main" id="form-main">
Línea 1936... Línea 1944...
1936
                    <textarea  name="form-text" id="form-text" rows="5" class="ckeditor form-control"></textarea>
1944
                    <textarea  name="form-text" id="form-text" rows="5" class="ckeditor form-control"></textarea>
1937
                </div>
1945
                </div>
1938
                <div class="form-group">
1946
                <div class="form-group">
1939
                    <label for="form-language">LABEL_LANGUAGES</label>
1947
                    <label for="form-language">LABEL_LANGUAGES</label>
1940
                    <select name="form-language" id="form-language" class="form-control">
1948
                    <select name="form-language" id="form-language" class="form-control">
1941
                        <option value="<?php echo $lang_en;?>">LABEL_ENGLISH</option>
1949
                        <option value="<?php echo $lang_en; ?>">LABEL_ENGLISH</option>
1942
                        <option value="<?php echo $lang_es;?>">LABEL_SPANISH</option>
1950
                        <option value="<?php echo $lang_es; ?>">LABEL_SPANISH</option>
1943
                    </select>
1951
                    </select>
1944
                </div>
1952
                </div>
1945
                <div class="form-group">
1953
                <div class="form-group">
1946
                    <label for="form-status">LABEL_STATUS</label>
1954
                    <label for="form-status">LABEL_STATUS</label>
1947
                    <select name="form-status" id="form-status" class="form-control">
1955
                    <select name="form-status" id="form-status" class="form-control">
1948
                        <option value="<?php echo $status_inactive;?>">LABEL_INACTIVE</option>
1956
                        <option value="<?php echo $status_inactive; ?>">LABEL_INACTIVE</option>
1949
                        <option value="<?php echo $status_active;?>">LABEL_ACTIVE</option>
1957
                        <option value="<?php echo $status_active; ?>">LABEL_ACTIVE</option>
1950
                    </select>
1958
                    </select>
1951
                </div>
1959
                </div>
1952
                <br/>
1960
                <br/>
1953
                <div class="row">
1961
                <div class="row">
1954
                    <div class="col-xs-12 col-md-12 text-right">
1962
                    <div class="col-xs-12 col-md-12 text-right">
Línea 1956... Línea 1964...
1956
                    </div>
1964
                    </div>
1957
                </div>
1965
                </div>
1958
                <br />	
1966
                <br />	
1959
                <div class="row">
1967
                <div class="row">
1960
                    <div class="col-xs-12 col-md-12">
1968
                    <div class="col-xs-12 col-md-12">
1961
                        <div class="panel-group" id="accordion"></div>	                  
1969
                        <div class="panel-group" id="accordion"></div>
1962
                    </div>
1970
                    </div>
1963
                </div>	
1971
                </div>
1964
 
-
 
1965
 
-
 
1966
                <div class="form-group">
1972
                <div class="form-group">
1967
                    <button type="submit" form="form-main" class="btn btn-info btn-form-save-continue">LABEL_SAVE & LABEL_CONTINUE</button>
1973
                    <button type="submit" form="form-main" class="btn btn-info btn-form-save-continue">LABEL_SAVE & LABEL_CONTINUE</button>
1968
                    <button type="button" class="btn btn-primary btn-form-save-close">LABEL_SAVE & LABEL_CLOSE</button>
1974
                    <button type="button" class="btn btn-primary btn-form-save-close">LABEL_SAVE & LABEL_CLOSE</button>
1969
                    <button type="button" class="btn btn-secondary btn-edit-cancel">LABEL_CANCEL</button>
1975
                    <button type="button" class="btn btn-secondary btn-edit-cancel">LABEL_CANCEL</button>
1970
                </div>
1976
                </div>
Línea 2048... Línea 2054...
2048
                        </div>
2054
                        </div>
2049
                        <div class="form-group">
2055
                        <div class="form-group">
2050
                            <label for="question-multiline">LABEL_MULTI_LINE</label>
2056
                            <label for="question-multiline">LABEL_MULTI_LINE</label>
2051
                            <select name="question-multiline" id="question-multiline" class="form-control">
2057
                            <select name="question-multiline" id="question-multiline" class="form-control">
2052
                                <option value="1">LABEL_YES</option>
2058
                                <option value="1">LABEL_YES</option>
2053
                                <option value="0">No</option>
2059
                                <option value="0">LABEL_NOT</option>
2054
                            </select>
2060
                            </select>
2055
                        </div>
2061
                        </div>
2056
                        <div class="form-group">
2062
                        <div class="form-group">
2057
                            <label for="question-range">LABEL_RANGE</label>
2063
                            <label for="question-range">LABEL_RANGE</label>
2058
                            <select name="question-range" id="question-range" class="form-control">
2064
                            <select name="question-range" id="question-range" class="form-control">
Línea 2093... Línea 2099...
2093
                        </div>
2099
                        </div>
2094
                        <div class="form-group">
2100
                        <div class="form-group">
2095
                            <label for="option-correct">LABEL_ANSWER_CORRECT</label>
2101
                            <label for="option-correct">LABEL_ANSWER_CORRECT</label>
2096
                            <select name="option-correct" id="option-correct" class="form-control">
2102
                            <select name="option-correct" id="option-correct" class="form-control">
2097
                                <option value="1">LABEL_YES</option>
2103
                                <option value="1">LABEL_YES</option>
2098
                                <option value="0">No</option>
2104
                                <option value="0">LABEL_NOT</option>
2099
                            </select>
2105
                            </select>
2100
                        </div>
2106
                        </div>
2101
                        <div class="form-group">
2107
                        <div class="form-group">
2102
                            <label for="option-value">LABEL_VALUE</label>
2108
                            <label for="option-value">LABEL_VALUE</label>
2103
                            <input type="text" name="option-value" id="option-value" class="form-control" />
2109
                            <input type="text" name="option-value" id="option-value" class="form-control" />