Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 15333 Rev 15460
Línea 52... Línea 52...
52
 
52
 
Línea 53... Línea 53...
53
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-autocomplete/bootstrap-autocomplete.js'));
53
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-autocomplete/bootstrap-autocomplete.js'));
54
 
54
 
Línea 55... Línea 55...
55
 
55
 
56
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-fileinput/css/fileinput.min.css'));
56
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-fileinput/css/fileinput.min.css'));
57
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-fileinput/themes/explorer-fas/theme.css'));
57
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-fileinput/themes/explorer-fa/theme.css'));
58
 
58
 
59
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/plugins/piexif.js'));
59
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/plugins/piexif.js'));
60
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/plugins/sortable.js'));
60
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/plugins/sortable.js'));
Línea 61... Línea 61...
61
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/fileinput.js'));
61
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/fileinput.js'));
Línea 62... Línea 62...
62
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/locales/es.js'));
62
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/locales/es.js'));
63
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/themes/fas/theme.js'));
63
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/themes/fa/theme.js'));
Línea 495... Línea 495...
495
            },
495
            },
496
            invalidHandler: function(form, validator) {
496
            invalidHandler: function(form, validator) {
497
            }  
497
            }  
498
        });  
498
        });  
Línea 499... Línea 499...
499
 
499
 
500
    var validatorCapsuleCustomer = $('#form-upload-users').validate({
500
    var validatorUploadUsers = $('#form-upload-users').validate({
501
        debug: true,
501
        debug: true,
502
        onclick: false,
502
        onclick: false,
503
        onkeyup: false,
503
        onkeyup: false,
504
        onfocusout: false,
504
        onfocusout: false,
Línea 542... Línea 542...
542
                        var s = '<tr>';
542
                        var s = '<tr>';
543
                        s = s + '<td>' + item['first_name'] + '</td>';
543
                        s = s + '<td>' + item['first_name'] + '</td>';
544
                        s = s + '<td>' + item['last_name'] + '</td>';
544
                        s = s + '<td>' + item['last_name'] + '</td>';
545
                        s = s + '<td>' + item['email'] + '</td>';
545
                        s = s + '<td>' + item['email'] + '</td>';
546
                        s = s + '<td>' + item['password'] + '</td>';
546
                        s = s + '<td>' + item['password'] + '</td>';
-
 
547
                        s = s + '<td>' + item['is_adult'] + '</td>';
547
                        s = s + '</tr>';
548
                        s = s + '</tr>';
Línea 548... Línea 549...
548
    
549
    
Línea 555... Línea 556...
555
                    $('#modalUploadUsers').modal('show');
556
                    $('#modalUploadUsers').modal('show');
Línea 556... Línea 557...
556
 
557
 
557
 
558
 
558
                    
559
                    
559
                } else {
560
                } else {
560
                    validatorCapsuleCustomer.resetForm();
561
                    validatorUploadUsers.resetForm();
561
                    if(jQuery.type(response['data']) == 'string') {
562
                    if(jQuery.type(response['data']) == 'string') {
562
                        $.fn.showError(response['data']);
563
                        $.fn.showError(response['data']);
Línea 579... Línea 580...
579
        }
580
        }
580
    });
581
    });
Línea 581... Línea 582...
581
 
582
 
582
 
583
 
583
    $('#form-upload-users #file').fileinput({
584
    $('#form-upload-users #file').fileinput({
584
        theme: 'fas',
585
        theme: 'fa',
585
        language: 'es',
586
        language: 'es',
586
        showUpload: false,
587
        showUpload: false,
587
        dropZoneEnabled: false,
588
        dropZoneEnabled: false,
Línea 611... Línea 612...
611
                'step' : 'process',
612
                'step' : 'process',
612
                'key' : $('#table-upload-users-key').val(),   
613
                'key' : $('#table-upload-users-key').val(),   
613
            }
614
            }
614
        }).done(function(response) {
615
        }).done(function(response) {
615
            if(response['success']) {
616
            if(response['success']) {
616
                if(response['data']['users_assigned'] == 1) {
617
                if(response['data']['users_created'] == 1) {
617
                    $.fn.showSuccess(response['data']['users_assigned'] + ' LABEL_USER_CREATED');
618
                    $.fn.showSuccess(response['data']['users_created'] + ' LABEL_USER_CREATED');
618
                } else {
619
                } else {
619
                    $.fn.showSuccess(response['data']['users_assigned'] + ' LABEL_USERS_CREATED');
620
                    $.fn.showSuccess(response['data']['users_created'] + ' LABEL_USERS_CREATED');
620
                }    
621
                }    
621
                 gridTable.api().ajax.reload(null, false);
622
                 gridTable.api().ajax.reload(null, false);
622
                $('#modalUploadUsers').modal('hide');
623
                $('#modalUploadUsers').modal('hide');
623
            } else {
624
            } else {
624
                $.fn.showError(response['data']);
625
                $.fn.showError(response['data']);
Línea 810... Línea 811...
810
<!-- Content Header (Page header) -->
811
<!-- Content Header (Page header) -->
811
<section class="content-header">
812
<section class="content-header">
812
    <div class="container-fluid">
813
    <div class="container-fluid">
813
        <div class="row mb-2">
814
        <div class="row mb-2">
814
            <div class="col-sm-12">
815
            <div class="col-sm-12">
815
                <h1>LABEL_USERS</h1>
816
                <h1>LABEL_USERS_FOR_COMPANY</h1>
816
            </div>
817
            </div>
817
        </div>
818
        </div>
818
    </div><!-- /.container-fluid -->
819
    </div><!-- /.container-fluid -->
819
</section>
820
</section>
Línea 976... Línea 977...
976
    <div class="modal-dialog modal-xl">
977
    <div class="modal-dialog modal-xl">
977
        <div class="modal-content">
978
        <div class="modal-content">
Línea 978... Línea 979...
978
 
979
 
979
            <!-- Modal Header -->
980
            <!-- Modal Header -->
980
            <div class="modal-header">
981
            <div class="modal-header">
981
                <h3 class="modal-title">LABEL_USERS</h3>
982
                <h3 class="modal-title">LABEL_USERS_FOR_COMPANY</h3>
982
                <button type="button" class="close" data-dismiss="modal">&times;</button>
983
                <button type="button" class="close" data-dismiss="modal">&times;</button>
Línea 983... Línea 984...
983
            </div>
984
            </div>
984
 
985
 
Línea 993... Línea 994...
993
                            <tr>
994
                            <tr>
994
                                <th>LABEL_FIRST_NAME</th>
995
                                <th>LABEL_FIRST_NAME</th>
995
                                <th>LABEL_LAST_NAME</th>
996
                                <th>LABEL_LAST_NAME</th>
996
                                <th>LABEL_EMAIL</th>
997
                                <th>LABEL_EMAIL</th>
997
                                <th>LABEL_PASSWORD</th>
998
                                <th>LABEL_PASSWORD</th>
-
 
999
                                <th>LABEL_IS_ADULT</th>
998
                            </tr>
1000
                            </tr>
999
                        </thead>
1001
                        </thead>
1000
                        <tbody>
1002
                        <tbody>
1001
                        </tbody>
1003
                        </tbody>
1002
                    </table>
1004
                    </table>
Línea 1020... Línea 1022...
1020
    <div class="modal-dialog  modal-xl">
1022
    <div class="modal-dialog  modal-xl">
1021
        <div class="modal-content">
1023
        <div class="modal-content">
Línea 1022... Línea 1024...
1022
 
1024
 
1023
            <!-- Modal Header -->
1025
            <!-- Modal Header -->
1024
            <div class="modal-header">
1026
            <div class="modal-header">
1025
                <h3 class="modal-title">LABEL_EDIT</h3>
1027
                <h3 class="modal-title">LABEL_USER_FOR_COMPANY - LABEL_EDIT</h3>
Línea 1026... Línea 1028...
1026
            </div>
1028
            </div>
1027
 
1029
 
1028
            <!-- Modal body -->
1030
            <!-- Modal body -->