Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 20 Rev 5647
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
 
-
 
364
 
-
 
365
<!-- Content Header (Page header) -->
-
 
366
 
352
		
367
<div id="industries">
353
<!-- Content Header (Page header) -->
368
</div>
354
<section class="content-header">
369
/* <section class="content-header">
355
	<div class="container-fluid">
370
<div class="container-fluid">
356
    	<div class="row mb-2">
371
<div class="row mb-2">
357
        	<div class="col-sm-12">
372
            <div class="col-sm-12">
358
            	<h1>LABEL_INDUSTRIES</h1>
373
                <h1>LABEL_INDUSTRIES</h1>
359
			</div>
374
            </div>
360
		</div>
375
        </div>
Línea 361... Línea 376...
361
	</div><!-- /.container-fluid -->
376
    </div><!-- /.container-fluid -->
362
</section>
377
</section>
363
 
378
 
364
<section class="content">
379
<section class="content">
365
	<div class="container-fluid">
380
    <div class="container-fluid">
366
    	<div class="row">
381
        <div class="row">
367
        	<div class="col-12">
382
            <div class="col-12">
368
				<div class="card">                    
383
                <div class="card">
369
					<div class="card-body">
384
                    <div class="card-body">
370
        	    		<table id="gridTable" class="table   table-hover">
385
                        <table id="gridTable" class="table   table-hover">
371
                      		<thead>
386
                            <thead>
372
        						<tr>
387
                                <tr>
373
                                	<th>LABEL_NAME</th>
388
                                    <th>LABEL_NAME</th>
374
                                  	<th>LABEL_ACTIVE</th>
389
                                    <th>LABEL_ACTIVE</th>
375
                                  	<th>LABEL_ACTIONS</th>
390
                                    <th>LABEL_ACTIONS</th>
376
                                </tr>
391
                                </tr>
377
                       		</thead>
392
                            </thead>
378
                         	<tbody>
393
                            <tbody>
379
                         	</tbody>
394
                            </tbody>
380
                    	</table>
395
                        </table>
381
                   	</div>
396
                    </div>
382
                   	<div class="card-footer clearfix">
397
                    <div class="card-footer clearfix">
383
                   		<div style="float:right;">
398
                        <div style="float:right;">
384
							<button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH  </button>
399
                            <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
385
							<?php if($allowAdd) : ?>
400
                            <?php if ($allowAdd) : ?>
386
							<button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
401
                                <button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
387
							<?php endif; ?>
402
                            <?php endif; ?>
388
						</div>
403
                        </div>
389
                 	</div>
404
                    </div>
390
          		</div>
405
                </div>
391
           	</div>     
406
            </div>
Línea 392... Línea 407...
392
        </div>          
407
        </div>
393
 	</div>
408
    </div>
394
</section> 	
409
</section>
395
 
410
 
Línea 396... Línea 411...
396
<!-- The Modal -->
411
<!-- The Modal -->
397
<div class="modal" id="modal">
412
<div class="modal" id="modal">
398
	<div class="modal-dialog  modal-xl">
413
    <div class="modal-dialog  modal-xl">
399
    	<div class="modal-content">
414
        <div class="modal-content">
400
 
415
 
Línea 401... Línea 416...
401
            <!-- Modal Header -->
416
            <!-- Modal Header -->
402
      		<div class="modal-header">
417
            <div class="modal-header">
403
        		<h4 class="modal-title">LABEL_INDUSTRIES - <span id="form-title"></span></h4>
418
                <h4 class="modal-title">LABEL_INDUSTRIES - <span id="form-title"></span></h4>
404
        		<button type="button" class="close" data-dismiss="modal">&times;</button>
419
                <button type="button" class="close" data-dismiss="modal">&times;</button>
405
      		</div>
420
            </div>
406
 
421
 
407
            <!-- Modal body -->
422
            <!-- Modal body -->
408
      		<div class="modal-body">
423
            <div class="modal-body">
409
       			 <?php 
424
                <?php
410
                    $form = $this->form;
425
                $form = $this->form;
411
            		$form->setAttributes([
426
                $form->setAttributes([
412
                        'method'    => 'post',
427
                    'method'    => 'post',
413
                        'name'      => 'form',
428
                    'name'      => 'form',
414
                        'id'        => 'form'
429
                    'id'        => 'form'
415
                    ]);
430
                ]);
416
    
431
 
417
                    $form->prepare();
432
                $form->prepare();
418
                    echo $this->form()->openTag($form);
433
                echo $this->form()->openTag($form);
419
                    ?>					
434
                ?>
420
    					<div class="form-group">
435
                <div class="form-group">
421
        					<?php 
436
                    <?php
422
                            $element = $form->get('name');
437
                    $element = $form->get('name');
423
                            $element->setOptions(['label' => 'LABEL_NAME']);
438
                    $element->setOptions(['label' => 'LABEL_NAME']);
424
                            $element->setAttributes(['class' => 'form-control']); 
439
                    $element->setAttributes(['class' => 'form-control']);
425
                                            
440
 
426
                            echo $this->formLabel($element);
441
                    echo $this->formLabel($element);
427
                            echo $this->formText($element);
442
                    echo $this->formText($element);
428
                            ?>
443
                    ?>
429
						</div>
444
                </div>
430
						<div class="form-group">
445
                <div class="form-group">
431
                    	<?php 
446
                    <?php
432
                            $element = $form->get('description');
447
                    $element = $form->get('description');
433
                            $element->setOptions(['label' => 'LABEL_DESCRIPTION']);
448
                    $element->setOptions(['label' => 'LABEL_DESCRIPTION']);
434
                            $element->setAttributes(['class' => 'form-control']); 
449
                    $element->setAttributes(['class' => 'form-control']);
435
 
450
 
436
                            echo $this->formLabel($element);
451
                    echo $this->formLabel($element);
437
                            echo $this->formTextArea($element);
452
                    echo $this->formTextArea($element);
438
                        ?>
453
                    ?>
439
						</div>
454
                </div>
440
						<div class="form-group">
455
                <div class="form-group">
441
                      	<?php 
456
                    <?php
442
                            $element = $form->get('status');
457
                    $element = $form->get('status');
443
                            echo $this->formCheckbox($element);
458
                    echo $this->formCheckbox($element);
444
                        ?>
459
                    ?>
445
						</div>
460
                </div>
446
								
461
 
Línea 447... Línea 462...
447
        				<div class="form-group">
462
                <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>
463
                    <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
464
                    <button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
-
 
465
                </div>
-
 
466
                <?php echo $this->form()->closeTag($form); ?>
-
 
467
            </div>
-
 
468
 
-
 
469
            <!-- Modal footer -->
-
 
470
            <div class="modal-footer">
457
      		</div>
471
                <button type="button" class="btn btn-danger" data-dismiss="modal">Cerrar</button>