Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 15255 Rev 15256
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 239... Línea 239...
239
                    
239
                    
240
                },
240
                },
241
            },
241
            },
242
            submitHandler: function(form)
242
            submitHandler: function(form)
243
            {
243
            {
244
                $('#modal .btn-primary').attr("disabled", true);
244
                $('#modal button').attr("disabled", true);
245
                $.ajax({
245
                $.ajax({
246
                    'dataType'  : 'json',
246
                    'dataType'  : 'json',
247
                    'accept'    : 'application/json',
247
                    'accept'    : 'application/json',
248
                    'method'    : 'post',
248
                    'method'    : 'post',
Línea 270... Línea 270...
270
                }).fail(function( jqXHR, textStatus, errorThrown) {
270
                }).fail(function( jqXHR, textStatus, errorThrown) {
271
                   $.fn.showError(textStatus);
271
                   $.fn.showError(textStatus);
272
                }).always(function() {
272
                }).always(function() {
273
                    NProgress.done();
273
                    NProgress.done();
274
                });
274
                });
275
                $('#modal .btn-primary').removeAttr("disabled");
275
                $('#modal button').removeAttr("disabled");
276
                return false;
276
                return false;
277
            },
277
            },
278
            invalidHandler: function(form, validator) {
278
            invalidHandler: function(form, validator) {
Línea 279... Línea 279...
279
            
279
            
Línea 370... Línea 370...
370
    });
370
    });
371
JS;
371
JS;
372
$this->inlineScript()->captureEnd();
372
$this->inlineScript()->captureEnd();
373
?>
373
?>
Línea 374... Línea 374...
374
 
374
 
375
			
375
 
376
			
376
 
377
<!-- Content Header (Page header) -->
377
<!-- Content Header (Page header) -->
378
<section class="content-header">
378
<section class="content-header">
379
	<div class="container-fluid">
379
    <div class="container-fluid">
380
    	<div class="row mb-2">
380
        <div class="row mb-2">
381
        	<div class="col-sm-12">
381
            <div class="col-sm-12">
382
            	<h1>LABEL_BEHAVIORS</h1>
382
                <h1>LABEL_BEHAVIORS</h1>
383
			</div>
383
            </div>
384
		</div>
384
        </div>
385
	</div><!-- /.container-fluid -->
385
    </div><!-- /.container-fluid -->
Línea 386... Línea 386...
386
</section>
386
</section>
387
 
387
 
388
<section class="content">
388
<section class="content">
389
	<div class="container-fluid">
389
    <div class="container-fluid">
390
    	<div class="row">
390
        <div class="row">
391
        	<div class="col-12">
391
            <div class="col-12">
392
				<div class="card">                    
392
                <div class="card">
393
					<div class="card-body">
393
                    <div class="card-body">
394
        	    		<table id="gridTable" class="table table-striped table-hover">
394
                        <table id="gridTable" class="table table-striped table-hover">
395
                      		<thead>
395
                            <thead>
396
        						<tr>
396
                                <tr>
397
                                	<th>LABEL_DESCRIPTION</th>
397
                                    <th>LABEL_DESCRIPTION</th>
398
                                  	<th>LABEL_ACTIVE</th>
398
                                    <th>LABEL_ACTIVE</th>
399
                                  	<th>LABEL_ACTIONS</th>
399
                                    <th>LABEL_ACTIONS</th>
400
                                </tr>
400
                                </tr>
401
                       		</thead>
401
                            </thead>
402
                         	<tbody>
402
                            <tbody>
403
                         	</tbody>
403
                            </tbody>
404
                    	</table>
404
                        </table>
405
                   	</div>
405
                    </div>
406
                   	<div class="card-footer clearfix">
406
                    <div class="card-footer clearfix">
407
                   		<div style="float:right;">
407
                        <div style="float:right;">
408
							<button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH  </button>
408
                            <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
409
							<?php if($allowAdd) : ?>
409
                            <?php if ($allowAdd) : ?>
410
							<button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
410
                                <button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
411
							<?php endif; ?>
411
                            <?php endif; ?>
412
							<?php if($allowImport) : ?>
412
                            <?php if ($allowImport) : ?>
413
							<button type="button" class="btn btn-primary btn-import"><i class="fa fa-plus"></i> LABEL_IMPORT </button>
413
                                <button type="button" class="btn btn-primary btn-import"><i class="fa fa-plus"></i> LABEL_IMPORT </button>
414
							<?php endif; ?>
414
                            <?php endif; ?>
415
						</div>
415
                        </div>
416
                 	</div>
416
                    </div>
417
          		</div>
417
                </div>
418
           	</div>     
418
            </div>
419
        </div>          
419
        </div>
Línea 420... Línea 420...
420
 	</div>
420
    </div>
421
</section> 	
421
</section>
422
 
422
 
423
<!-- The Modal -->
423
<!-- The Modal -->
Línea 424... Línea 424...
424
<div class="modal" id="modal">
424
<div class="modal" id="modal">
425
	<div class="modal-dialog  modal-xl">
425
    <div class="modal-dialog  modal-xl">
426
    	<div class="modal-content">
426
        <div class="modal-content">
427
 
427
 
428
            <!-- Modal Header -->
428
            <!-- Modal Header -->
Línea 429... Línea 429...
429
      		<div class="modal-header">
429
            <div class="modal-header">
430
        		<h4 class="modal-title">LABEL_BEHAVIOR - <span id="form-title"></span></h4>
430
                <h4 class="modal-title">LABEL_BEHAVIOR - <span id="form-title"></span></h4>
431
        		<button type="button" class="close" data-dismiss="modal">&times;</button>
431
                <button type="button" class="close" data-dismiss="modal">&times;</button>
432
      		</div>
432
            </div>
433
 
433
 
434
            <!-- Modal body -->
434
            <!-- Modal body -->
435
      		<div class="modal-body">
435
            <div class="modal-body">
436
       			 <?php 
436
                <?php
437
                    $form = $this->form;
437
                $form = $this->form;
438
            		$form->setAttributes([
438
                $form->setAttributes([
439
                        'method'    => 'post',
439
                    'method'    => 'post',
440
                        'name'      => 'form',
440
                    'name'      => 'form',
441
                        'id'        => 'form'
441
                    'id'        => 'form'
442
                    ]);
442
                ]);
443
    
443
 
444
                    $form->prepare();
444
                $form->prepare();
445
                    echo $this->form()->openTag($form);
445
                echo $this->form()->openTag($form);
446
                    ?>					
446
                ?>
447
    					<div class="form-group">
447
                <div class="form-group">
448
        					<?php 
448
                    <?php
449
                            $element = $form->get('description');
449
                    $element = $form->get('description');
450
                            $element->setOptions(['label' => 'LABEL_DESCRIPTION']);
450
                    $element->setOptions(['label' => 'LABEL_DESCRIPTION']);
451
                            $element->setAttributes(['class' => 'form-control']); 
451
                    $element->setAttributes(['class' => 'form-control']);
452
                                            
452
 
453
                            echo $this->formLabel($element);
453
                    echo $this->formLabel($element);
454
                            echo $this->formTextArea($element);
454
                    echo $this->formTextArea($element);
455
                            ?>
455
                    ?>
456
						</div>
456
                </div>
457
						<div class="form-group">
457
                <div class="form-group">
458
                      	<?php 
458
                    <?php
459
                            $element = $form->get('status');
459
                    $element = $form->get('status');
460
                            echo $this->formCheckbox($element);
460
                    echo $this->formCheckbox($element);
461
                        ?>
461
                    ?>
462
						</div>
462
                </div>
463
								
463
 
464
        				<div class="text-right">
464
                <div class="text-right">
465
                    		<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
465
                    <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
466
                    		<button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
466
                    <button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
467
                   		</div>
467
                </div>
468
     	      		<?php echo $this->form()->closeTag($form); ?>
468
                <?php echo $this->form()->closeTag($form); ?>
469
      		</div>
469
            </div>
470
 
-
 
471
 
-
 
472
    	</div>
-
 
473
	</div>
-
 
474
</div>    			
470