Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 15831 Rev 16822
Línea 11... Línea 11...
11
$allowAdd       = $acl->isAllowed($roleName, 'settings/private-networks/add') ? 1 : 0;
11
$allowAdd       = $acl->isAllowed($roleName, 'settings/private-networks/add') ? 1 : 0;
12
$allowEdit      = $acl->isAllowed($roleName, 'settings/private-networks/edit') ? 1 : 0;
12
$allowEdit      = $acl->isAllowed($roleName, 'settings/private-networks/edit') ? 1 : 0;
13
$allowDelete    = $acl->isAllowed($roleName, 'settings/private-networks/delete') ? 1 : 0;
13
$allowDelete    = $acl->isAllowed($roleName, 'settings/private-networks/delete') ? 1 : 0;
Línea 14... Línea 14...
14
 
14
 
15
 
15
 
Línea 16... Línea 16...
16
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
16
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
Línea 17... Línea 17...
17
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
17
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
18
 
18
 
19
$this->inlineScript()->appendFile($this->basePath('plugins/ckeditor/ckeditor.js'));
19
$this->inlineScript()->appendFile($this->basePath('assets/vendors/ckeditor/ckeditor.js'));
Línea 20... Línea 20...
20
 
20
 
21
 
21
 
Línea 22... Línea 22...
22
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
22
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
23
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
23
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
24
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
24
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
25
 
25
 
Línea 26... Línea 26...
26
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'));
26
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.css'));
27
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-responsive/css/responsive.bootstrap4.min.css'));
27
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.css'));
Línea 28... Línea -...
28
 
-
 
29
$this->inlineScript()->appendFile($this->basePath('plugins/datatables/jquery.dataTables.min.js'));
-
 
Línea 30... Línea -...
30
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js'));
-
 
31
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/dataTables.responsive.min.js'));
-
 
32
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/responsive.bootstrap4.min.js'));
-
 
Línea -... Línea 28...
-
 
28
 
-
 
29
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net/jquery.dataTables.js'));
-
 
30
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.js'));
-
 
31
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/dataTables.responsive.min.js'));
33
 
32
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.min.js'));
-
 
33
 
Línea 34... Línea 34...
34
 
34
 
Línea 67... Línea 67...
67
            $(element).removeClass('is-invalid');
67
            $(element).removeClass('is-invalid');
68
        },
68
        },
69
        errorElement: 'span',
69
        errorElement: 'span',
70
        errorClass: 'error invalid-feedback',
70
        errorClass: 'error invalid-feedback',
71
        errorPlacement: function(error, element) {
71
        errorPlacement: function(error, element) {
72
            if(element.parent('.form-group').length) {
-
 
73
                error.insertAfter(element);
72
            error.insertAfter(element);
74
            } else if(element.parent('.toggle').length) {
-
 
75
                error.insertAfter(element.parent().parent());
-
 
76
            } else {
-
 
77
                error.insertAfter(element.parent());
-
 
78
            }
73
            
79
        }
74
        }
80
    });
75
    });
Línea 81... Línea 76...
81
    
76
    
82
    
77
    
83
    $.fn.showFormErrorValidator = function(fieldname, errors) {
78
    $.fn.showFormErrorValidator = function(fieldname, errors) {
84
        var field = $(fieldname);
79
        var field = $(fieldname);
Línea 85... Línea 80...
85
        if(field) {
80
        if(field) {
86
            $(field).addClass('is-invalid');
-
 
87
    
-
 
88
            var error = $('<span id="' + fieldname +'-error" class="error invalid-feedback">' + errors + '</div>');
-
 
89
            if(field.parent('.form-group').length) {
-
 
90
                error.insertAfter(field);
-
 
91
            } else  if(field.parent('.toggle').length) {
81
            $(field).addClass('is-invalid');
92
                error.insertAfter(field.parent().parent());
82
    
93
            } else {
83
            var error = $('<span id="' + fieldname +'-error" class="error invalid-feedback">' + errors + '</div>');
94
                error.insertAfter(field.parent());
84
            error.insertAfter(field.parent());
Línea 95... Línea 85...
95
            }
85
            
96
        }
86
        }
Línea 157... Línea 147...
157
                'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
147
                'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
158
            },
148
            },
159
        },
149
        },
160
        'drawCallback': function( settings ) {
150
        'drawCallback': function( settings ) {
161
            NProgress.done();
151
            NProgress.done();
162
            $('button.btn-delete').confirmation({
-
 
163
                rootSelector: 'button.btn-delete',
-
 
164
                title : 'LABEL_ARE_YOU_SURE',
-
 
165
                singleton : true,
-
 
166
                btnOkLabel: 'LABEL_YES',
-
 
167
                btnCancelLabel: 'LABEL_NO',
-
 
168
                onConfirm: function(value) {
-
 
169
                    var action = $(this).data('href');
-
 
170
                    NProgress.start();
-
 
171
                    $.ajax({
-
 
172
                        'dataType'  : 'json',
-
 
173
                        'accept'    : 'application/json',
-
 
174
                        'method'    : 'post',
-
 
175
                        'url'       :  action,
-
 
176
                    }).done(function(response) {
-
 
177
                        if(response['success']) {
-
 
178
                            $.fn.showSuccess(response['data']);
-
 
179
                            gridTable.api().ajax.reload(null, false);
-
 
180
                        } else {
-
 
181
                            $.fn.showError(response['data']);
-
 
182
                        }
-
 
183
                    }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
184
                        $.fn.showError(textStatus);
-
 
185
                    }).always(function() {
-
 
186
                        NProgress.done();
-
 
187
                    });
-
 
188
                },
-
 
189
            });
152
           
190
        },
153
        },
191
        'aoColumns': [
154
        'aoColumns': [
192
            { 'mDataProp': 'name' },
155
            { 'mDataProp': 'name' },
193
            { 'mDataProp': 'main_hostname' },
156
            { 'mDataProp': 'main_hostname' },
194
            { 'mDataProp': 'admin_hostname' },
157
            { 'mDataProp': 'admin_hostname' },
Línea 204... Línea 167...
204
                'targets': -2,
167
                'targets': -2,
205
                'orderable': false,
168
                'orderable': false,
206
                'className' : 'text-center',
169
                'className' : 'text-center',
207
                'render' : function ( data, type, row ) {
170
                'render' : function ( data, type, row ) {
Línea 208... Línea 171...
208
                      
171
                      
-
 
172
                    checked = data == 'a' ? 'checked' : '';
209
                    checked = data == 'a' ? ' checked="checked" ' : '';
173
 
210
                    return '<div class="checkbox checkbox-success">' +
174
                    return '<div class="form-check">' +
211
                        '<input class="styled" type="checkbox" ' + checked + ' disabled="disabled">' +
175
                        '<input type="checkbox" class="form-check-input" disabled="" checked="' + checked + '">' +
212
                        '<label ></label></div>';
176
                        '<label class="form-check-label" for="checkCheckedDisabled"></label></div>' ;
213
                }
177
                }
214
            },
178
            },
215
            {
179
            {
216
                'targets': -1,
180
                'targets': -1,
Línea 326... Línea 290...
326
                'data'      : $('#form-add').serialize()
290
                'data'      : $('#form-add').serialize()
327
            }).done(function(response) {
291
            }).done(function(response) {
328
                if(response.success) {
292
                if(response.success) {
329
                    $.fn.showSuccess(response.data);
293
                    $.fn.showSuccess(response.data);
Línea 330... Línea 294...
330
                        
294
                        
-
 
295
                    $('#card-add').hide();
-
 
296
                    $('#card-edit').hide();
331
                    $('#modalAdd').modal('hide');
297
                    $('#card-list').show();
332
                    gridTable.api().ajax.reload(null, false);
298
                    gridTable.api().ajax.reload(null, false);
333
                } else {
299
                } else {
334
                    if(jQuery.type(response.data) == 'string') {
300
                    if(jQuery.type(response.data) == 'string') {
335
                        $.fn.showError(response.data)
301
                        $.fn.showError(response.data)
Línea 416... Línea 382...
416
                'data'      : $('#form-edit').serialize()
382
                'data'      : $('#form-edit').serialize()
417
            }).done(function(response) {
383
            }).done(function(response) {
418
                if(response.success) {
384
                if(response.success) {
419
                    $.fn.showSuccess(response.data);
385
                    $.fn.showSuccess(response.data);
Línea -... Línea 386...
-
 
386
                        
420
                        
387
                    $('#card-add').hide();
-
 
388
                    $('#card-edit').hide();
421
                    $('#modalEdit').modal('hide');
389
                    $('#card-list').show();
422
                    gridTable.api().ajax.reload(null, false);
390
                    gridTable.api().ajax.reload(null, false);
423
                } else {
391
                } else {
424
                    if(jQuery.type(response.data) == 'string') {
392
                    if(jQuery.type(response.data) == 'string') {
425
                        $.fn.showError(response.data)
393
                        $.fn.showError(response.data)
Línea 460... Línea 428...
460
        $('#form-add #microlearning_playstore').val('');
428
        $('#form-add #microlearning_playstore').val('');
461
        $('#form-add #relationship_user_mode').val('').trigger('change');
429
        $('#form-add #relationship_user_mode').val('').trigger('change');
462
        $('#form-add #theme_id').val('');
430
        $('#form-add #theme_id').val('');
Línea 463... Línea 431...
463
 
431
 
-
 
432
        validatorAdd.resetForm();
-
 
433
      
-
 
434
        $('#card-list').hide();
464
        validatorAdd.resetForm();
435
        $('#card-edit').hide();
465
        $('#modalAdd').modal('show');
436
        $('#card-add').show();
Línea 466... Línea 437...
466
    });
437
    });
467
 
438
 
468
    $('body').on('click', 'button.btn-edit', function(e) {
439
    $('body').on('click', 'button.btn-edit', function(e) {
Línea 489... Línea 460...
489
                $('#form-edit #microlearning_appstore').val(response['data']['microlearning_appstore']);
460
                $('#form-edit #microlearning_appstore').val(response['data']['microlearning_appstore']);
490
                $('#form-edit #microlearning_playstore').val(response['data']['microlearning_playstore']);
461
                $('#form-edit #microlearning_playstore').val(response['data']['microlearning_playstore']);
491
                $('#form-edit #relationship_user_mode').val(response['data']['relationship_user_mode']).trigger('change');
462
                $('#form-edit #relationship_user_mode').val(response['data']['relationship_user_mode']).trigger('change');
492
                validatorEdit.resetForm();
463
                validatorEdit.resetForm();
Línea -... Línea 464...
-
 
464
                    
-
 
465
                $('#card-list').hide();
493
                    
466
                $('#card-add').hide();
494
                $('#modalEdit').modal('show');
467
                $('#card-edit').show();
495
            } else {
468
            } else {
496
                $.fn.showError(response['data']);
469
                $.fn.showError(response['data']);
497
            }
470
            }
498
        }).fail(function( jqXHR, textStatus, errorThrown) {
471
        }).fail(function( jqXHR, textStatus, errorThrown) {
499
            $.fn.showError(textStatus);
472
            $.fn.showError(textStatus);
500
        }).always(function() {
473
        }).always(function() {
501
            NProgress.done();
474
            NProgress.done();
502
        });
475
        });
-
 
476
    });
-
 
477
 
-
 
478
 
-
 
479
    $('body').on('click', 'button.btn-cancel', function(e) {
-
 
480
        e.preventDefault();
-
 
481
              
-
 
482
        $('#card-add').hide();
-
 
483
        $('#card-edit').hide();
-
 
484
        $('#card-list').show();
Línea 503... Línea 485...
503
    });
485
    });
504
        
486
        
505
 
487
 
506
    $('body').on('click', 'button.btn-refresh', function(e) {
488
    $('body').on('click', 'button.btn-refresh', function(e) {
Línea -... Línea 489...
-
 
489
        e.preventDefault();
-
 
490
        gridTable.api().ajax.reload(null, false);
-
 
491
    });
-
 
492
 
-
 
493
    $('body').on('click', 'button.btn-delete', function(e) { 
-
 
494
        e.preventDefault();
-
 
495
        var action = $(this).data('href');
-
 
496
 
-
 
497
 
-
 
498
          swal.fire({
-
 
499
            title: 'LABEL_ARE_YOU_SURE',
-
 
500
            icon: 'question',
-
 
501
            cancelButtonText: 'LABEL_NO',
-
 
502
            showCancelButton: true,
-
 
503
            confirmButtonText: 'LABEL_YES'
-
 
504
          }).then((result) => {
-
 
505
            if (result.isConfirmed) {
-
 
506
 
-
 
507
                    NProgress.start();
-
 
508
                    $.ajax({
-
 
509
                        'dataType'  : 'json',
-
 
510
                        'accept'    : 'application/json',
-
 
511
                        'method'    : 'post',
-
 
512
                        'url'       :  action,
-
 
513
                    }).done(function(response) {
-
 
514
                        if(response['success']) {
-
 
515
                            $.fn.showSuccess(response['data']);
-
 
516
                            gridTable.api().ajax.reload(null, false);
-
 
517
                        } else {
-
 
518
                            $.fn.showError(response['data']);
-
 
519
                        }
-
 
520
                    }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
521
                        $.fn.showError(textStatus);
-
 
522
                    }).always(function() {
-
 
523
                        NProgress.done();
-
 
524
                    });
-
 
525
            }
-
 
526
          }); 
Línea 507... Línea -...
507
        e.preventDefault();
-
 
Línea 508... Línea 527...
508
        gridTable.api().ajax.reload(null, false);
527
 
509
    });
528
 
510
 
529
    });  
511
 
530
 
Línea 532... Línea 551...
532
});
551
});
533
JS;
552
JS;
534
$this->inlineScript()->captureEnd();
553
$this->inlineScript()->captureEnd();
535
?>
554
?>
Línea 536... Línea -...
536
  
-
 
537
<!-- Content Header (Page header) -->
-
 
538
<section class="content-header">
-
 
539
    <div class="container-fluid">
-
 
540
        <div class="row mb-2">
-
 
541
            <div class="col-sm-12">
-
 
542
                <h1>LABEL_PRIVATE_NETWORKS</h1>
-
 
543
            </div>
-
 
544
        </div>
-
 
545
    </div><!-- /.container-fluid -->
-
 
546
</section>
555
  
547
 
556
 
548
<section class="content">
557
 <div class="container">
549
    <div class="container-fluid">
558
 	<div class="card" id="card-list">
550
        <div class="row">
559
 		<div class="card-body">
551
            <div class="col-12">
560
 			<h6 class="card-title">LABEL_PRIVATE_NETWORKS</h6>
552
                <div class="card">
561
     	    <div class="row">
-
 
562
                <div class="col-12">
553
                    <div class="card-body">
563
 
554
                        <table id="gridTable" class="table table-striped table-hover">
564
               		<table id="gridTable" class="table table-striped table-hover">
555
                            <thead>
565
               			<thead>
556
                                <tr>
566
            				<tr>
557
                                    <th>LABEL_NAME</th>
567
                       			<th>LABEL_NAME</th>
558
                                    <th>LABEL_MAIN_HOSTNAME</th>
568
                          		<th>LABEL_MAIN_HOSTNAME</th>
559
                                    <th>LABEL_ADMIN_HOSTNAME</th>
569
                          		<th>LABEL_ADMIN_HOSTNAME</th>
560
                                    <th>LABEL_ACTIVE</th>
570
                              	<th>LABEL_ACTIVE</th>
561
                                    <th>LABEL_ACTIONS</th>
571
                              	<th>LABEL_ACTIONS</th>
562
                                </tr>
572
                       		</tr>
563
                            </thead>
573
                       	</thead>
564
                            <tbody>
574
                  		<tbody>
565
                            </tbody>
575
                   		</tbody>
566
                        </table>
576
             		 </table>
-
 
577
     			</div>
-
 
578
 
-
 
579
			</div>
567
                    </div>
580
    	</div>
568
                    <div class="card-footer clearfix">
581
    	<div class="card-footer clearfix">
569
                        <div style="float:right;">
582
        	<div style="float:right;">
570
                            <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
583
         		<button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
571
                            <?php if ($allowAdd) : ?>
584
             	<?php if ($allowAdd) : ?>
572
                                <button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
-
 
573
                            <?php endif; ?>
-
 
574
 
-
 
575
                        </div>
-
 
576
                    </div>
585
             	<button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
577
                </div>
586
    			<?php endif; ?>
578
            </div>
587
    		</div>
579
        </div>
588
    	</div>
580
    </div>
-
 
581
</section>
-
 
582
 
589
    </div>	
583
 
-
 
584
<!-- The Modal -->
590
    
585
<div class="modal" id="modalAdd">
-
 
586
	<div class="modal-dialog  modal-xl">
-
 
587
    	<div class="modal-content">
-
 
588
 
-
 
589
            <!-- Modal Header -->
-
 
590
      		<div class="modal-header">
-
 
591
        		<h4 class="modal-title">LABEL_NEW_PRIVATE_NETWORK<span id="form-title"></span></h4>
-
 
592
        		<button type="button" class="close" data-dismiss="modal">&times;</button>
-
 
593
      		</div>
-
 
594
 
-
 
595
            <!-- Modal body -->
-
 
596
      		<div class="modal-body">
591
	<div class="card" id="card-add" style="display: none">
597
       			 <?php 
592
		<?php 
598
                    $form = $this->formAdd;
593
                    $form = $this->formAdd;
599
            		$form->setAttributes([
594
            		$form->setAttributes([
600
                        'method'    => 'post',
595
                        'method'    => 'post',
601
                        'name'      => 'form-add',
596
                        'name'      => 'form-add',
602
                        'id'        => 'form-add',
597
                        'id'        => 'form-add',
603
            		    'action'    => $routeAdd,
598
            		    'action'    => $routeAdd,
Línea 604... Línea 599...
604
                    ]);
599
                    ]);
605
    
600
    
606
                    $form->prepare();
601
                    $form->prepare();
-
 
602
                    echo $this->form()->openTag($form);
-
 
603
        ?>		
-
 
604
 		<div class="card-body">
-
 
605
 			<h6 class="card-title">LABEL_NEW_PRIVATE_NETWORK</h6>
607
                    echo $this->form()->openTag($form);
606
 			
608
                    ?>		
607
 			<div class="row">
609
                      	<div class="form-group">
608
                      	<div class="col-12 mb-3 mr-3">
610
        					<?php 
609
        					<?php 
611
        					$element = $form->get('first_name');
610
        					$element = $form->get('first_name');
Línea 612... Línea 611...
612
        					$element->setOptions(['label' => 'LABEL_FIRST_NAME']);
611
        					$element->setOptions(['label' => 'LABEL_FIRST_NAME']);
613
                            $element->setAttributes(['class' => 'form-control']); 
612
                            $element->setAttributes(['class' => 'form-control']); 
614
                                            
613
                                            
615
                            echo $this->formLabel($element);
614
                            echo $this->formLabel($element);
-
 
615
                            echo $this->formText($element);
616
                            echo $this->formText($element);
616
                            ?>
-
 
617
						</div>	
617
                            ?>
618
					</div>				
618
						</div>			
619
                    <div class="row">
619
    					<div class="form-group">
620
                      	<div class="col-12 mb-3 mr-3">
620
        					<?php 
621
        					<?php 
Línea 621... Línea 622...
621
        					$element = $form->get('last_name');
622
        					$element = $form->get('last_name');
622
        					$element->setOptions(['label' => 'LABEL_LAST_NAME']);
623
        					$element->setOptions(['label' => 'LABEL_LAST_NAME']);
623
                            $element->setAttributes(['class' => 'form-control']); 
624
                            $element->setAttributes(['class' => 'form-control']); 
624
                                            
625
                                            
-
 
626
                            echo $this->formLabel($element);
625
                            echo $this->formLabel($element);
627
                            echo $this->formText($element);
-
 
628
                            ?>
626
                            echo $this->formText($element);
629
						</div>
627
                            ?>
630
					</div>
628
						</div>
631
                    <div class="row">
629
						<div class="form-group">
632
                      	<div class="col-12 mb-3 mr-3">
Línea 630... Línea 633...
630
                    	<?php 
633
                    	<?php 
631
                    	    $element = $form->get('email');
634
                    	    $element = $form->get('email');
632
                    	    $element->setOptions(['label' => 'LABEL_EMAIL']);
635
                    	    $element->setOptions(['label' => 'LABEL_EMAIL']);
633
                            $element->setAttributes(['class' => 'form-control']); 
636
                            $element->setAttributes(['class' => 'form-control']); 
-
 
637
 
634
 
638
                            echo $this->formLabel($element);
-
 
639
                            echo $this->formText($element);
635
                            echo $this->formLabel($element);
640
                        ?>
636
                            echo $this->formText($element);
641
						</div>
637
                        ?>
642
					</div>
638
						</div>
643
                    <div class="row">
Línea 639... Línea 644...
639
						<div class="form-group">
644
                      	<div class="col-12 mb-3 mr-3">
640
                    	<?php 
645
                    	<?php 
641
                    	    $element = $form->get('password');
646
                    	    $element = $form->get('password');
642
                    	    $element->setOptions(['label' => 'LABEL_PASSWORD']);
647
                    	    $element->setOptions(['label' => 'LABEL_PASSWORD']);
-
 
648
                            $element->setAttributes(['class' => 'form-control']); 
643
                            $element->setAttributes(['class' => 'form-control']); 
649
 
-
 
650
                            echo $this->formLabel($element);
644
 
651
                            echo $this->formPassword($element);
645
                            echo $this->formLabel($element);
652
                        ?>
646
                            echo $this->formPassword($element);
653
						</div>
647
                        ?>
654
					</div>
Línea 648... Línea 655...
648
						</div>
655
                    <div class="row">
649
						<div class="form-group">
656
                      	<div class="col-12 mb-3 mr-3">
650
                    	<?php 
657
                    	<?php 
651
                    	    $element = $form->get('confirmation');
658
                    	    $element = $form->get('confirmation');
-
 
659
                    	    $element->setOptions(['label' => 'LABEL_CONFIRMATION']);
652
                    	    $element->setOptions(['label' => 'LABEL_CONFIRMATION']);
660
                            $element->setAttributes(['class' => 'form-control']); 
-
 
661
 
653
                            $element->setAttributes(['class' => 'form-control']); 
662
                            echo $this->formLabel($element);
654
 
663
                            echo $this->formPassword($element);
655
                            echo $this->formLabel($element);
664
                        ?>
656
                            echo $this->formPassword($element);
665
						</div>
Línea 657... Línea 666...
657
                        ?>
666
					</div>
658
						</div>
667
                    <div class="row">
659
						<div class="form-group">
668
                      	<div class="col-12 mb-3 mr-3">
660
                    	<?php 
669
                    	<?php 
-
 
670
                    	    $element = $form->get('company');
661
                    	    $element = $form->get('company');
671
                    	    $element->setOptions(['label' => 'LABEL_COMPANY']);
-
 
672
                            $element->setAttributes(['class' => 'form-control']); 
662
                    	    $element->setOptions(['label' => 'LABEL_COMPANY']);
673
 
663
                            $element->setAttributes(['class' => 'form-control']); 
674
                            echo $this->formLabel($element);
664
 
675
                            echo $this->formText($element);
665
                            echo $this->formLabel($element);
676
                        ?>
Línea 666... Línea 677...
666
                            echo $this->formText($element);
677
						</div>
667
                        ?>
678
					</div>
668
						</div>
679
                    <div class="row">
669
						<div class="form-group">
680
                      	<div class="col-12 mb-3 mr-3">
-
 
681
                    	<?php 
670
                    	<?php 
682
                    	    $element = $form->get('industry_id');
-
 
683
                    	    $element->setOptions(['label' => 'LABEL_INDUSTRY']);
671
                    	    $element = $form->get('industry_id');
684
                            $element->setAttributes(['class' => 'form-control']); 
672
                    	    $element->setOptions(['label' => 'LABEL_INDUSTRY']);
685
 
673
                            $element->setAttributes(['class' => 'form-control']); 
686
                            echo $this->formLabel($element);
674
 
687
                            echo $this->formSelect($element);
Línea 675... Línea 688...
675
                            echo $this->formLabel($element);
688
                        ?>
676
                            echo $this->formSelect($element);
689
						</div>
677
                        ?>
690
					</div>
678
						</div>
691
                    <div class="row">
-
 
692
                      	<div class="col-12 mb-3 mr-3">
679
						<div class="form-group">
693
                    	<?php 
-
 
694
                    	    $element = $form->get('company_size_id');
680
                    	<?php 
695
                    	    $element->setOptions(['label' => 'LABEL_COMPANY_SIZE']);
681
                    	    $element = $form->get('company_size_id');
696
                            $element->setAttributes(['class' => 'form-control']); 
682
                    	    $element->setOptions(['label' => 'LABEL_COMPANY_SIZE']);
697
 
683
                            $element->setAttributes(['class' => 'form-control']); 
698
                            echo $this->formLabel($element);
Línea 684... Línea 699...
684
 
699
                            echo $this->formSelect($element);
685
                            echo $this->formLabel($element);
700
                        ?>
686
                            echo $this->formSelect($element);
701
						</div>
687
                        ?>
702
					</div>
-
 
703
                    <div class="row">
688
						</div>
704
                      	<div class="col-12 mb-3 mr-3">
-
 
705
                    	<?php 
689
						<div class="form-group">
706
                    	    $element = $form->get('main_hostname');
690
                    	<?php 
707
                    	    $element->setOptions(['label' => 'LABEL_MAIN_HOSTNAME']);
691
                    	    $element = $form->get('main_hostname');
708
                            $element->setAttributes(['class' => 'form-control']); 
692
                    	    $element->setOptions(['label' => 'LABEL_MAIN_HOSTNAME']);
709
 
Línea 693... Línea 710...
693
                            $element->setAttributes(['class' => 'form-control']); 
710
                            echo $this->formLabel($element);
694
 
711
                            echo $this->formText($element);
695
                            echo $this->formLabel($element);
712
                        ?>
696
                            echo $this->formText($element);
713
						</div>
697
                        ?>
-
 
698
						</div>
-
 
699
						<div class="form-group">
714
					</div>
700
                    	<?php 
715
                    <div class="row">
-
 
716
                      	<div class="col-12 mb-3 mr-3">
701
                    	    $element = $form->get('alternative_hostname');
717
                    	<?php 
702
                    	    $element->setOptions(['label' => 'LABEL_ALTERNATIVE_HOSTNAME']);
718
                    	    $element = $form->get('alternative_hostname');
703
                            $element->setAttributes(['class' => 'form-control']); 
719
                    	    $element->setOptions(['label' => 'LABEL_ALTERNATIVE_HOSTNAME']);
704
 
720
                            $element->setAttributes(['class' => 'form-control']); 
Línea 705... Línea 721...
705
                            echo $this->formLabel($element);
721
 
706
                            echo $this->formText($element);
722
                            echo $this->formLabel($element);
707
                        ?>
723
                            echo $this->formText($element);
708
						</div>
724
                        ?>
-
 
725
						</div>
709
						
726
					</div>
-
 
727
                    <div class="row">
710
						
728
                      	<div class="col-12 mb-3 mr-3">
711
						
729
                    	<?php 
712
						<div class="form-group">
730
                    	    $element = $form->get('admin_hostname');
713
                    	<?php 
731
                    	    $element->setOptions(['label' => 'LABEL_ADMIN_HOSTNAME']);
Línea 714... Línea 732...
714
                    	    $element = $form->get('admin_hostname');
732
                            $element->setAttributes(['class' => 'form-control']); 
715
                    	    $element->setOptions(['label' => 'LABEL_ADMIN_HOSTNAME']);
733
 
716
                            $element->setAttributes(['class' => 'form-control']); 
734
                            echo $this->formLabel($element);
717
 
735
                            echo $this->formText($element);
-
 
736
                        ?>
718
                            echo $this->formLabel($element);
737
						</div>
-
 
738
					</div>
719
                            echo $this->formText($element);
739
                    <div class="row">
720
                        ?>
740
                      	<div class="col-12 mb-3 mr-3">
721
						</div>
741
                    	<?php 
722
						<div class="form-group">
742
                    	    $element = $form->get('moodle_name');
Línea 723... Línea 743...
723
                    	<?php 
743
                    	    $element->setOptions(['label' => 'LABEL_MY_ONROOM_NAME']);
724
                    	    $element = $form->get('moodle_name');
744
                            $element->setAttributes(['class' => 'form-control']); 
725
                    	    $element->setOptions(['label' => 'LABEL_MY_ONROOM_NAME']);
745
 
726
                            $element->setAttributes(['class' => 'form-control']); 
746
                            echo $this->formLabel($element);
-
 
747
                            echo $this->formText($element);
727
 
748
                        ?>
-
 
749
						</div>
728
                            echo $this->formLabel($element);
750
					</div>
729
                            echo $this->formText($element);
751
                    <div class="row">
730
                        ?>
752
                      	<div class="col-12 mb-3 mr-3">
731
						</div>
753
                    	<?php 
Línea 732... Línea 754...
732
						<div class="form-group">
754
                    	    $element = $form->get('moodle_url');
733
                    	<?php 
755
                    	    $element->setOptions(['label' => 'LABEL_MY_ONROOM_URL']);
734
                    	    $element = $form->get('moodle_url');
756
                            $element->setAttributes(['class' => 'form-control']); 
735
                    	    $element->setOptions(['label' => 'LABEL_MY_ONROOM_URL']);
757
 
-
 
758
                            echo $this->formLabel($element);
736
                            $element->setAttributes(['class' => 'form-control']); 
759
                            echo $this->formText($element);
-
 
760
                        ?>
737
 
761
						</div>
738
                            echo $this->formLabel($element);
762
					</div>
739
                            echo $this->formText($element);
763
                    <div class="row">
740
                        ?>
764
                      	<div class="col-12 mb-3 mr-3">
Línea 741... Línea 765...
741
						</div>
765
                    	<?php 
742
						<div class="form-group">
766
                    	    $element = $form->get('microlearning_appstore');
743
                    	<?php 
767
                    	    $element->setOptions(['label' => 'LABEL_MY_MICROLEARNING_APPSTORE']);
744
                    	    $element = $form->get('microlearning_appstore');
768
                            $element->setAttributes(['class' => 'form-control']); 
745
                    	    $element->setOptions(['label' => 'LABEL_MY_MICROLEARNING_APPSTORE']);
-
 
746
                            $element->setAttributes(['class' => 'form-control']); 
-
 
747
 
-
 
748
                            echo $this->formLabel($element);
-
 
749
                            echo $this->formText($element);
-
 
750
                        ?>
769
 
751
						</div>
770
                            echo $this->formLabel($element);
-
 
771
                            echo $this->formText($element);
752
						<div class="form-group">
772
                        ?>
753
                    	<?php 
773
						</div>
754
                    	    $element = $form->get('microlearning_playstore');
774
					</div>
755
                    	    $element->setOptions(['label' => 'LABEL_MY_MICROLEARNING_PLAYSTORE']);
775
                    <div class="row">
Línea 756... Línea 776...
756
                            $element->setAttributes(['class' => 'form-control']); 
776
                      	<div class="col-12 mb-3 mr-3">
757
 
777
                    	<?php 
758
                            echo $this->formLabel($element);
778
                    	    $element = $form->get('microlearning_playstore');
759
                            echo $this->formText($element);
779
                    	    $element->setOptions(['label' => 'LABEL_MY_MICROLEARNING_PLAYSTORE']);
-
 
780
                            $element->setAttributes(['class' => 'form-control']); 
760
                        ?>
781
 
-
 
782
                            echo $this->formLabel($element);
761
						</div>
783
                            echo $this->formText($element);
762
						
784
                        ?>
763
						
785
						</div>
764
						
786
					</div>
Línea 765... Línea 787...
765
						
787
                    <div class="row">
766
						
788
                      	<div class="col-12 mb-3 mr-3">
767
						
789
                    	<?php 
768
                        <div class="form-group">
790
                    	    $element = $form->get('relationship_user_mode');
-
 
791
                    	    $element->setOptions(['label' => 'LABEL_THEME']);
769
                    	<?php 
792
                            $element->setAttributes(['class' => 'form-control']); 
770
                    	    $element = $form->get('relationship_user_mode');
-
 
771
                    	    $element->setOptions(['label' => 'LABEL_THEME']);
-
 
772
                            $element->setAttributes(['class' => 'form-control']); 
-
 
773
 
-
 
774
                            echo $this->formLabel($element);
-
 
775
                            echo $this->formSelect($element);
793
 
776
                        ?>
-
 
777
						</div>
794
                            echo $this->formLabel($element);
778
						<div class="form-group">
795
                            echo $this->formSelect($element);
779
                    	<?php 
796
                        ?>
780
                    	    $element = $form->get('theme_id');
-
 
781
                    	    $element->setOptions(['label' => 'LABEL_THEME']);
797
						</div>
782
                            $element->setAttributes(['class' => 'form-control']); 
-
 
783
 
798
					</div>
784
                            echo $this->formLabel($element);
-
 
785
                            echo $this->formSelect($element);
-
 
786
                        ?>
-
 
787
						</div>
-
 
788
								
-
 
789
        				<div class="form-group">
799
                    <div class="row">
790
                    		<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
791
                    		<button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
-
 
792
                   		</div>
-
 
793
     	      		<?php echo $this->form()->closeTag($form); ?>
-
 
794
      		</div>
-
 
795
 
-
 
796
            <!-- Modal footer -->
800
                      	<div class="col-12 mb-3 mr-3">
797
      		<div class="modal-footer">
801
                    	<?php 
798
        		<button type="button" class="btn btn-danger" data-dismiss="modal">Cerrar</button>
-
 
799
      		</div>
802
                    	    $element = $form->get('theme_id');
800
 
803
                    	    $element->setOptions(['label' => 'LABEL_THEME']);
801
    	</div>
804
                            $element->setAttributes(['class' => 'form-control']); 
802
	</div>
805
 
803
</div>  
806
                            echo $this->formLabel($element);
804
 
807
                            echo $this->formSelect($element);
805
 
808
                        ?>
Línea 806... Línea 809...
806
<!-- The Modal -->
809
						</div>
Línea 807... Línea 810...
807
<div class="modal" id="modalEdit">
810
					</div>
808
	<div class="modal-dialog  modal-xl">
811
					
809
    	<div class="modal-content">
812
 		</div>
-
 
813
 		<div class="card-footer text-right">
-
 
814
 			<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
810
 
815
        	<button type="button" class="btn btn-light btn-cancel">LABEL_CLOSE</button>
811
            <!-- Modal Header -->
816
        		 
-
 
817
 		</div>
812
      		<div class="modal-header">
818
 		<?php echo $this->form()->closeTag($form); ?>
813
        		<h4 class="modal-title">LABEL_EDIT_PRIVATE_NETWORK<span id="form-title"></span></h4>
819
 	</div>	
814
        		<button type="button" class="close" data-dismiss="modal">&times;</button>
820
 	
815
      		</div>
821
	<div class="card" id="card-edit" style="display: none">
Línea 816... Línea 822...
816
 
822
	<?php 
817
            <!-- Modal body -->
823
                    $form = $this->formEdit;
818
      		<div class="modal-body">
824
            		$form->setAttributes([
819
       			 <?php 
825
                        'method'    => 'post',
-
 
826
                        'name'      => 'form-edit',
820
                    $form = $this->formEdit;
827
                        'id'        => 'form-edit',
-
 
828
 
821
            		$form->setAttributes([
829
                    ]);
822
                        'method'    => 'post',
830
    
823
                        'name'      => 'form-edit',
831
                    $form->prepare();
824
                        'id'        => 'form-edit',
832
                    echo $this->form()->openTag($form);
Línea 825... Línea 833...
825
 
833
                    ?>	
826
                    ]);
834
 		<div class="card-body">
827
    
835
 			<h6 class="card-title">LABEL_EDIT_PRIVATE_NETWORK</h6>
828
                    $form->prepare();
836
 			
-
 
837
 			<div class="row">
829
                    echo $this->form()->openTag($form);
838
                      	<div class="col-12 mb-3 mr-3">
-
 
839
                    	<?php 
830
                    ?>		
840
                    	    $element = $form->get('name');
831
                      	
841
                    	    $element->setOptions(['label' => 'LABEL_NAME']);
832
						<div class="form-group">
842
                            $element->setAttributes(['class' => 'form-control']); 
833
                    	<?php 
843
 
Línea 834... Línea 844...
834
                    	    $element = $form->get('name');
844
                            echo $this->formLabel($element);
835
                    	    $element->setOptions(['label' => 'LABEL_NAME']);
845
                            echo $this->formText($element);
836
                            $element->setAttributes(['class' => 'form-control']); 
846
                        ?>
837
 
847
						</div>
-
 
848
					</div>
Línea 838... Línea 849...
838
                            echo $this->formLabel($element);
849
                    <div class="row">
-
 
850
                      	<div class="col-12 mb-3 mr-3">
839
                            echo $this->formText($element);
851
                    	<?php 
840
                        ?>
852
                    	    $element = $form->get('main_hostname');
841
						</div>
853
                    	    $element->setOptions(['label' => 'LABEL_MAIN_HOSTNAME']);
842
						<div class="form-group">
854
                            $element->setAttributes(['class' => 'form-control']); 
Línea 843... Línea 855...
843
                    	<?php 
855
 
844
                    	    $element = $form->get('main_hostname');
856
                            echo $this->formLabel($element);
845
                    	    $element->setOptions(['label' => 'LABEL_MAIN_HOSTNAME']);
857
                            echo $this->formText($element);
846
                            $element->setAttributes(['class' => 'form-control']); 
858
                        ?>
-
 
859
						</div>
847
 
860
					</div>
-
 
861
                    <div class="row">
848
                            echo $this->formLabel($element);
862
                      	<div class="col-12 mb-3 mr-3">
849
                            echo $this->formText($element);
863
                    	<?php 
850
                        ?>
864
                    	    $element = $form->get('alternative_hostname');
851
						</div>
865
                    	    $element->setOptions(['label' => 'LABEL_ALTERNATIVE_HOSTNAME']);
-
 
866
                            $element->setAttributes(['class' => 'form-control']); 
-
 
867
 
852
						<div class="form-group">
868
                            echo $this->formLabel($element);
853
                    	<?php 
869
                            echo $this->formText($element);
854
                    	    $element = $form->get('alternative_hostname');
870
                        ?>
855
                    	    $element->setOptions(['label' => 'LABEL_ALTERNATIVE_HOSTNAME']);
871
						</div>
856
                            $element->setAttributes(['class' => 'form-control']); 
872
					</div>
857
 
873
						
Línea 858... Línea 874...
858
                            echo $this->formLabel($element);
874
                    <div class="row">
859
                            echo $this->formText($element);
875
                      	<div class="col-12 mb-3 mr-3">
860
                        ?>
876
                    	<?php 
861
						</div>
877
                    	    $element = $form->get('admin_hostname');
862
						
878
                    	    $element->setOptions(['label' => 'LABEL_ADMIN_HOSTNAME']);
-
 
879
                            $element->setAttributes(['class' => 'form-control']); 
863
						<div class="form-group">
880
 
864
                    	<?php 
881
                            echo $this->formLabel($element);
865
                    	    $element = $form->get('admin_hostname');
882
                            echo $this->formText($element);
866
                    	    $element->setOptions(['label' => 'LABEL_ADMIN_HOSTNAME']);
883
                        ?>
Línea 867... Línea 884...
867
                            $element->setAttributes(['class' => 'form-control']); 
884
						</div>
868
 
885
					</div>
869
                            echo $this->formLabel($element);
886
                    <div class="row">
870
                            echo $this->formText($element);
887
                      	<div class="col-12 mb-3 mr-3">
-
 
888
                            <?php
871
                        ?>
889
                            $element = $form->get('status');
-
 
890
                            echo $this->formCheckbox($element);
872
						</div>
891
                            ?>
873
						<div class="form-group">
892
						</div>
874
                            <?php
893
					</div>
875
                            $element = $form->get('status');
894
                    <div class="row">
Línea 876... Línea 895...
876
                            echo $this->formCheckbox($element);
895
                      	<div class="col-12 mb-3 mr-3">
877
                            ?>
896
                    	<?php 
878
                        </div>
897
                    	    $element = $form->get('moodle_name');
879
						<div class="form-group">
898
                    	    $element->setOptions(['label' => 'LABEL_MY_ONROOM_NAME']);
-
 
899
                            $element->setAttributes(['class' => 'form-control']); 
880
                    	<?php 
900
 
-
 
901
                            echo $this->formLabel($element);
881
                    	    $element = $form->get('moodle_name');
902
                            echo $this->formText($element);
882
                    	    $element->setOptions(['label' => 'LABEL_MY_ONROOM_NAME']);
903
                        ?>
883
                            $element->setAttributes(['class' => 'form-control']); 
904
						</div>
884
 
905
                    <div class="row">
Línea 885... Línea 906...
885
                            echo $this->formLabel($element);
906
                      	<div class="col-12 mb-3 mr-3">
886
                            echo $this->formText($element);
907
                    	<?php 
887
                        ?>
908
                    	    $element = $form->get('moodle_url');
888
						</div>
909
                    	    $element->setOptions(['label' => 'LABEL_MY_ONROOM_URL']);
-
 
910
                            $element->setAttributes(['class' => 'form-control']); 
889
						<div class="form-group">
911
 
-
 
912
                            echo $this->formLabel($element);
890
                    	<?php 
913
                            echo $this->formText($element);
891
                    	    $element = $form->get('moodle_url');
914
                        ?>
892
                    	    $element->setOptions(['label' => 'LABEL_MY_ONROOM_URL']);
915
						</div>
893
                            $element->setAttributes(['class' => 'form-control']); 
916
					</div>
Línea 894... Línea 917...
894
 
917
                    <div class="row">
895
                            echo $this->formLabel($element);
918
                      	<div class="col-12 mb-3 mr-3">
896
                            echo $this->formText($element);
919
                    	<?php 
897
                        ?>
920
                    	    $element = $form->get('microlearning_appstore');
898
						</div>
-
 
899
						<div class="form-group">
-
 
900
                    	<?php 
921
                    	    $element->setOptions(['label' => 'LABEL_MY_MICROLEARNING_APPSTORE']);
-
 
922
                            $element->setAttributes(['class' => 'form-control']); 
901
                    	    $element = $form->get('microlearning_appstore');
923
 
902
                    	    $element->setOptions(['label' => 'LABEL_MY_MICROLEARNING_APPSTORE']);
924
                            echo $this->formLabel($element);
903
                            $element->setAttributes(['class' => 'form-control']); 
925
                            echo $this->formText($element);
904
 
926
                        ?>
905
                            echo $this->formLabel($element);
927
						</div>
Línea 906... Línea 928...
906
                            echo $this->formText($element);
928
					</div>
907
                        ?>
929
                    <div class="row">
908
						</div>
930
                      	<div class="col-12 mb-3 mr-3">
909
						<div class="form-group">
931
                    	<?php 
-
 
932
                    	    $element = $form->get('microlearning_playstore');
-
 
933
                    	    $element->setOptions(['label' => 'LABEL_MY_MICROLEARNING_PLAYSTORE']);
-
 
934
                            $element->setAttributes(['class' => 'form-control']); 
-
 
935
 
-
 
936
                            echo $this->formLabel($element);
-
 
937
                            echo $this->formText($element);
-
 
938
                        ?>
-
 
939
						</div>
-
 
940
					</div>
-
 
941
                    <div class="row">
-
 
942
                      	<div class="col-12 mb-3 mr-3">
Línea 910... Línea 943...
910
                    	<?php 
943
                    	<?php 
911
                    	    $element = $form->get('microlearning_playstore');
-
 
912
                    	    $element->setOptions(['label' => 'LABEL_MY_MICROLEARNING_PLAYSTORE']);
-
 
913
                            $element->setAttributes(['class' => 'form-control']); 
-
 
914
 
-
 
915
                            echo $this->formLabel($element);
-
 
916
                            echo $this->formText($element);
-
 
917
                        ?>
-
 
918
						</div>
-
 
919
                        <div class="form-group">
-
 
920
                    	<?php 
-
 
921
                    	    $element = $form->get('relationship_user_mode');
-
 
922
                    	    $element->setOptions(['label' => 'LABEL_THEME']);
-
 
923
                            $element->setAttributes(['class' => 'form-control']); 
-
 
924
 
-
 
925
                            echo $this->formLabel($element);
-
 
Línea 926... Línea 944...
926
                            echo $this->formSelect($element);
944
                    	    $element = $form->get('relationship_user_mode');