Proyectos de Subversion LeadersLinked - Backend

Rev

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

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