Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 6486 Rev 6539
Línea 22... Línea 22...
22
$routeImageUpload = $this->url('profile/image', ['id' => $currentCompany->uuid, 'operation' => 'upload']);
22
$routeImageUpload = $this->url('profile/image', ['id' => $currentCompany->uuid, 'operation' => 'upload']);
23
$routeCoverUpload = $this->url('profile/cover', ['id' => $currentCompany->uuid, 'operation' => 'upload']);
23
$routeCoverUpload = $this->url('profile/cover', ['id' => $currentCompany->uuid, 'operation' => 'upload']);
24
$routeFooterUpload = $this->url('profile/footer', ['id' => $currentCompany->uuid, 'operation' => 'upload']);
24
$routeFooterUpload = $this->url('profile/footer', ['id' => $currentCompany->uuid, 'operation' => 'upload']);
25
$routeHeaderUpload = $this->url('profile/header', ['id' => $currentCompany->uuid, 'operation' => 'upload']);
25
$routeHeaderUpload = $this->url('profile/header', ['id' => $currentCompany->uuid, 'operation' => 'upload']);
Línea 26... Línea -...
26
 
-
 
27
 
26
 
Línea 28... Línea 27...
28
$this->inlineScript()->appendFile('https://maps.googleapis.com/maps/api/js?key=' . $google_map_key . '&libraries=places');
27
$this->inlineScript()->appendFile('https://maps.googleapis.com/maps/api/js?key=' . $google_map_key . '&libraries=places');
29
 
28
 
Línea 30... Línea 29...
30
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
29
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
Línea 31... Línea -...
31
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
-
 
32
 
30
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
33
$this->inlineScript()->appendFile($this->basePath('plugins/ckeditor/ckeditor.js'));
31
 
Línea 34... Línea 32...
34
 
32
$this->inlineScript()->appendFile($this->basePath('plugins/ckeditor/ckeditor.js'));
35
 
33
 
36
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-fileinput/css/fileinput.min.css'));
34
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-fileinput/css/fileinput.min.css'));
37
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-fileinput/themes/explorer-fas/theme.css'));
35
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-fileinput/themes/explorer-fas/theme.css'));
38
 
36
 
39
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/plugins/piexif.js'));
37
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/plugins/piexif.js'));
Línea 40... Línea -...
40
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/plugins/sortable.js'));
-
 
41
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/fileinput.js'));
38
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/plugins/sortable.js'));
42
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/locales/es.js'));
39
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/fileinput.js'));
43
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/themes/fas/theme.js'));
40
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/locales/es.js'));
Línea 44... Línea -...
44
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/themes/explorer-fas/theme.js'));
-
 
45
 
-
 
46
 
41
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/themes/fas/theme.js'));
47
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
42
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/themes/explorer-fas/theme.js'));
48
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
43
 
Línea 49... Línea -...
49
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
-
 
50
 
44
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
51
 
45
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
Línea 52... Línea -...
52
 
-
 
53
$this->headLink()->appendStylesheet($this->basePath('plugins/select2/css/select2.min.css'));
46
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
54
$this->headLink()->appendStylesheet($this->basePath('plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css'));
47
 
Línea 55... Línea -...
55
$this->inlineScript()->appendFile($this->basePath('plugins/select2/js/select2.min.js'));
-
 
56
 
-
 
57
 
-
 
58
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-input-number/input-number-format.jquery.min.js'));
-
 
59
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
48
$this->headLink()->appendStylesheet($this->basePath('plugins/select2/css/select2.min.css'));
60
 
49
$this->headLink()->appendStylesheet($this->basePath('plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css'));
61
 
50
$this->inlineScript()->appendFile($this->basePath('plugins/select2/js/select2.min.js'));
Línea 62... Línea 51...
62
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
51
 
63
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
52
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-input-number/input-number-format.jquery.min.js'));
64
 
53
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
Línea 65... Línea -...
65
 
-
 
66
 
-
 
67
 
54
 
68
 
55
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
69
$this->inlineScript()->appendFile($this->basePath('plugins/moment/moment-with-locales.min.js'));
56
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
70
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css'));
57
 
Línea 71... Línea -...
71
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js'));
-
 
72
 
58
$this->inlineScript()->appendFile($this->basePath('plugins/moment/moment-with-locales.min.js'));
73
$this->inlineScript()->captureStart();
59
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css'));
74
echo <<<JS
60
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js'));
75
jQuery( document ).ready(function( $ ) {
61
 
Línea 91... Línea 77...
91
        (document.getElementById('location_search')),
77
        (document.getElementById('location_search')),
92
        {types: ['(cities)']}
78
        {types: ['(cities)']}
93
    );
79
    );
Línea 94... Línea -...
94
 
-
 
95
 
-
 
96
 
-
 
97
 
80
 
98
 
81
 
Línea 99... Línea 82...
99
    $.fn.fillInAddressLocation = function() {
82
    $.fn.fillInAddressLocation = function() {
100
        console.log('fillInAddressLocation');
83
        console.log('fillInAddressLocation');
Línea 152... Línea 135...
152
        $('#form-location #latitude').val(latitude);
135
        $('#form-location #latitude').val(latitude);
153
        $('#form-location #longitude').val(longitude);
136
        $('#form-location #longitude').val(longitude);
Línea 154... Línea 137...
154
 
137
 
155
        }
138
        }
-
 
139
    }
156
    }
140
 
157
    $.fn.renderLocation = function(data) {
141
    $.fn.renderLocation = function(data) {
158
        $('#locations-records').empty();
142
        $('#locations-records').empty();
159
        if(Array.isArray(data)) {
143
        if(Array.isArray(data)) {
160
            max = data.length;
144
            max = data.length;
Línea 175... Línea 159...
175
                $('#locations-records').append(s);
159
                $('#locations-records').append(s);
176
            }      
160
            }      
177
        }
161
        }
178
    }
162
    }
Línea 179... Línea -...
179
 
-
 
180
       
-
 
181
    
163
 
182
            $.validator.setDefaults({
164
            $.validator.setDefaults({
183
            debug: true,
165
            debug: true,
184
            highlight: function(element) {
166
            highlight: function(element) {
185
                $(element).addClass('is-invalid');
167
                $(element).addClass('is-invalid');
Línea 198... Línea 180...
198
                    error.insertAfter(element.parent());
180
                    error.insertAfter(element.parent());
199
                }
181
                }
200
            }
182
            }
201
        });
183
        });
Línea 202... Línea -...
202
    
-
 
203
    
184
    
204
        $.fn.showFormErrorValidator = function(fieldname, errors) {
185
        $.fn.showFormErrorValidator = function(fieldname, errors) {
205
            var field = $(fieldname);
186
            var field = $(fieldname);
206
            if(field) {
187
            if(field) {
Línea 215... Línea 196...
215
                } else {
196
                } else {
216
                    error.insertAfter(field.parent());
197
                    error.insertAfter(field.parent());
217
                }
198
                }
218
            }
199
            }
219
        };
200
        };
220
 
-
 
221
    
-
 
222
 
-
 
Línea 223... Línea 201...
223
   
201
   
224
    var validatorLocation = $('#form-location').validate({
202
    var validatorLocation = $('#form-location').validate({
225
        debug: true,
203
        debug: true,
226
        onclick: false,
204
        onclick: false,
Línea 363... Línea 341...
363
        e.preventDefault();
341
        e.preventDefault();
Línea 364... Línea 342...
364
        
342
        
365
        $("#location-box").modal('hide');
343
        $("#location-box").modal('hide');
366
        return false;
344
        return false;
367
    });
-
 
368
 
-
 
369
    var validatorSocialNetwork = $('#form-social-network').validate({
-
 
370
        debug: true,
-
 
371
        onclick: false,
-
 
372
        onkeyup: false,
-
 
373
        ignore: [],
-
 
374
        rules: {
-
 
375
            'facebook': {
-
 
376
                required: false,
-
 
377
                maxlength: 250,
-
 
378
                url: true,
-
 
379
            },
-
 
380
            'twitter': {
-
 
381
                required: false,
-
 
382
                maxlength: 250,
-
 
383
                url: true,
-
 
384
            },
-
 
385
            'instagram': {
-
 
386
                required: false,
-
 
387
                maxlength: 250,
-
 
388
                url: true,
-
 
389
            },
-
 
390
        },
-
 
391
 
-
 
392
        submitHandler: function(form)
-
 
393
        {
-
 
394
            NProgress.start();
-
 
395
            $.ajax({
-
 
396
                'dataType'  : 'json',
-
 
397
                'accept'    : 'application/json',
-
 
398
                'method'    : 'post',
-
 
399
                'url'       :  $('#form-social-network').attr('action'),
-
 
400
                'data'      :  $('#form-social-network').serialize()
-
 
401
            }).done(function(response) {
-
 
402
                if(response['success']) {
-
 
403
 
-
 
404
					$('#social-networks').empty();
-
 
405
                    var s = $.trim(response['data']['facebook']);
-
 
406
                    if(s.length > 32) {
-
 
407
                        s = s.substring(0, 31) + '...'
-
 
408
                    }
-
 
409
                    $('#social-networks').append('<li><a href="' + response['data']['facebook'] + '" target="_blank" title="">' + 
-
 
410
                        '<i class="fa fa-facebook-square"></i> ' + s + '</a></li>');    
-
 
411
    
-
 
412
                    var s = $.trim(response['data']['twitter']);
-
 
413
                    if(s.length > 32) {
-
 
414
                        s = s.substring(0, 31) + '...'
-
 
415
                    }
-
 
416
                    $('#social-networks').append('<li><a href="' + response['data']['twitter'] + '" target="_blank" title="">' + 
-
 
417
                        '<i class="fa fa-twitter"></i> ' + s + '</a></li>'); 
-
 
418
 
-
 
419
                    var s = $.trim(response['data']['instagram']);
-
 
420
                    if(s.length > 32) {
-
 
421
                        s = s.substring(0, 31) + '...'
-
 
422
                    }
-
 
423
                    $('#social-networks').append('<li><a href="' + response['data']['instagram'] + '" target="_blank" title="">' + 
-
 
424
                        '<i class="fa fa-instagram"></i> ' + s + '</a></li>'); 
-
 
425
     
-
 
426
                    $("#social-networks-box").modal('hide');
-
 
427
                } else {
-
 
428
                    validatorSocialNetwork.resetForm();
-
 
429
                    if(jQuery.type(response['data']) == 'string') {
-
 
430
                        $.fn.showError(response['data']);
-
 
431
                    } else  {
-
 
432
                        $.each(response['data'], function( fieldname, errors ) {
-
 
433
                            $.fn.showFormErrorValidator('#form-social-network #' + fieldname, errors);
-
 
434
                        });
-
 
435
                    }
-
 
436
                }
-
 
437
            }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
438
                $.fn.showError(textStatus);
-
 
439
            }).always(function() {
-
 
440
                NProgress.done();
-
 
441
            });
-
 
442
            return false;
-
 
443
        },
-
 
444
        invalidHandler: function(form, validator) {
-
 
445
        
-
 
446
        }
-
 
447
    });
-
 
448
    
-
 
449
 
-
 
450
 
-
 
451
    $('.btn-social-network-edit').on("click", function(e){
-
 
452
        e.preventDefault();
-
 
453
 
-
 
454
        NProgress.start();
-
 
455
        $.ajax({
-
 
456
            'dataType'  : 'json',
-
 
457
            'accept'    : 'application/json',
-
 
458
            'method'    : 'get',
-
 
459
            'url'       : '$routeSocialNetworks',
-
 
460
        }).done(function(response) {
-
 
461
           if(response['success']) {
-
 
462
                $('#form-social-network #facebook').val(response['data']['facebook']);
-
 
463
                $('#form-social-network #twitter').val(response['data']['twitter']);
-
 
464
                $('#form-social-network #instagram').val(response['data']['instagram']);
-
 
465
                validatorSocialNetwork.resetForm();
-
 
466
 
-
 
467
                $("#social-networks-box").modal('show');
-
 
468
            } else {
-
 
469
                $.fn.showError(response['data']);
-
 
470
            }
-
 
471
        }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
472
            $.fn.showError(textStatus);
-
 
473
        }).always(function() {
-
 
474
            NProgress.done();
-
 
475
        });
-
 
476
        return false;
-
 
477
 
-
 
478
    });
-
 
479
    
-
 
480
    $('.btn-social-network-close').on("click", function(e){
-
 
481
        e.preventDefault();
-
 
482
        
-
 
483
        $("#social-networks-box").modal('hide');
-
 
484
        return false;
-
 
485
    });
-
 
Línea 486... Línea 345...
486
    
345
    });
487
    
346
    
488
    var validatorExtended = $('#form-extended').validate({
347
    var validatorExtended = $('#form-extended').validate({
489
        debug: true,
348
        debug: true,
Línea 737... Línea 596...
737
        
596
        
738
        $("#industry-box").modal('hide');
597
        $("#industry-box").modal('hide');
739
        return false;
598
        return false;
Línea 740... Línea -...
740
    });
-
 
741
 
-
 
742
 
-
 
743
 
599
    });
744
 
600
 
745
    var validatorImage = $('#form-image').validate({
601
    var validatorImage = $('#form-image').validate({
746
        debug: true,
602
        debug: true,
747
        onclick: false,
603
        onclick: false,
Línea 814... Línea 670...
814
        
670
        
815
        $("#image-box").modal('hide');
671
        $("#image-box").modal('hide');
816
        return false;
672
        return false;
Línea 817... Línea -...
817
    });
-
 
818
 
-
 
819
 
-
 
820
    var validatorCover = $('#form-header').validate({
-
 
821
        debug: true,
-
 
822
        onclick: false,
-
 
823
        onkeyup: false,
-
 
824
        onfocusout: false,
-
 
825
        ignore: [],
-
 
826
        rules: {
-
 
827
           'header': {
-
 
828
                required: true,
-
 
829
                extension: 'jpg|jpeg|png',
-
 
830
                accept: 'image/jpeg,image/png'
-
 
831
            },
-
 
832
        },
-
 
833
 
-
 
834
        submitHandler: function(form)
-
 
835
        {
-
 
836
            var formdata = false;
-
 
837
            if (window.FormData){
-
 
838
                formdata = new FormData(form); //form[0]);
-
 
839
            }
-
 
840
 
-
 
841
            NProgress.start();
-
 
842
            $.ajax({
-
 
843
                'dataType'  : 'json',
-
 
844
                'accept'    : 'application/json',
-
 
845
                'method'    : 'post',
-
 
846
                'url'       :  $('#form-header').attr('action'),
-
 
847
                'data'      : formdata ? formdata : $('#form-header').serialize(),
-
 
848
                'processData': false,
-
 
849
                'contentType': false,
-
 
850
            }).done(function(response) {
-
 
851
                if(response['success']) {
-
 
852
                    $('#user-header-img').attr('src',response['data']);
-
 
853
                    $("#image-header-box").modal('hide');
-
 
854
                    location.reload();
-
 
855
                } else {
-
 
856
                    validatorCover.resetForm();
-
 
857
                    if(jQuery.type(response['data']) == 'string') {
-
 
858
                        $.fn.showError(response['data']);
-
 
859
                    } else  {
-
 
860
                        $.each(response['data'], function( fieldname, errors ) {
-
 
861
                            $.fn.showFormErrorValidator('#form-header #' + fieldname, errors);
-
 
862
                        });
-
 
863
                    }
-
 
864
                }
-
 
865
            }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
866
                $.fn.showError(textStatus);
-
 
867
            }).always(function() {
-
 
868
                NProgress.done();
-
 
869
            });
-
 
870
            return false;
-
 
871
        },
-
 
872
        invalidHandler: function(form, validator) {
-
 
873
        
-
 
874
        }
-
 
875
    });
673
    });
876
 
674
 
877
    $('.btn-image-explorer').on("click", function(e){
675
    $('.btn-image-explorer').on("click", function(e){
878
        e.preventDefault();
676
        e.preventDefault();
879
        $('#form-image #image').click();
677
        $('#form-image #image').click();
Línea 880... Línea -...
880
        return false;
-
 
881
    });
-
 
882
 
-
 
883
    var validatorCover = $('#form-cover').validate({
-
 
884
        debug: true,
-
 
885
        onclick: false,
-
 
886
        onkeyup: false,
-
 
887
        onfocusout: false,
-
 
888
        ignore: [],
-
 
889
        rules: {
-
 
890
           'cover': {
-
 
891
                required: true,
-
 
892
                extension: 'jpg|jpeg|png',
-
 
893
                accept: 'image/jpeg,image/png'
-
 
894
            },
-
 
895
        },
-
 
896
 
-
 
897
        submitHandler: function(form)
-
 
898
        {
-
 
899
            var formdata = false;
-
 
900
            if (window.FormData){
-
 
901
                formdata = new FormData(form); //form[0]);
-
 
902
            }
-
 
903
 
-
 
904
            NProgress.start();
-
 
905
            $.ajax({
-
 
906
                'dataType'  : 'json',
-
 
907
                'accept'    : 'application/json',
-
 
908
                'method'    : 'post',
-
 
909
                'url'       :  $('#form-cover').attr('action'),
-
 
910
                'data'      : formdata ? formdata : $('#form-cover').serialize(),
-
 
911
                'processData': false,
-
 
912
                'contentType': false,
-
 
913
            }).done(function(response) {
-
 
914
                if(response['success']) {
-
 
915
				    $('#user-cover-img').attr('src',response['data']);
-
 
916
                    $("#cover-box").modal('hide');
-
 
917
                } else {
-
 
918
                    validatorCover.resetForm();
-
 
919
                    if(jQuery.type(response['data']) == 'string') {
-
 
920
                        $.fn.showError(response['data']);
-
 
921
                    } else  {
-
 
922
                        $.each(response['data'], function( fieldname, errors ) {
-
 
923
                            $.fn.showFormErrorValidator('#form-cover #' + fieldname, errors);
-
 
924
                        });
-
 
925
                    }
-
 
926
                }
-
 
927
            }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
928
                $.fn.showError(textStatus);
-
 
929
            }).always(function() {
-
 
930
                NProgress.done();
-
 
931
            });
-
 
932
            return false;
-
 
933
        },
-
 
934
        invalidHandler: function(form, validator) {
-
 
935
        
-
 
936
        }
-
 
937
    });
-
 
938
 
-
 
939
 
-
 
940
    $('.btn-cover-open').on("click", function(e){
-
 
941
        e.preventDefault();
-
 
942
        $('#form-cover #cover').fileinput('reset');
-
 
943
        $('#form-cover #cover').val('');
-
 
944
        validatorCover.resetForm();
-
 
945
        $("#cover-box").modal('show');
-
 
946
        return false;
-
 
947
    });
-
 
948
 
-
 
949
    $('.btn-cover-close').on("click", function(e){
-
 
950
        e.preventDefault();
-
 
951
        
-
 
952
        $("#cover-box").modal('hide');
-
 
953
        return false;
-
 
954
    });
-
 
955
 
-
 
956
    $('.btn-cover-explorer').on("click", function(e){
-
 
957
        e.preventDefault();
-
 
958
        
-
 
959
        $('#form-cover #cover').click();
-
 
960
        return false;
678
        return false;
961
    });
679
    });
962
 
680
 
963
    $("#form-cover #cover").fileinput({
681
    $("#form-cover #cover").fileinput({
964
        theme: 'fas',
682
        theme: 'fas',
Línea 980... Línea 698...
980
        allowedFileExtensions: ['jpg', 'jpeg', 'png', 'gif'],
698
        allowedFileExtensions: ['jpg', 'jpeg', 'png', 'gif'],
981
        mainClass: "input-group",
699
        mainClass: "input-group",
982
        msgPlaceholder: 'LABEL_RECOMMENDED_SIZE $image_size_profile',
700
        msgPlaceholder: 'LABEL_RECOMMENDED_SIZE $image_size_profile',
983
    });
701
    });
Línea 984... Línea -...
984
 
-
 
985
   $('#form-skill #skills').select2({ 
-
 
986
        theme: 'bootstrap4',
-
 
987
        width: '100%', 
-
 
988
        placeholder: 'LABEL_SELECT_ONE_SKILLS'
-
 
989
    });
-
 
990
    $('#form-language #languages').select2({ 
-
 
991
        theme: 'bootstrap4',
-
 
992
        width: '100%',
-
 
993
        placeholder: 'LABEL_SELECT_ONE_LANGUAGE'
-
 
994
    });
-
 
995
    
-
 
996
    
702
 
Línea 997... Línea 703...
997
    CKEDITOR.replace('description');
703
    CKEDITOR.replace('description');
Línea 998... Línea 704...
998
 
704
 
Línea 999... Línea 705...
999
    autocompleteLocation.addListener('place_changed', $.fn.fillInAddressLocation);
705
    autocompleteLocation.addListener('place_changed', $.fn.fillInAddressLocation);
Línea 1000... Línea -...
1000
 
-
 
1001
    $('#form-location #is_main').bootstrapToggle({'on' : 'LABEL_MAIN_LOCATION',  'off' : 'LABEL_SECONDARY_LOCATION', 'width' : '160px', 'height' : '40px'});
706
 
1002
    
707
    $('#form-location #is_main').bootstrapToggle({'on' : 'LABEL_MAIN_LOCATION',  'off' : 'LABEL_SECONDARY_LOCATION', 'width' : '160px', 'height' : '40px'});
Línea 1003... Línea 708...
1003
});
708
    
1004
 
-
 
1005
 
709
});
1006
JS;
710
 
1007
$this->inlineScript()->captureEnd();
711
JS;
1008
 
712
$this->inlineScript()->captureEnd();
1009
$jsonLocations = json_encode($locations);
713
 
Línea 1099... Línea 803...
1099
            </div>
803
            </div>
1100
            <?php echo $this->form()->closeTag($form); ?>
804
            <?php echo $this->form()->closeTag($form); ?>
1101
        </div>
805
        </div>
1102
    </div>
806
    </div>
1103
</div>
807
</div>
1104
<div class="modal" tabindex="-1" role="dialog" id="foundation-year-box">
-
 
1105
    <div class="modal-dialog" role="document">
-
 
1106
        <?php
-
 
1107
        $form = $this->formFoundationYear;
-
 
1108
        $form->setAttributes([
-
 
1109
            'method' => 'post',
-
 
1110
            'action' => $routeFoundationYear,
-
 
1111
            'name' => 'form-foundation-year',
-
 
1112
            'id' => 'form-foundation-year'
-
 
1113
        ]);
-
 
1114
        $form->prepare();
-
 
1115
        echo $this->form()->openTag($form);
-
 
1116
        ?>
-
 
1117
        <div class="modal-content">
-
 
1118
            <div class="modal-header">
-
 
1119
                <h3 class="modal-title">LABEL_CHANGE</h3>
-
 
1120
            </div>
-
 
1121
            <div class="modal-body">
-
 
1122
                <div class="form-group">
-
 
1123
                    <?php
-
 
1124
                    $element = $form->get('foundation_year');
-
 
1125
                    $element->setAttributes(['class' => 'form-control']);
-
 
1126
                    $element->setOptions(['label' => 'LABEL_FOUNDATION_YEAR']);
-
 
1127
                    echo $this->formLabel($element);
-
 
1128
                    echo $this->formText($element);
-
 
1129
                    ?>
-
 
1130
                </div>
-
 
1131
            </div>
-
 
1132
            <div class="modal-footer">
-
 
1133
                <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
1134
                <button type="button" class="btn btn-default btn-fondation-year-close">LABEL_CANCEL</button>
-
 
1135
            </div>
-
 
1136
            <?php echo $this->form()->closeTag($form); ?>
-
 
1137
        </div>
-
 
1138
    </div>
-
 
1139
</div>
-
 
1140
<div class="modal" tabindex="-1" role="dialog" id="industry-box">
808
<div class="modal" tabindex="-1" role="dialog" id="industry-box">
1141
    <div class="modal-dialog" role="document">
809
    <div class="modal-dialog" role="document">
1142
        <?php
810
        <?php
1143
        $form = $this->formIndustry;
811
        $form = $this->formIndustry;
1144
        $form->setAttributes([
812
        $form->setAttributes([
Línea 1269... Línea 937...
1269
            </div>
937
            </div>
1270
            <?php echo $this->form()->closeTag($form); ?>
938
            <?php echo $this->form()->closeTag($form); ?>
1271
        </div>
939
        </div>
1272
    </div>
940
    </div>
1273
</div>
941
</div>
1274
<div class="modal" tabindex="-1" role="dialog" id="social-networks-box">
-
 
1275
    <div class="modal-dialog" role="document">
-
 
1276
        <?php
-
 
1277
        $form = $this->formSocialNetwork;
-
 
1278
        $form->setAttributes([
-
 
1279
            'method' => 'post',
-
 
1280
            'action' => $routeSocialNetworks,
-
 
1281
            'name' => 'form-social-network',
-
 
1282
            'id' => 'form-social-network'
-
 
1283
        ]);
-
 
1284
        $form->prepare();
-
 
1285
        echo $this->form()->openTag($form);
-
 
1286
        ?>
-
 
1287
        <div class="modal-content">
-
 
1288
            <div class="modal-header">
-
 
1289
                <h3 class="modal-title">LABEL_CHANGE</h3>
-
 
1290
            </div>
-
 
1291
            <div class="modal-body">
-
 
1292
                <div class="form-group">
-
 
1293
                    <?php
-
 
1294
                    $element = $form->get('facebook');
-
 
1295
                    $element->setAttributes(['class' => 'form-control']);
-
 
1296
                    $element->setOptions(['label' => 'LABEL_FACEBOOK']);
-
 
1297
                    echo $this->formLabel($element);
-
 
1298
                    echo $this->formText($element);
-
 
1299
                    ?>
-
 
1300
                </div>
-
 
1301
                <div class="form-group">
-
 
1302
                    <?php
-
 
1303
                    $element = $form->get('twitter');
-
 
1304
                    $element->setAttributes(['class' => 'form-control']);
-
 
1305
                    $element->setOptions(['label' => 'LABEL_TWITTER']);
-
 
1306
                    echo $this->formLabel($element);
-
 
1307
                    echo $this->formText($element);
-
 
1308
                    ?>
-
 
1309
                </div>
-
 
1310
                <div class="form-group">
-
 
1311
                    <?php
-
 
1312
                    $element = $form->get('instagram');
-
 
1313
                    $element->setAttributes(['class' => 'form-control']);
-
 
1314
                    $element->setOptions(['label' => 'LABEL_INSTAGRAM']);
-
 
1315
                    echo $this->formLabel($element);
-
 
1316
                    echo $this->formText($element);
-
 
1317
                    ?>
-
 
1318
                </div>
-
 
1319
                <div class="form-group">
-
 
1320
                </div>
-
 
1321
                <div class="modal-footer">
-
 
1322
                    <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
1323
                    <button type="button" class="btn btn-default btn-social-network-close">LABEL_CANCEL</button>
-
 
1324
                </div>
-
 
1325
            </div>
-
 
1326
            <?php echo $this->form()->closeTag($form); ?>
-
 
1327
        </div>
-
 
1328
    </div>
-
 
1329
</div>
-
 
1330
<div class="modal" tabindex="-1" role="dialog" id="image-box">
942
<div class="modal" tabindex="-1" role="dialog" id="image-box">
1331
    <div class="modal-dialog" role="document">
943
    <div class="modal-dialog" role="document">
1332
        <?php
944
        <?php
1333
        $form = $this->formImage;
945
        $form = $this->formImage;
1334
        $form->setAttributes([
946
        $form->setAttributes([