Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 17003 Rev 17246
Línea 61... Línea 61...
61
    			'type' : 'get',
61
    			'type' : 'get',
62
                'beforeSend': function (request) {
62
                'beforeSend': function (request) {
63
                  NProgress.start();
63
                  NProgress.start();
64
                },
64
                },
65
                'dataFilter': function(response) {
65
                'dataFilter': function(response) {
66
                    var response = jQuery.parseJSON( response );
66
                    var response = JSON.parse(response);
-
 
67
                    console.log(response);
Línea 67... Línea 68...
67
                    
68
                    
68
                    var json                = {};
69
                    var json                = {};
69
                    json.recordsTotal       = 0;
70
                    json.recordsTotal       = 0;
70
                    json.recordsFiltered    = 0;
71
                    json.recordsFiltered    = 0;
Línea 282... Línea 283...
282
 
283
 
283
    });
284
    });
284
JS;
285
JS;
285
$this->inlineScript()->captureEnd();
286
$this->inlineScript()->captureEnd();
286
?>
-
 
Línea -... Línea 287...
-
 
287
?>
287
  
288
 
288
 
289
 
289
			
290
 
290
<div class="container">
291
<div class="container">
291
    	<div class="row">
292
    <div class="row">
292
        	<div class="col-12 mt-3">
293
        <div class="col-12 mt-3">
293
				<div class="card">        
294
            <div class="card">
294
					            
295
 
295
					<div class="card-body">
296
                <div class="card-body">
296
					<h6 class="card-title">LABEL_MEDIA_CATEGORIES</h6>
297
                    <h6 class="card-title">LABEL_MEDIA_CATEGORIES</h6>
297
						<div class="row">
298
                    <div class="row">
298
							<div class="col-12  mt-3">
299
                        <div class="col-12  mt-3">
299
    							<table id="gridTable" class="table   table-bordered">
300
                            <table id="gridTable" class="table   table-bordered">
300
                              		<thead>
301
                                <thead>
301
                						<tr>
302
                                    <tr>
302
                                        	<th>LABEL_NAME</th>
303
                                        <th>LABEL_NAME</th>
303
                                          	<th>LABEL_ACTIONS</th>
304
                                        <th>LABEL_ACTIONS</th>
304
                                        </tr>
305
                                    </tr>
305
                               		</thead>
306
                                </thead>
306
                                 	<tbody>
307
                                <tbody>
307
                                 	</tbody>
308
                                </tbody>
308
                            	</table>
309
                            </table>
309
							</div>
310
                        </div>
310
						</div>
311
                    </div>
311
        	    		
312
 
312
                   	</div>
313
                </div>
313
                   	<div class="card-footer text-right">
314
                <div class="card-footer text-right">
314
     
315
 
315
							<button type="button" class="btn btn-info btn-refresh"><i class="fa fa-sync"></i> LABEL_REFRESH  </button>
316
                    <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-sync"></i> LABEL_REFRESH </button>
316
							<?php if($allowAdd) : ?>
317
                    <?php if ($allowAdd) : ?>
317
							<button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
318
                        <button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
318
							<?php endif; ?>
319
                    <?php endif; ?>
319
		
320
 
320
                 	</div>
321
                </div>
321
          		</div>
322
            </div>
322
           	</div>     
323
        </div>
Línea 323... Línea 324...
323
        </div>          
324
    </div>
324
</div>
325
</div>
325
 
326
 
326
<!-- The Modal -->
327
<!-- The Modal -->
Línea 327... Línea 328...
327
<div class="modal" id="modal">
328
<div class="modal" id="modal">
328
	<div class="modal-dialog  modal-lg">
329
    <div class="modal-dialog  modal-lg">
329
    	<div class="modal-content">
330
        <div class="modal-content">
330
 
331
 
331
            <!-- Modal Header -->
332
            <!-- Modal Header -->
332
      		<div class="modal-header">
333
            <div class="modal-header">
333
        		<h6 class="modal-title">LABEL_CATEGORIES</h6>
334
                <h6 class="modal-title">LABEL_CATEGORIES</h6>
334
        		<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
335
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
335
      		</div>
336
            </div>
336
      		
337
 
337
      		 			 <?php 
338
            <?php
338
                    $form = $this->form;
339
            $form = $this->form;
339
            		$form->setAttributes([
340
            $form->setAttributes([
340
                        'method'    => 'post',
341
                'method'    => 'post',
341
                        'name'      => 'form',
342
                'name'      => 'form',
342
                        'id'        => 'form'
343
                'id'        => 'form'
343
                    ]);
344
            ]);
Línea 344... Línea 345...
344
    
345
 
345
                    $form->prepare();
346
            $form->prepare();
346
                    echo $this->form()->openTag($form);
-
 
347
                    ?>
-
 
348
 
-
 
349
            <!-- Modal body -->
-
 
350
      		<div class="modal-body">
-
 
351
      					
-
 
352
    					<div class="row">
-
 
353
    						<div class="col  mt-3">
-
 
354
    						<?php 
-
 
355
                            $element = $form->get('name');
-
 
356
                            $element->setOptions(['label' => 'LABEL_NAME']);
-
 
357
                            $element->setAttributes(['class' => 'form-control']); 
-
 
358
                                            
-
 
359
                            echo $this->formLabel($element);
-
 
360
                            echo $this->formText($element);
-
 
361
                            ?>
-
 
Línea 362... Línea 347...
362
                            </div>
347
            echo $this->form()->openTag($form);
363
						</div>
348
            ?>
-
 
349
 
364
    					
350
            <!-- Modal body -->
365
 
351
            <div class="modal-body">
366
      		</div>
-
 
367
 
352
 
368
            <!-- Modal footer -->
353
                <div class="row">
-
 
354
                    <div class="col  mt-3">
-
 
355
                        <?php
369
      		<div class="modal-footer text-right">
356
                        $element = $form->get('name');
370
        		 <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
357
                        $element->setOptions(['label' => 'LABEL_NAME']);
371
       			<button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
358
                        $element->setAttributes(['class' => 'form-control']);
372
      		</div>
-
 
Línea -... Línea 359...
-
 
359
 
Línea -... Línea 360...
-
 
360
                        echo $this->formLabel($element);
-
 
361
                        echo $this->formText($element);
-
 
362
                        ?>
-
 
363
                    </div>
-
 
364
                </div>
-
 
365
 
373
      		<?php echo $this->form()->closeTag($form); ?>
366
 
-
 
367
            </div>
-
 
368
 
-
 
369
            <!-- Modal footer -->
374
 
370
            <div class="modal-footer text-right">