Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 20 Rev 5674
Línea 1... Línea 1...
1
<?php 
1
<?php
2
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
2
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
3
$currentUser    = $this->currentUserHelper();
3
$currentUser    = $this->currentUserHelper();
Línea 4... Línea 4...
4
 
4
 
Línea 89... Línea 89...
89
 
89
 
90
 
90
 
Línea 91... Línea 91...
91
        var allowEdit   = $allowEdit;
91
        var allowEdit   = $allowEdit;
92
        var allowDelete = $allowDelete;
92
        var allowDelete = $allowDelete;
93
        
93
        
94
        var gridTable = $('#gridTable').dataTable( {
94
        /* var gridTable = $('#gridTable').dataTable( {
95
            'processing': true,
95
            'processing': true,
96
            'serverSide': true,
96
            'serverSide': true,
Línea 339... Línea 339...
339
            e.preventDefault();
339
            e.preventDefault();
340
            $('#modal').modal('hide');
340
            $('#modal').modal('hide');
341
        });
341
        });
Línea 342... Línea 342...
342
 
342
 
343
        $('#form #status').bootstrapToggle({'on' : 'LABEL_ACTIVE',  'off' : 'LABEL_INACTIVE', 'width' : '160px', 'height' : '40px'});
343
        $('#form #status').bootstrapToggle({'on' : 'LABEL_ACTIVE',  'off' : 'LABEL_INACTIVE', 'width' : '160px', 'height' : '40px'});
344
        CKEDITOR.replace( 'description');
344
        CKEDITOR.replace( 'description'); */
345
    });
345
    });
346
JS;
346
JS;
347
$this->inlineScript()->captureEnd();
-
 
348
?>
-
 
349
		
-
 
350
<!-- Content Header (Page header) -->
-
 
351
<section class="content-header">
-
 
352
	<div class="container-fluid">
-
 
353
    	<div class="row mb-2">
-
 
354
        	<div class="col-sm-12">
-
 
355
            	<h1>LABEL_SKILLS</h1>
-
 
356
			</div>
-
 
357
		</div>
-
 
358
	</div><!-- /.container-fluid -->
-
 
359
</section>
-
 
360
 
-
 
361
<section class="content">
-
 
362
	<div class="container-fluid">
-
 
363
    	<div class="row">
-
 
364
        	<div class="col-12">
-
 
365
				<div class="card">                    
-
 
366
					<div class="card-body">
-
 
367
        	    		<table id="gridTable" class="table   table-hover">
-
 
368
                      		<thead>
-
 
369
        						<tr>
-
 
370
                                	<th>LABEL_NAME</th>
-
 
371
                                  	<th>LABEL_ACTIVE</th>
-
 
372
                                  	<th>LABEL_ACTIONS</th>
-
 
373
                                </tr>
-
 
374
                       		</thead>
-
 
375
                         	<tbody>
-
 
376
                         	</tbody>
-
 
377
                    	</table>
-
 
378
                   	</div>
-
 
379
                   	<div class="card-footer clearfix">
-
 
380
                   		<div style="float:right;">
-
 
381
							<button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH  </button>
-
 
382
							<?php if($allowAdd) : ?>
-
 
383
							<button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
-
 
384
							<?php endif; ?>
-
 
385
						</div>
-
 
386
                 	</div>
-
 
387
          		</div>
-
 
388
           	</div>     
-
 
389
        </div>          
-
 
390
 	</div>
-
 
391
</section> 	
-
 
392
 
-
 
393
<!-- The Modal -->
-
 
394
<div class="modal" id="modal">
-
 
395
	<div class="modal-dialog  modal-xl">
-
 
396
    	<div class="modal-content">
-
 
397
 
-
 
398
            <!-- Modal Header -->
-
 
399
      		<div class="modal-header">
-
 
400
        		<h4 class="modal-title">LABEL_SKILLS - <span id="form-title"></span></h4>
-
 
401
        		<button type="button" class="close" data-dismiss="modal">&times;</button>
-
 
402
      		</div>
-
 
403
 
-
 
404
            <!-- Modal body -->
-
 
405
      		<div class="modal-body">
-
 
406
       			 <?php 
-
 
407
                    $form = $this->form;
-
 
408
            		$form->setAttributes([
-
 
409
                        'method'    => 'post',
-
 
410
                        'name'      => 'form',
-
 
411
                        'id'        => 'form'
-
 
412
                    ]);
-
 
413
    
-
 
414
                    $form->prepare();
-
 
415
                    echo $this->form()->openTag($form);
-
 
416
                    ?>					
-
 
417
    					<div class="form-group">
-
 
418
        					<?php 
-
 
419
                            $element = $form->get('name');
-
 
420
                            $element->setOptions(['label' => 'LABEL_NAME']);
-
 
421
                            $element->setAttributes(['class' => 'form-control']); 
-
 
422
                                            
-
 
423
                            echo $this->formLabel($element);
-
 
424
                            echo $this->formText($element);
-
 
425
                            ?>
-
 
426
						</div>
-
 
427
						<div class="form-group">
-
 
428
                    	<?php 
-
 
429
                            $element = $form->get('description');
-
 
430
                            $element->setOptions(['label' => 'LABEL_DESCRIPTION']);
-
 
431
                            $element->setAttributes(['class' => 'form-control']); 
-
 
432
 
-
 
433
                            echo $this->formLabel($element);
-
 
434
                            echo $this->formTextArea($element);
-
 
435
                        ?>
-
 
436
						</div>
-
 
437
						<div class="form-group">
-
 
438
                      	<?php 
-
 
439
                            $element = $form->get('status');
-
 
440
                            echo $this->formCheckbox($element);
-
 
441
                        ?>
-
 
442
						</div>
-
 
443
								
-
 
444
        				<div class="form-group">
-
 
445
                    		<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
446
                    		<button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
-
 
447
                   		</div>
-
 
448
     	      		<?php echo $this->form()->closeTag($form); ?>
-
 
449
      		</div>
-
 
450
 
-
 
451
            <!-- Modal footer -->
-
 
452
      		<div class="modal-footer">
-
 
453
        		<button type="button" class="btn btn-danger" data-dismiss="modal">Cerrar</button>
-
 
454
      		</div>
-
 
455
 
-
 
456
    	</div>
-
 
457
	</div>
-
 
458
</div>   			
-
 
459
						
-
 
Línea -... Línea 347...
-
 
347
$this->inlineScript()->captureEnd();
-
 
348
 
-
 
349
$js = <<<JS
-
 
350
const urlsVar = {
-
 
351
        linkTable: '$routeDatatable',
-
 
352
        addUrl: '$routeAdd',
-
 
353
        allowAdd: '$allowAdd',
-
 
354
        allowEdit: '$allowEdit',
-
 
355
        allowDelete: '$allowDelete',
Línea -... Línea 356...
-
 
356
   }
-
 
357
JS;
-
 
358
 
Línea -... Línea 359...
-
 
359
$this->inlineScript()->appendScript($js);
-
 
360
$this->inlineScript()->appendFile('/react-bundles/settings/skills/skillsBundle.js');
460
			
361
?>
461
 
362