Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16821 Rev 16822
Línea 16... Línea 16...
16
$allowEdit      = $acl->isAllowed($roleName, 'companies/edit') ? 1 : 0;
16
$allowEdit      = $acl->isAllowed($roleName, 'companies/edit') ? 1 : 0;
17
$allowServices  = $acl->isAllowed($roleName, 'companies/services') ? 1 : 0;
17
$allowServices  = $acl->isAllowed($roleName, 'companies/services') ? 1 : 0;
18
$allowRoles     = $acl->isAllowed($roleName, 'companies/roles') ? 1 : 0;
18
$allowRoles     = $acl->isAllowed($roleName, 'companies/roles') ? 1 : 0;
Línea 19... Línea 19...
19
 
19
 
20
 
20
 
Línea 21... Línea 21...
21
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
21
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
Línea 22... Línea 22...
22
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
22
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
23
 
23
 
24
$this->inlineScript()->appendFile($this->basePath('plugins/ckeditor/ckeditor.js'));
24
$this->inlineScript()->appendFile($this->basePath('assets/vendors/ckeditor/ckeditor.js'));
Línea 25... Línea 25...
25
 
25
 
26
 
26
 
Línea 27... Línea 27...
27
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
27
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
28
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
28
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
29
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
29
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
30
 
30
 
Línea 31... Línea -...
31
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'));
-
 
32
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-responsive/css/responsive.bootstrap4.min.css'));
-
 
Línea 33... Línea 31...
33
 
31
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.css'));
34
$this->inlineScript()->appendFile($this->basePath('plugins/datatables/jquery.dataTables.min.js'));
32
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.css'));
Línea 35... Línea -...
35
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js'));
-
 
Línea 36... Línea -...
36
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/dataTables.responsive.min.js'));
-
 
37
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/responsive.bootstrap4.min.js'));
-
 
Línea 38... Línea -...
38
 
-
 
Línea 39... Línea 33...
39
 
33
 
40
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
-
 
Línea -... Línea 34...
-
 
34
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net/jquery.dataTables.js'));
-
 
35
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.js'));
-
 
36
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/dataTables.responsive.min.js'));
-
 
37
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.min.js'));
-
 
38
 
-
 
39
 
-
 
40
 
-
 
41
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
-
 
42
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
-
 
43
 
Línea 41... Línea -...
41
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
-
 
Línea 42... Línea -...
42
 
-
 
Línea 43... Línea 44...
43
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
44
 
44
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-checkbox/awesome-bootstrap-checkbox.css'));
45
 
45
 
46
 
46
 
47
 
Línea 78... Línea 79...
78
                $(element).removeClass('is-invalid');
79
                $(element).removeClass('is-invalid');
79
            },
80
            },
80
            errorElement: 'span',
81
            errorElement: 'span',
81
            errorClass: 'error invalid-feedback',
82
            errorClass: 'error invalid-feedback',
82
            errorPlacement: function(error, element) {
83
            errorPlacement: function(error, element) {
83
                if(element.parent('.form-group').length) {
-
 
84
                    error.insertAfter(element);
-
 
85
                } else if(element.parent('.toggle').length) {
84
                if(element.parent('.toggle').length) {
86
                    error.insertAfter(element.parent().parent());
85
                    error.insertAfter(element.parent().parent());
87
                } else {
86
                } else {
88
                    error.insertAfter(element.parent());
87
                    error.insertAfter(element.parent());
89
                }
88
                }
90
            }
89
            }
Línea 96... Línea 95...
96
            if(field) {
95
            if(field) {
97
                $(field).addClass('is-invalid');
96
                $(field).addClass('is-invalid');
Línea 98... Línea 97...
98
    
97
    
99
 
-
 
100
                var error = $('<span id="' + fieldname +'-error" class="error invalid-feedback">' + errors + '</div>');
-
 
101
                if(field.parent('.form-group').length) {
98
 
102
                    error.insertAfter(field);
99
                var error = $('<span id="' + fieldname +'-error" class="error invalid-feedback">' + errors + '</div>');
103
                } else  if(field.parent('.toggle').length) {
100
                if(element.parent('.toggle').length) {
104
                    error.insertAfter(field.parent().parent());
101
                    error.insertAfter(element.parent().parent());
105
                } else {
102
                } else {
-
 
103
                    error.insertAfter(element.parent());
106
                    error.insertAfter(field.parent());
104
                }
107
                }
105
                
Línea 108... Línea 106...
108
            }
106
            }
Línea 178... Línea 176...
178
                    'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
176
                    'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
179
                },
177
                },
180
            },
178
            },
181
            'drawCallback': function( settings ) {
179
            'drawCallback': function( settings ) {
182
                NProgress.done();
180
                NProgress.done();
183
                $('button.btn-delete').confirmation({
-
 
184
                    rootSelector: 'button.btn-delete',
-
 
185
                    title : 'LABEL_ARE_YOU_SURE',
-
 
186
                    singleton : true,
-
 
187
                    btnOkLabel: 'LABEL_YES',
-
 
188
                    btnCancelLabel: 'LABEL_NO',
-
 
189
                    onConfirm: function(value) {
-
 
190
                        action = $(this).data('href');
-
 
191
                        NProgress.start();
-
 
192
                        $.ajax({
-
 
193
                            'dataType'  : 'json',
-
 
194
                            'accept'    : 'application/json',
-
 
-
 
181
              
195
                            'method'    : 'post',
-
 
196
                            'url'       :  action,
-
 
197
                        }).done(function(response) {
-
 
198
                            if(response['success']) {
-
 
199
                                $.fn.showSuccess(response['data']);
-
 
200
                                gridTable.api().ajax.reload(null, false);
-
 
201
                            } else {
-
 
202
                                $.fn.showError(response['data']);
-
 
203
                            }
-
 
204
                        }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
205
                            $.fn.showError(textStatus);
-
 
206
                        }).always(function() {
-
 
207
                            NProgress.done();
-
 
208
                        });
-
 
209
                    },
-
 
210
                });
-
 
211
            },
182
            },
212
            'aoColumns': [
183
            'aoColumns': [
213
                { 'mDataProp': 'name' },
184
                { 'mDataProp': 'name' },
214
                { 'mDataProp': 'details' },
185
                { 'mDataProp': 'details' },
215
                { 'mDataProp': 'security' },
186
                { 'mDataProp': 'security' },
Línea 223... Línea 194...
223
                    'render' : function ( data, type, row ) {
194
                    'render' : function ( data, type, row ) {
224
                        var s = row['name'] + '<br>' + row['network'];
195
                        var s = row['name'] + '<br>' + row['network'];
Línea 225... Línea 196...
225
 
196
 
226
                            
197
                            
227
                        if(row['link_profile'] ) {
198
                        if(row['link_profile'] ) {
228
                            s = s + '<br><button class="btn btn-sm btn-default btn-profile" data-href="' + row['link_profile']+ '" data-toggle="tooltip" title="LABEL_PROFILE"><i class="fa fa-external-link"></i></button>&nbsp;<br>';
199
                            s = s + '<br><button class="btn btn-light btn-profile" data-href="' + row['link_profile']+ '" data-toggle="tooltip" title="LABEL_PROFILE"><i class="fa fa-external-link"></i></button>&nbsp;<br>';
229
                        }
200
                        }
230
                        return s;
201
                        return s;
Línea 236... Línea 207...
236
                    'orderable': false,
207
                    'orderable': false,
237
                    'render' : function ( data, type, row ) {
208
                    'render' : function ( data, type, row ) {
238
                        var s = 'LABEL_STATUS : ' + data['status']  + '<br>';
209
                        var s = 'LABEL_STATUS : ' + data['status']  + '<br>';
239
                        s = s +  'LABEL_INTERNAL : ' + data['internal']  + '<br>';
210
                        s = s +  'LABEL_INTERNAL : ' + data['internal']  + '<br>';
240
                        if(allowServices) {
211
                        if(allowServices) {
241
                            s = s + 'LABEL_SERVICES:  <button class="btn btn-sm btn-default btn-services" data-href="' + row['actions']['link_services']+ '" data-toggle="tooltip" title="LABEL_SERVICES"><i class="fa fa-external-link"></i></button>&nbsp;<br>';
212
                            s = s + 'LABEL_SERVICES:  <button class="btn btn-light btn-services" data-href="' + row['actions']['link_services']+ '" data-toggle="tooltip" title="LABEL_SERVICES"><i class="fa fa-external-link"></i></button>&nbsp;<br>';
242
                        } else {
213
                        } else {
243
                            s = s + 'LABEL_SERVICES: <br>';
214
                            s = s + 'LABEL_SERVICES: <br>';
244
                        } 
215
                        } 
Línea 245... Línea 216...
245
 
216
 
Línea 251... Línea 222...
251
                            });
222
                            });
252
                            s = s + '</ul>';
223
                            s = s + '</ul>';
253
                        } 
224
                        } 
Línea 254... Línea 225...
254
 
225
 
255
                        if(allowRoles) {
226
                        if(allowRoles) {
256
                            s = s + 'LABEL_ROLES: <button class="btn btn-sm btn-default btn-roles" data-href="' + row['actions']['link_roles']+ '" data-toggle="tooltip" title="LABEL_ROLES"><i class="fa fa-external-link"></i></button>&nbsp;<br>';
227
                            s = s + 'LABEL_ROLES: <button class="btn btn-light btn-roles" data-href="' + row['actions']['link_roles']+ '" data-toggle="tooltip" title="LABEL_ROLES"><i class="fa fa-external-link"></i></button>&nbsp;<br>';
257
                        } else {
228
                        } else {
258
                            s = s + 'LABEL_ROLES: <br>';
229
                            s = s + 'LABEL_ROLES: <br>';
Línea 386... Línea 357...
386
            }).always(function() {
357
            }).always(function() {
387
                NProgress.done();
358
                NProgress.done();
388
            });
359
            });
Línea 389... Línea 360...
389
 
360
 
-
 
361
        });
-
 
362
 
-
 
363
    $('body').on('click', 'button.btn-delete', function(e) { 
-
 
364
        e.preventDefault();
-
 
365
        var action = $(this).data('href');
-
 
366
 
-
 
367
 
-
 
368
          swal.fire({
-
 
369
            title: 'LABEL_ARE_YOU_SURE',
-
 
370
            icon: 'question',
-
 
371
            cancelButtonText: 'LABEL_NO',
-
 
372
            showCancelButton: true,
-
 
373
            confirmButtonText: 'LABEL_YES'
-
 
374
          }).then((result) => {
-
 
375
            if (result.isConfirmed) {
-
 
376
 
-
 
377
                    NProgress.start();
-
 
378
                    $.ajax({
-
 
379
                        'dataType'  : 'json',
-
 
380
                        'accept'    : 'application/json',
-
 
381
                        'method'    : 'post',
-
 
382
                        'url'       :  action,
-
 
383
                    }).done(function(response) {
-
 
384
                        if(response['success']) {
-
 
385
                            $.fn.showSuccess(response['data']);
-
 
386
                            gridTable.api().ajax.reload(null, false);
-
 
387
                        } else {
-
 
388
                            $.fn.showError(response['data']);
-
 
389
                        }
-
 
390
                    }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
391
                        $.fn.showError(textStatus);
-
 
392
                    }).always(function() {
-
 
393
                        NProgress.done();
-
 
394
                    });
-
 
395
            }
-
 
396
       });
-
 
397
 
Línea 390... Línea 398...
390
        });
398
    });
391
        
399
        
392
        $('#form-services').submit(function (e) {
400
        $('#form-services').submit(function (e) {
393
            e.preventDefault();
401
            e.preventDefault();
Línea 438... Línea 446...
438
 
446
 
439
                        var checked = role['checked'] ? ' checked="checked" ' : '';
447
                        var checked = role['checked'] ? ' checked="checked" ' : '';
440
                        var s = '<tr>'; 
448
                        var s = '<tr>'; 
Línea -... Línea 449...
-
 
449
                        s = s + '<td>' + role['name'] + '</td>';
441
                        s = s + '<td>' + role['name'] + '</td>';
450
 
-
 
451
                        s = s + '<td><div class="form-check mb-3">' +
-
 
452
                            '<input type="checkbox" class="form-check-input" id="checked' + role['id'] + '" name="checked' + role['id'] + '" ' + checked + '>' +
442
 
453
						    '<label class="form-check-label" for="exampleCheck1">&nbsp;</label>'+ 
Línea 443... Línea 454...
443
                        s = s + '<td><input id="checked' + role['id'] + '" name="checked' + role['id'] + '" class="form-control" type="checkbox" ' + checked + ' style="width: 20px; height: 20px" value="1"></td>';
454
					   '</div></td>';
Línea 444... Línea 455...
444
                        s = s + '</tr>';    
455
                        s = s + '</tr>';    
Línea 581... Línea 592...
581
    });
592
    });
582
JS;
593
JS;
583
$this->inlineScript()->captureEnd();
594
$this->inlineScript()->captureEnd();
584
?>
595
?>
Línea 585... Línea -...
585
 
-
 
586
 
-
 
587
 
-
 
588
<!-- Content Header (Page header) -->
-
 
589
<section class="content-header">
596
 
590
    <div class="container-fluid">
597
<div class="container">
591
        <div class="row mb-2">
-
 
592
            <div class="col-sm-12">
-
 
593
                <h1>LABEL_COMPANIES</h1>
-
 
594
            </div>
-
 
595
        </div>
-
 
596
    </div><!-- /.container-fluid -->
-
 
597
</section>
598
	<div class="card">
598
 
-
 
599
<section class="content">
599
		
600
    <div class="container-fluid">
-
 
601
        <form name="form-filter" id="form-filter">
-
 
602
            <table class="table">
-
 
603
                <thead>
-
 
604
                    <tr>
600
		<div class="card-body">
605
                        <th>LABEL_STATUS</th>
-
 
606
                        <th>LABEL_PRIVATE_NETWORKS</th>
-
 
607
                    </tr>
-
 
608
                </thead>
-
 
609
                <tbody>
-
 
610
                    <tr>
-
 
611
                        <td>
-
 
612
                            <select id="status" name="status" class="form-control">
-
 
613
                                <option value="">LABEL_ALL</option>
-
 
614
                                <option value="<?php echo Company::STATUS_PENDING ?>">LABEL_PENDING</option>
-
 
615
                                <option value="<?php echo Company::STATUS_ACTIVE ?>">LABEL_ACTIVE</option>
-
 
616
                                <option value="<?php echo Company::STATUS_INACTIVE ?>">LABEL_INACTIVE</option>
-
 
617
                                <option value="<?php echo Company::STATUS_DELETED ?>">LABEL_DELETED</option>
-
 
618
                                <option value="<?php echo Company::STATUS_REJECTED ?>">LABEL_REJECTED</option>
-
 
619
                            </select>
-
 
620
                        </td>
-
 
621
                        <td>
-
 
622
                            <select id="network_id" name="network_id" class="form-control">
-
 
623
                                <option value="">LABEL_ALL</option>
-
 
624
                                <?php foreach ($networks as $value => $label) : ?>
-
 
625
                                    <option value="<?php echo $value ?>"><?php echo $label ?></option>
-
 
626
                                <?php endforeach; ?>
-
 
627
                            </select>
-
 
628
                        </td>
-
 
629
                    </tr>
-
 
630
                </tbody>
-
 
631
 
-
 
632
            </table>
-
 
633
        </form>
601
			<h6 class="card-title">LABEL_COMPANIES</h6>
634
        <div class="row">
602
			<div class="row">
635
            <div class="col-12">
603
				<div class="col-12 mb-3 mt-3">
636
                <div class="card">
604
                    <form name="form-filter" id="form-filter">
637
                    <div class="card-body">
-
 
638
                        <table id="gridTable" class="table table-bordered table-hover">
605
                        <table class="table">
639
                            <thead>
606
                            <thead>
640
                                <tr>
-
 
641
                                    <th style="width: 30%">LABEL_NAME</th>
607
                                <tr>
642
                                    <th style="width: 30%">LABEL_DETAILS</th>
-
 
643
                                    <th style="width: 30%">LABEL_SECURITY</th>
608
                                    <th>LABEL_STATUS</th>
644
                                    <th style="width: 10%">LABEL_ACTIONS</th>
609
                                    <th>LABEL_PRIVATE_NETWORKS</th>
645
                                </tr>
610
                                </tr>
646
                            </thead>
611
                            </thead>
-
 
612
                            <tbody>
-
 
613
                                <tr>
-
 
614
                                    <td>
-
 
615
                                        <select id="status" name="status" class="form-control">
-
 
616
                                            <option value="">LABEL_ALL</option>
-
 
617
                                            <option value="<?php echo Company::STATUS_PENDING ?>">LABEL_PENDING</option>
-
 
618
                                            <option value="<?php echo Company::STATUS_ACTIVE ?>">LABEL_ACTIVE</option>
-
 
619
                                            <option value="<?php echo Company::STATUS_INACTIVE ?>">LABEL_INACTIVE</option>
-
 
620
                                            <option value="<?php echo Company::STATUS_DELETED ?>">LABEL_DELETED</option>
-
 
621
                                            <option value="<?php echo Company::STATUS_REJECTED ?>">LABEL_REJECTED</option>
-
 
622
                                        </select>
-
 
623
                                    </td>
-
 
624
                                    <td>
-
 
625
                                        <select id="network_id" name="network_id" class="form-control">
-
 
626
                                            <option value="">LABEL_ALL</option>
-
 
627
                                            <?php foreach ($networks as $value => $label) : ?>
-
 
628
                                                <option value="<?php echo $value ?>"><?php echo $label ?></option>
-
 
629
                                            <?php endforeach; ?>
-
 
630
                                        </select>
-
 
631
                                    </td>
647
                            <tbody>
632
                                </tr>
-
 
633
                            </tbody>
648
                            </tbody>
634
            
649
                        </table>
635
                        </table>
650
                    </div>
-
 
651
                    <div class="card-footer clearfix">
-
 
652
                        <div style="float:right;">
-
 
653
                            <button type="button" class="btn btn-sm btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
-
 
654
                        </div>
-
 
655
                    </div>
636
                    </form>
656
                </div>
637
                </div>
-
 
638
           	</div>         
-
 
639
            <div class="row">
-
 
640
                <div class="col-12 mb-3 mt-3">
-
 
641
    
-
 
642
         			<table id="gridTable" class="table table-bordered">
-
 
643
                		<thead>
-
 
644
                                    <tr>
-
 
645
                                        <th style="width: 30%">LABEL_NAME</th>
-
 
646
                                        <th style="width: 30%">LABEL_DETAILS</th>
-
 
647
                                        <th style="width: 30%">LABEL_SECURITY</th>
-
 
648
                                        <th style="width: 10%">LABEL_ACTIONS</th>
-
 
649
                                    </tr>
-
 
650
                                </thead>
-
 
651
                                <tbody>
657
            </div>
652
                                </tbody>
658
        </div>
653
              			</table>
659
    </div>
654
                </div>
Línea -... Línea 655...
-
 
655
            </div>	 
-
 
656
 
-
 
657
   	 	</div>
-
 
658
   	 	<div class="card-footer text-right">
-
 
659
   	 		<button type="button" class="btn btn-sm btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
-
 
660
   	 	</div>
-
 
661
	</div>
660
</section>
662
</div>
661
 
663
	
662
<!-- The Modal -->
664
<!-- The Modal -->
663
<div class="modal" id="modalServices">
665
<div class="modal" id="modalServices">
Línea 664... Línea 666...
664
    <div class="modal-dialog  modal-xl">
666
    <div class="modal-dialog  modal-xl">
665
        <div class="modal-content">
667
        <div class="modal-content">
666
 
668
 
667
            <!-- Modal Header -->
669
            <!-- Modal Header -->
668
            <div class="modal-header">
670
            <div class="modal-header">
Línea 669... Línea 671...
669
                <h4 class="modal-title">LABEL_SERVICES</h4>
671
                <h4 class="modal-title">LABEL_SERVICES</h4>
-
 
672
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
670
                <button type="button" class="close" data-dismiss="modal">&times;</button>
673
            </div>
-
 
674
 
671
            </div>
675
            <!-- Modal body -->
672
 
676
            <form name="form-services" id="form-services">
673
            <!-- Modal body -->
677
            <div class="modal-body">
674
            <div class="modal-body">
678
                <div class="row">
675
                <form name="form-services" id="form-services">
679
                	<div class="col-12 mb-3 mt-3">
676
                    <table id="table-services" class="table table-bordered table-hover">
680
                    	<table id="table-services" class="table table-bordered">
677
                        <thead>
681
                            <thead>
678
                            <tr>
682
                                <tr>
679
                                <th>LABEL_NAME</th>
683
                                    <th>LABEL_NAME</th>
680
                                <th>LABEL_STATUS</th>
684
                                    <th>LABEL_STATUS</th>
681
                                <th>LABEL_PAID_FROM</th>
685
                                    <th>LABEL_PAID_FROM</th>
682
                                <th>LABEL_PAID_TO</th>
686
                                    <th>LABEL_PAID_TO</th>
683
                            </tr>
687
                                </tr>
-
 
688
                            </thead>
-
 
689
                            <tbody>
-
 
690
                            </tbody>
Línea 684... Línea -...
684
                        </thead>
-
 
685
                        <tbody>
-
 
686
                        </tbody>
-
 
687
                    </table>
-
 
688
 
-
 
-
 
691
                        </table>
-
 
692
                	</div>
689
 
693
                </div>
-
 
694
                    
-
 
695
 
-
 
696
 
-
 
697
 
-
 
698
   
-
 
699
                
Línea 690... Línea 700...
690
 
700
            </div>
691
                    <div class="form-group">
701
            <div class="modal-footer">
692
                        <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
702
           		 <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
Línea 706... Línea 716...
706
        <div class="modal-content">
716
        <div class="modal-content">
Línea 707... Línea 717...
707
 
717
 
708
            <!-- Modal Header -->
718
            <!-- Modal Header -->
709
            <div class="modal-header">
719
            <div class="modal-header">
710
                <h4 class="modal-title">LABEL_ROLES</h4>
720
                <h4 class="modal-title">LABEL_ROLES</h4>
711
                <button type="button" class="close" data-dismiss="modal">&times;</button>
721
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
Línea 712... Línea 722...
712
            </div>
722
            </div>
-
 
723
 
713
 
724
            <!-- Modal body -->
-
 
725
            <form name="form-roles" id="form-roles">
714
            <!-- Modal body -->
726
            <div class="modal-body">
715
            <div class="modal-body">
727
                <div class="row">
716
                <form name="form-roles" id="form-roles">
728
                	<div class="col-12 mb-3 mt-3">
717
                    <table id="table-roles" class="table table-bordered table-hover">
729
                    	<table id="table-roles" class="table table-bordered">
718
                        <thead>
730
                            <thead>
719
                            <tr>
731
                                <tr>
720
                                <th>LABEL_NAME</th>
732
                                    <th>LABEL_NAME</th>
721
                                <th>LABEL_ACTIVE</th>
733
                                    <th>LABEL_ACTIVE</th>
722
                            </tr>
734
                                </tr>
723
                        </thead>
735
                            </thead>
724
                        <tbody>
736
                            <tbody>
-
 
737
                            </tbody>
-
 
738
                        </table>
-
 
739
                	</div>	
Línea -... Línea 740...
-
 
740
                </div>
-
 
741
                    
725
                        </tbody>
742
 
726
                    </table>
743
 
727
 
744
 
728
 
-
 
729
 
-
 
730
                    <div class="form-group">
745
                
-
 
746
            </div>
-
 
747
            <div class="modal-footer">
Línea 731... Línea 748...
731
                        <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
748
            	<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
732
                        <button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
749
       			<button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
733
                    </div>
750
            </div>
Línea 745... Línea 762...
745
        <div class="modal-content">
762
        <div class="modal-content">
Línea 746... Línea 763...
746
 
763
 
747
            <!-- Modal Header -->
764
            <!-- Modal Header -->
748
            <div class="modal-header">
765
            <div class="modal-header">
749
                <h4 class="modal-title">LABEL_EDIT</h4>
766
                <h4 class="modal-title">LABEL_EDIT</h4>
750
                <button type="button" class="close" data-dismiss="modal">&times;</button>
767
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
Línea 751... Línea 768...
751
            </div>
768
            </div>
-
 
769
 
752
 
770
            <!-- Modal body -->
753
            <!-- Modal body -->
-
 
-
 
771
            <form name="form-edit" id="form-edit">
Línea 754... Línea 772...
754
            <div class="modal-body">
772
            <div class="modal-body">
-
 
773
                
755
                <form name="form-edit" id="form-edit">
774
 
756
 
775
                    <div class="row">
757
                    <div class="form-group">
776
                    	<div class="col-12">
758
                        <label for="status">LABEL_STATUS</label>
777
                        <label for="status">LABEL_STATUS</label>
759
                        <select id="status" name="status" class="form-control">
778
                        <select id="status" name="status" class="form-control">
760
                            <option value="<?php echo Company::STATUS_ACTIVE ?>">LABEL_ACTIVE</option>
779
                            <option value="<?php echo Company::STATUS_ACTIVE ?>">LABEL_ACTIVE</option>
761
                            <option value="<?php echo Company::STATUS_INACTIVE ?>">LABEL_INACTIVE</option>
780
                            <option value="<?php echo Company::STATUS_INACTIVE ?>">LABEL_INACTIVE</option>
762
                            <option value="<?php echo Company::STATUS_DELETED ?>">LABEL_DELETED</option>
781
                            <option value="<?php echo Company::STATUS_DELETED ?>">LABEL_DELETED</option>
-
 
782
                            <option value="<?php echo Company::STATUS_PENDING ?>">LABEL_PENDING</option>
763
                            <option value="<?php echo Company::STATUS_PENDING ?>">LABEL_PENDING</option>
783
                            <option value="<?php echo Company::STATUS_REJECTED ?>">LABEL_REJECTED</option>
764
                            <option value="<?php echo Company::STATUS_REJECTED ?>">LABEL_REJECTED</option>
784
                        </select>
-
 
785
                        </div>
765
                        </select>
786
                    </div>
766
                    </div>
787
                    <div class="row">
Línea 767... Línea 788...
767
                    <div class="form-group">
788
                    	<div class="col-12">
-
 
789
                        <label for="user_uuid">LABEL_CREATED_BY</label>
768
                        <label for="user_uuid">LABEL_CREATED_BY</label>
790
                        <select id="user_uuid" name="user_uuid" class="form-control">
Línea -... Línea 791...
-
 
791
 
-
 
792
                        </select>
-
 
793
 						</div>
769
                        <select id="user_uuid" name="user_uuid" class="form-control">
794
                    </div>
770
 
795
 
771
                        </select>
796
 
772
                    </div>
797
                  
773
 
798
                
774
 
-
 
Línea 775... Línea 799...
775
                    <div class="form-group">
799
            </div>
776
                        <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
800
              <div class="card-footer text-right">
777
                        <button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
801
                        <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
778
                    </div>
802
                        <button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>