Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 17059 Rev 17060
Línea 97... Línea 97...
97
 
97
 
98
$this->inlineScript()->captureStart();
98
$this->inlineScript()->captureStart();
99
echo <<<JS
99
echo <<<JS
Línea -... Línea 100...
-
 
100
    jQuery( document ).ready(function( $ ) {
100
    jQuery( document ).ready(function( $ ) {
101
 
101
 
102
        // Configuración de validación de formularios
102
        $.validator.setDefaults({
103
        $.validator.setDefaults({
103
            debug: true,
104
            debug: true,
104
            highlight: function(element) {
105
            highlight: function(element) {
Línea 125... Línea 126...
125
 
126
 
126
        var allowEdit   = $allowEdit;
127
        var allowEdit   = $allowEdit;
127
        var allowDelete = $allowDelete;
128
        var allowDelete = $allowDelete;
Línea 128... Línea -...
128
        var allowUsers  = $allowUsers;
-
 
-
 
129
        var allowUsers  = $allowUsers;
129
 
130
 
130
        
131
        // Configuración de la tabla principal
131
        var gridTable = $('#gridTable').dataTable( {
132
        var gridTable = $('#gridTable').dataTable( {
132
            'processing': true,
133
            'processing': true,
133
            'serverSide': true,
134
            'serverSide': true,
Línea 137... Línea 138...
137
            'ordenable' : true,
138
            'ordenable' : true,
138
            'responsive': true,
139
            'responsive': true,
139
            'select' : false,
140
            'select' : false,
140
        	'paging': true,
141
        	'paging': true,
141
            'pagingType': 'simple_numbers',
142
            'pagingType': 'simple_numbers',
142
 
-
 
143
    		'ajax': {
143
    		'ajax': {
144
    			'url' : '$routeDatatable',
144
    			'url' : '$routeDatatable',
145
    			'type' : 'get',
145
    			'type' : 'get',,
146
                'data': function ( d ) {
-
 
147
                    d.topic_uuid = $('#form-filter #topic_uuid').val();
-
 
148
               
-
 
149
                },
-
 
150
                'beforeSend': function (request) {
146
                'beforeSend': function (request) {
151
                  NProgress.start();
147
                  NProgress.start();
152
                },
148
                },
153
                'dataFilter': function(response) {
149
                'dataFilter': function(response) {
154
                    var response = jQuery.parseJSON( response );
150
                    var response = jQuery.parseJSON( response );
Línea 276... Línea 272...
276
                }
272
                }
277
              ],
273
              ],
278
        });
274
        });
Línea 279... Línea 275...
279
 
275
 
280
    
276
    
281
        var seleccionarCampo;
277
    var seleccionarCampo;
282
    var validatorAdd = $('#form-add').validate({
278
    var validatorAdd = $('#form-add').validate({
283
        debug: true,
279
        debug: true,
284
        onclick: false,
280
        onclick: false,
Línea 671... Línea 667...
671
            'accept'    : 'application/json',
667
            'accept'    : 'application/json',
672
            'method'    : 'get',
668
            'method'    : 'get',
673
            'url'       : href,
669
            'url'       : href,
674
        }).done(function(response) {
670
        }).done(function(response) {
675
            if(response['success']) {
671
            if(response['success']) {
676
 
-
 
677
                $('#table-users-topic').val(response['data']['topic']);
-
 
678
      			$('#table-users-capsule').val(response['data']['capsule']);
672
      			$('#table-users-capsule').val(response['data']['capsule']);
Línea 679... Línea 673...
679
 
673
 
Línea 680... Línea 674...
680
                $('#gridTableUsers tbody').empty();
674
                $('#gridTableUsers tbody').empty();
Línea 822... Línea 816...
822
	<div class="card" id="row-listing">
816
	<div class="card" id="row-listing">
823
	 	<div class="card-header">
817
	 	<div class="card-header">
824
	 		<h6 class="card-title">LABEL_CAPSULES</h6>
818
	 		<h6 class="card-title">LABEL_CAPSULES</h6>
825
	 	</div>
819
	 	</div>
826
	 	<div class="card-body">
820
	 	<div class="card-body">
827
	 						<?php
-
 
828
						$form = $this->form;
-
 
829
						$form->setAttributes([
-
 
830
							'name'    => 'form-filter',
-
 
831
							'id'      => 'form-filter',
-
 
832
						]);
-
 
833
 
-
 
834
						$form->prepare();
-
 
835
						echo $this->form()->openTag($form);
-
 
836
						?>
-
 
837
						<div class="row">
-
 
838
	 	         <div class="col-12 mt-3">
-
 
839
							<?php
-
 
840
							$element = $form->get('topic_uuid');
-
 
841
 
-
 
842
							$element->setAttributes(['class' => 'form-control']);
-
 
843
							$element->setLabel('LABEL_TOPIC');
-
 
844
							echo $this->formLabel($element);
-
 
845
							echo $this->formSelect($element);
-
 
846
							?>
-
 
847
			
-
 
848
	 	         </div>
-
 
849
	 	     </div>
-
 
850
						<?php echo $this->form()->closeTag($form); ?>
-
 
851
			<div class="row">
821
			<div class="row">
852
	 	         <div class="col-12 mt-3">	
822
	 	         <div class="col-12 mt-3">	
853
					<table id="gridTable" class="table   table-bordered">
823
					<table id="gridTable" class="table   table-bordered">
854
							<thead>
824
							<thead>
855
								<tr>
825
								<tr>
Línea 1201... Línea 1171...
1201
			<!-- Modal body -->
1171
			<!-- Modal body -->
1202
			<div class="modal-body">
1172
			<div class="modal-body">
1203
				<form>
1173
				<form>
1204
					<div class="row">
1174
					<div class="row">
1205
						<div class="col-12 mt-3">
1175
						<div class="col-12 mt-3">
1206
						<label>LABEL_TOPIC</label>
-
 
1207
						<input type="text" readonly="readonly" id="table-users-topic" class="form-control">
-
 
1208
						</div>
-
 
1209
					</div>	
-
 
1210
					<div class="row">
-
 
1211
						<div class="col-12 mt-3">
-
 
1212
						<label>LABEL_CAPSULE</label>
1176
						<label>LABEL_CAPSULE</label>
1213
						<input type="text" readonly="readonly" id="table-users-capsule" class="form-control">
1177
						<input type="text" readonly="readonly" id="table-users-capsule" class="form-control">
1214
						</div>
1178
						</div>
1215
					</div>	
1179
					</div>	
1216
				</form>
1180
				</form>