Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 8111 Rev 8140
Línea 10... Línea 10...
10
$allowAdd = $acl->isAllowed($roleName, 'jobs/add') ? 1 : 0;
10
$allowAdd = $acl->isAllowed($roleName, 'jobs/add') ? 1 : 0;
11
$allowDelete = $acl->isAllowed($roleName, 'jobs/delete') ? 1 : 0;
11
$allowDelete = $acl->isAllowed($roleName, 'jobs/delete') ? 1 : 0;
12
$allowEdit = $acl->isAllowed($roleName, 'jobs/edit') ? 1 : 0;
12
$allowEdit = $acl->isAllowed($roleName, 'jobs/edit') ? 1 : 0;
13
$allowUsersWhoApplied = $acl->isAllowed($roleName, 'jobs/users-who-applied') ? 1 : 0;
13
$allowUsersWhoApplied = $acl->isAllowed($roleName, 'jobs/users-who-applied') ? 1 : 0;
Línea -... Línea 14...
-
 
14
 
-
 
15
 
-
 
16
 
-
 
17
$this->inlineScript()->appendFile('https://maps.googleapis.com/maps/api/js?key=' . $google_map_key . '&libraries=places');
14
 
18
 
15
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
19
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
Línea 16... Línea 20...
16
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
20
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
Línea 262... Línea 266...
262
        var otherElement = $(param);
266
        var otherElement = $(param);
Línea 263... Línea 267...
263
 
267
 
264
        return $.trim(otherElement.val()).length > 0;
268
        return $.trim(otherElement.val()).length > 0;
Línea -... Línea 269...
-
 
269
    }, 'ERROR_PLACED_AUTOCOMPLETE_DOES_NOT_CONTAIN_GEOMETRY');
-
 
270
 
-
 
271
    var autocompleteLocation = new google.maps.places.Autocomplete(
-
 
272
        (document.getElementById('location_search')),
-
 
273
        {types: ['(cities)']}
-
 
274
    );
-
 
275
    
-
 
276
    $.fn.fillInAddressLocation = function() {
-
 
277
    
-
 
278
        var place = autocompleteLocation.getPlace();
-
 
279
        if (!place.geometry) {
-
 
280
            $.fn.showError('ERROR_PLACED_AUTOCOMPLETE_DOES_NOT_CONTAIN_GEOMETRY')
-
 
281
            return;
-
 
282
        } else {
-
 
283
            address1 = '';
-
 
284
            address2 = '';
-
 
285
            city1 = '';
-
 
286
            city2 = '';
-
 
287
            state = '';
-
 
288
            country = '';
-
 
289
            postal_code = '';
-
 
290
            
-
 
291
            formatted_address = place.formatted_address;
-
 
292
            latitude = place.geometry.location.lat();
-
 
293
            longitude = place.geometry.location.lng();
-
 
294
            var arrAddress = place.address_components;
-
 
295
            
-
 
296
            $.each(arrAddress, function(i, address_component) {
-
 
297
                if (address_component.types[0] == "route") {
-
 
298
                    address1 = address_component.long_name;
-
 
299
                }
-
 
300
                if (address_component.types[0] == "sublocality") {
-
 
301
                    address2 = address_component.long_name;
-
 
302
                }
-
 
303
                if (address_component.types[0] == "locality") {
-
 
304
                    city1 = address_component.long_name;
-
 
305
                }
-
 
306
                if (address_component.types[0] == "administrative_area_level_2") {
-
 
307
                    city2 = address_component.long_name;
-
 
308
                }
-
 
309
                if (address_component.types[0] == "administrative_area_level_1") {
-
 
310
                    state = address_component.long_name;
-
 
311
                }
-
 
312
                if (address_component.types[0] == "country") {
-
 
313
                    country = address_component.long_name;
-
 
314
                }
-
 
315
                if (address_component.types[0] == "postal_code") {
-
 
316
                    postal_code = address_component.long_name;
-
 
317
                }
-
 
318
            });
-
 
319
            
-
 
320
            $('#form-location #formatted_address').val(formatted_address);
-
 
321
            $('#form-location #address1').val(address1);
-
 
322
            $('#form-location #address2').val(address2);
-
 
323
            $('#form-location #city1').val(city1);
-
 
324
            $('#form-location #city2').val(city2);
-
 
325
            $('#form-location #state').val(state);
-
 
326
            $('#form-location #country').val(country);
-
 
327
            $('#form-location #postal_code').val(postal_code);
-
 
328
            $('#form-location #latitude').val(latitude);
-
 
329
            $('#form-location #longitude').val(longitude);
-
 
330
        }
-
 
331
    }
-
 
332
 
-
 
333
 
-
 
334
    var autocompleteLocationNew = new google.maps.places.Autocomplete(
-
 
335
        (document.getElementById('add_location_search')),
-
 
336
        {types: ['(cities)']}
-
 
337
    );
-
 
338
 
-
 
339
    $.fn.fillInAddressNewLocation = function() {
-
 
340
 
-
 
341
 
-
 
342
        var place = autocompleteLocationNew.getPlace();
-
 
343
        if (!place.geometry) {
-
 
344
            $.fn.showError('ERROR_PLACED_AUTOCOMPLETE_DOES_NOT_CONTAIN_GEOMETRY')
-
 
345
            return;
-
 
346
        } else {
-
 
347
            address1 = '';
-
 
348
            address2 = '';
-
 
349
            city1 = '';
-
 
350
            city2 = '';
-
 
351
            state = '';
-
 
352
            country = '';
-
 
353
            postal_code = '';
-
 
354
    
-
 
355
            formatted_address = place.formatted_address;
-
 
356
            latitude = place.geometry.location.lat();
-
 
357
            longitude = place.geometry.location.lng();
-
 
358
            var arrAddress = place.address_components;
-
 
359
                
-
 
360
            $.each(arrAddress, function(i, address_component) {
-
 
361
                if (address_component.types[0] == "route") {
-
 
362
                    address1 = address_component.long_name;
-
 
363
                }
-
 
364
                if (address_component.types[0] == "sublocality") {
-
 
365
                    address2 = address_component.long_name;
-
 
366
                }
-
 
367
                if (address_component.types[0] == "locality") {
-
 
368
                    city1 = address_component.long_name;
-
 
369
                }
-
 
370
                if (address_component.types[0] == "administrative_area_level_2") {
-
 
371
                    city2 = address_component.long_name;
-
 
372
                }
-
 
373
                if (address_component.types[0] == "administrative_area_level_1") {
-
 
374
                    state = address_component.long_name;
-
 
375
                }
-
 
376
                if (address_component.types[0] == "country") {
-
 
377
                    country = address_component.long_name;
-
 
378
                }
-
 
379
                if (address_component.types[0] == "postal_code") {
-
 
380
                    postal_code = address_component.long_name;
-
 
381
                }
-
 
382
            });
-
 
383
    
-
 
384
            $('#form-add #formatted_address').val(formatted_address);
-
 
385
            $('#form-add #address1').val(address1);
-
 
386
            $('#form-add #address2').val(address2);
-
 
387
            $('#form-add #city1').val(city1);
-
 
388
            $('#form-add #city2').val(city2);
-
 
389
            $('#form-add #state').val(state);
-
 
390
            $('#form-add #country').val(country);
-
 
391
            $('#form-add #postal_code').val(postal_code);
-
 
392
            $('#form-add #latitude').val(latitude);
-
 
393
            $('#form-add #longitude').val(longitude);
Línea 265... Línea 394...
265
    }, 'ERROR_PLACED_AUTOCOMPLETE_DOES_NOT_CONTAIN_GEOMETRY');
394
        }
266
 
395
    }
267
 
396
 
Línea 526... Línea 655...
526
 
655
 
527
        $('#add-job-box').modal('show');
656
        $('#add-job-box').modal('show');
528
        return false;
657
        return false;
Línea -... Línea 658...
-
 
658
    });
-
 
659
 
-
 
660
    $('#form-add #last_date_of_application').datetimepicker({
-
 
661
        //viewMode: 'years',
-
 
662
        locale: 'es',
-
 
663
        format: 'DD/MM/YYYY'
Línea 529... Línea 664...
529
    });
664
    });
530
 
665
 
Línea 531... Línea 666...
531
 
666
 
Línea 575... Línea 710...
575
        });
710
        });
576
        return false;
711
        return false;
Línea 577... Línea 712...
577
 
712
 
Línea -... Línea 713...
-
 
713
    });
-
 
714
 
-
 
715
 var validatorLocation = $('#form-location').validate({
-
 
716
        debug: true,
-
 
717
        onclick: false,
-
 
718
        onkeyup: false,
-
 
719
        onfocusout: false,
-
 
720
        ignore: [],
-
 
721
        rules: {
-
 
722
            'location_search': {
-
 
723
                required: true,
-
 
724
                checkLocation: '#form-location #latitude'
-
 
725
            }
-
 
726
        },
-
 
727
        submitHandler: function(form)
-
 
728
        {
-
 
729
            NProgress.start();
-
 
730
            $.ajax({
-
 
731
                'dataType'  : 'json',
-
 
732
                'accept'    : 'application/json',
-
 
733
                'method'    : 'post',
-
 
734
                'url'       :  route_location,
-
 
735
                'data'      :  $('#form-location').serialize(),
-
 
736
            }).done(function(response) {
-
 
737
 
-
 
738
 
-
 
739
 
-
 
740
                if(response['success']) {
-
 
741
                    $('#overview-location').html(response.data);
-
 
742
                    $("#location-box").modal('hide');
-
 
743
                } else {
-
 
744
                    validatorLocation.resetForm();
-
 
745
                    $.fn.showError(response['data']);
-
 
746
                }
-
 
747
            }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
748
                $.fn.showError(textStatus);
-
 
749
            }).always(function() {
-
 
750
                NProgress.done();
-
 
751
            });
-
 
752
            return false;
-
 
753
        },
-
 
754
        invalidHandler: function(form, validator) {
-
 
755
        
-
 
756
        }
-
 
757
    });
-
 
758
 
-
 
759
    
-
 
760
    $('body').on('click', 'a.btn-location-edit', function(e) {
-
 
761
        e.preventDefault();
-
 
762
        
-
 
763
        $('#form-location #location_search').val('');
-
 
764
        $('#form-location #formatted_address').val('');
-
 
765
        $('#form-location #address1').val('');
-
 
766
        $('#form-location #address2').val('');
-
 
767
        $('#form-location #country').val('');
-
 
768
        $('#form-location #state').val('');
-
 
769
        $('#form-location #city1').val('');
-
 
770
        $('#form-location #city2').val('');
-
 
771
        $('#form-location #postal_code').val('');
-
 
772
        $('#form-location #latitude').val('');
-
 
773
        $('#form-location #longitude').val('');
-
 
774
        validatorLocation.resetForm();
-
 
775
        
-
 
776
        $("#location-box").modal('show');
-
 
777
    });
-
 
778
    
-
 
779
    $('.btn-location-close').on("click", function(e){
-
 
780
        e.preventDefault();
-
 
781
        
-
 
782
        $("#location-box").modal('hide');
-
 
783
        return false;
-
 
784
    });
-
 
785
    
-
 
786
 
-
 
787
    
-
 
788
 
-
 
789
    var validatorLastDateOfApplication = $('#form-last-date-of-application').validate({
-
 
790
        debug: true,
-
 
791
        onclick: false,
-
 
792
        onkeyup: false,
-
 
793
        onfocusout: false,
-
 
794
        ignore: [],
-
 
795
        rules: {
-
 
796
            'last_date_of_application': {
-
 
797
                required: true,
-
 
798
            },
-
 
799
        },
-
 
800
        
-
 
801
        submitHandler: function(form)
-
 
802
        {
-
 
803
            NProgress.start();
-
 
804
            $.ajax({
-
 
805
                'dataType'  : 'json',
-
 
806
                'accept'    : 'application/json',
-
 
807
                'method'    : 'post',
-
 
808
                'url'       :  route_last_date_of_application,
-
 
809
                'data'      :  $('#form-last-date-of-application').serialize()
-
 
810
            }).done(function(response) {
-
 
811
                if(response['success']) {
-
 
812
                
-
 
813
                    $('#overview-last-date-of-application').html(response['data']);
-
 
814
                    $("#last-date-of-application-box").modal('hide');
-
 
815
                } else {
-
 
816
                    validatorLastDateOfApplication.resetForm();
-
 
817
                    if(jQuery.type(response['data']) == 'string') {
-
 
818
                        $.fn.showError(response['data']);
-
 
819
                    } else  {
-
 
820
                        $.each(response['data'], function( fieldname, errors ) {
-
 
821
                            $.fn.showFormErrorValidator('#form-last-date-of-application #' + fieldname, errors);
-
 
822
                        });
-
 
823
                    }
-
 
824
                }
-
 
825
            }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
826
                $.fn.showError(textStatus);
-
 
827
            }).always(function() {
-
 
828
                NProgress.done();
-
 
829
            });
-
 
830
            return false;
-
 
831
        },
-
 
832
        invalidHandler: function(form, validator) {
-
 
833
        
-
 
834
        }
-
 
835
    });
-
 
836
    
-
 
837
    
-
 
838
    $('.btn-last-date-of-application-edit').on("click", function(e){
-
 
839
        e.preventDefault();
-
 
840
        
-
 
841
        NProgress.start();
-
 
842
        $.ajax({
-
 
843
            'dataType'  : 'json',
-
 
844
            'accept'    : 'application/json',
-
 
845
            'method'    : 'get',
-
 
846
            'url'       : route_last_date_of_application,
-
 
847
        }).done(function(response) {
-
 
848
           if(response['success']) {
-
 
849
                $('#form-last-date-of-application #last_date_of_application').val(response['data']);
-
 
850
                validatorLastDateOfApplication.resetForm();
-
 
851
                
-
 
852
                $("#last-date-of-application-box").modal('show');
-
 
853
            } else {
-
 
854
                $.fn.showError(response['data']);
-
 
855
            }
-
 
856
        }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
857
            $.fn.showError(textStatus);
-
 
858
        }).always(function() {
-
 
859
            NProgress.done();
-
 
860
        });
-
 
861
        return false;
-
 
862
        
-
 
863
    });
-
 
864
    
-
 
865
    $('.btn-last-date-of-application-close').on("click", function(e){
-
 
866
        e.preventDefault();
-
 
867
        
-
 
868
        $("#last-date-of-application-box").modal('hide');
-
 
869
        return false;
-
 
870
    });
-
 
871
    
-
 
872
    
-
 
873
    var validatorExtended = $('#form-extended').validate({
-
 
874
        debug: true,
-
 
875
        onclick: false,
-
 
876
        onkeyup: false,
-
 
877
        onfocusout: false,
-
 
878
        ignore: [],
-
 
879
        rules: {
-
 
880
            'description': {
-
 
881
                updateCkeditor:function() {
-
 
882
                        CKEDITOR.instances.description.updateElement();
-
 
883
                },
-
 
884
                required: false,
-
 
885
            },
-
 
886
        },
-
 
887
        
-
 
888
        submitHandler: function(form)
-
 
889
        {
-
 
890
            NProgress.start();
-
 
891
            $.ajax({
-
 
892
                'dataType'  : 'json',
-
 
893
                'accept'    : 'application/json',
-
 
894
                'method'    : 'post',
-
 
895
                'url'       :  route_extended,
-
 
896
                'data'      :  $('#form-extended').serialize()
-
 
897
            }).done(function(response) {
-
 
898
                if(response['success']) {
-
 
899
                
-
 
900
                    $('#overview-description').html(response['data']['description']);
-
 
901
                    $("#extended-box").modal('hide');
-
 
902
                } else {
-
 
903
                    validatorExtended.resetForm();
-
 
904
                    if(jQuery.type(response['data']) == 'string') {
-
 
905
                        $.fn.showError(response['data']);
-
 
906
                    } else  {
-
 
907
                        $.each(response['data'], function( fieldname, errors ) {
-
 
908
                            $.fn.showFormErrorValidator('#form-extended #' + fieldname, errors);
-
 
909
                        });
-
 
910
                    }
-
 
911
                }
-
 
912
            }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
913
                $.fn.showError(textStatus);
-
 
914
            }).always(function() {
-
 
915
                NProgress.done();
-
 
916
            });
-
 
917
            return false;
-
 
918
        },
-
 
919
        invalidHandler: function(form, validator) {
-
 
920
        
-
 
921
        }
-
 
922
    });
-
 
923
    
-
 
924
    
-
 
925
    $('.btn-extended-edit').on("click", function(e){
-
 
926
        e.preventDefault();
-
 
927
        
-
 
928
        NProgress.start();
-
 
929
        $.ajax({
-
 
930
            'dataType'  : 'json',
-
 
931
            'accept'    : 'application/json',
-
 
932
            'method'    : 'get',
-
 
933
            'url'       : route_extended,
-
 
934
        }).done(function(response) {
-
 
935
           if(response['success']) {
-
 
936
                CKEDITOR.instances.description.setData(response['data']['description']);
-
 
937
                validatorExtended.resetForm();
-
 
938
                
-
 
939
                $("#extended-box").modal('show');
-
 
940
            } else {
-
 
941
                $.fn.showError(response['data']);
-
 
942
            }
-
 
943
        }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
944
            $.fn.showError(textStatus);
-
 
945
        }).always(function() {
-
 
946
            NProgress.done();
-
 
947
        });
-
 
948
        return false;
-
 
949
        
-
 
950
    });
-
 
951
    
-
 
952
    $('.btn-extended-close').on("click", function(e){
-
 
953
        e.preventDefault();
-
 
954
        
-
 
955
        $("#extended-box").modal('hide');
-
 
956
        return false;
-
 
957
    });
-
 
958
    
-
 
959
 
-
 
960
    var validatorJobCategory = $('#form-job-category').validate({
-
 
961
        debug: true,
-
 
962
        onclick: false,
-
 
963
        onkeyup: false,
-
 
964
        ignore: [],
-
 
965
        rules: {
-
 
966
            'job-category_id': {
-
 
967
                required: false,
-
 
968
                digits: true
-
 
969
            },
-
 
970
        },
-
 
971
        submitHandler: function(form)
-
 
972
        {
-
 
973
            NProgress.start();
-
 
974
            $.ajax({
-
 
975
                'dataType'  : 'json',
-
 
976
                'accept'    : 'application/json',
-
 
977
                'method'    : 'post',
-
 
978
                'url'       :  route_job_category,
-
 
979
                'data'      :  $('#form-job-category').serialize()
-
 
980
            }).done(function(response) {
-
 
981
                if(response['success']) {
-
 
982
					$('#overview-job-category').html(response['data']);
-
 
983
                    $("#job-category-box").modal('hide');
-
 
984
                } else {
-
 
985
                    validatorJobCategory.resetForm();
-
 
986
                    if(jQuery.type(response['data']) == 'string') {
-
 
987
                        $.fn.showError(response['data']);
-
 
988
                    } else  {
-
 
989
                        $.each(response['data'], function( fieldname, errors ) {
-
 
990
                            $.fn.showFormErrorValidator('#form-job-category #' + fieldname, errors);
-
 
991
                        });
-
 
992
                    }
-
 
993
                }
-
 
994
            }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
995
                $.fn.showError(textStatus);
-
 
996
            }).always(function() {
-
 
997
                NProgress.done();
-
 
998
            });
-
 
999
            return false;
-
 
1000
        },
-
 
1001
        invalidHandler: function(form, validator) {
-
 
1002
        
-
 
1003
        }
-
 
1004
    });
-
 
1005
    
-
 
1006
    $('.btn-job-category-edit').on("click", function(e){
-
 
1007
        e.preventDefault();
-
 
1008
        
-
 
1009
        NProgress.start();
-
 
1010
        $.ajax({
-
 
1011
            'dataType'  : 'json',
-
 
1012
            'accept'    : 'application/json',
-
 
1013
            'method'    : 'get',
-
 
1014
            'url'       : route_job_category,
-
 
1015
        }).done(function(response) {
-
 
1016
           if(response['success']) {
-
 
1017
                $('#form-job-category #job_category_id').val(response['data']).trigger('change');
-
 
1018
                validatorJobCategory.resetForm();
-
 
1019
                $("#job-category-box").modal('show');
-
 
1020
            } else {
-
 
1021
                $.fn.showError(response['data']);
-
 
1022
            }
-
 
1023
        }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
1024
            $.fn.showError(textStatus);
-
 
1025
        }).always(function() {
-
 
1026
            NProgress.done();
-
 
1027
        });
-
 
1028
        return false;
-
 
1029
        
-
 
1030
    });
-
 
1031
    
-
 
1032
    $('.btn-job-category-close').on("click", function(e){
-
 
1033
        e.preventDefault();
-
 
1034
        
-
 
1035
        $("#job-category-box").modal('hide');
-
 
1036
        return false;
-
 
1037
    });
-
 
1038
    
-
 
1039
 
-
 
1040
 
-
 
1041
    var validatorEmploymentType = $('#form-employment-type').validate({
-
 
1042
        debug: true,
-
 
1043
        onclick: false,
-
 
1044
        onkeyup: false,
-
 
1045
        ignore: [],
-
 
1046
        rules: {
-
 
1047
            'employment_type': {
-
 
1048
                required: false,
-
 
1049
            },
-
 
1050
        },
-
 
1051
        submitHandler: function(form)
-
 
1052
        {
-
 
1053
            NProgress.start();
-
 
1054
            $.ajax({
-
 
1055
                'dataType'  : 'json',
-
 
1056
                'accept'    : 'application/json',
-
 
1057
                'method'    : 'post',
-
 
1058
                'url'       :  route_employment_type,
-
 
1059
                'data'      :  $('#form-employment-type').serialize()
-
 
1060
            }).done(function(response) {
-
 
1061
                if(response['success']) {
-
 
1062
					$('#overview-employment-type').html(response['data']);
-
 
1063
                    $("#employment-type-box").modal('hide');
-
 
1064
                } else {
-
 
1065
                    validatorEmploymentType.resetForm();
-
 
1066
                    if(jQuery.type(response['data']) == 'string') {
-
 
1067
                        $.fn.showError(response['data']);
-
 
1068
                    } else  {
-
 
1069
                        $.each(response['data'], function( fieldname, errors ) {
-
 
1070
                            $.fn.showFormErrorValidator('#form-employment-type #' + fieldname, errors);
-
 
1071
                        });
-
 
1072
                    }
-
 
1073
                }
-
 
1074
            }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
1075
                $.fn.showError(textStatus);
-
 
1076
            }).always(function() {
-
 
1077
                NProgress.done();
-
 
1078
            });
-
 
1079
            return false;
-
 
1080
        },
-
 
1081
        invalidHandler: function(form, validator) {
-
 
1082
        
-
 
1083
        }
-
 
1084
    });
-
 
1085
    
-
 
1086
    $('.btn-employment-type-edit').on("click", function(e){
-
 
1087
        e.preventDefault();
-
 
1088
        
-
 
1089
        NProgress.start();
-
 
1090
        $.ajax({
-
 
1091
            'dataType'  : 'json',
-
 
1092
            'accept'    : 'application/json',
-
 
1093
            'method'    : 'get',
-
 
1094
            'url'       : route_employment_type,
-
 
1095
        }).done(function(response) {
-
 
1096
           if(response['success']) {
-
 
1097
                $('#form-employment-type #employment_type').val(response['data']).trigger('change');
-
 
1098
                validatorEmploymentType.resetForm();
-
 
1099
                $("#employment-type-box").modal('show');
-
 
1100
            } else {
-
 
1101
                $.fn.showError(response['data']);
-
 
1102
            }
-
 
1103
        }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
1104
            $.fn.showError(textStatus);
-
 
1105
        }).always(function() {
-
 
1106
            NProgress.done();
-
 
1107
        });
-
 
1108
        return false;
-
 
1109
        
-
 
1110
    });
-
 
1111
    
-
 
1112
    $('.btn-employment-type-close').on("click", function(e){
-
 
1113
        e.preventDefault();
-
 
1114
        
-
 
1115
        $("#employment-type-box").modal('hide');
Línea 578... Línea 1116...
578
    });
1116
        return false;
579
 
1117
    });
580
 
1118
 
581
    var validatorSalary = $('#form-salary').validate({
1119
    var validatorSalary = $('#form-salary').validate({
Línea 1115... Línea 1653...
1115
            $('#form-experience #experience_max').val('5');
1653
            $('#form-experience #experience_max').val('5');
1116
            $('#form-experience #experience_min').prop('readonly', true);
1654
            $('#form-experience #experience_min').prop('readonly', true);
1117
            $('#form-experience #experience_max').prop('readonly', true);
1655
            $('#form-experience #experience_max').prop('readonly', true);
1118
       }
1656
       }
1119
    });
1657
    });
-
 
1658
 
-
 
1659
 
-
 
1660
    var validatorStatus = $('#form-status').validate({
-
 
1661
        debug: true,
-
 
1662
        onclick: false,
-
 
1663
        onkeyup: false,
-
 
1664
        ignore: [],
-
 
1665
        rules: {
-
 
1666
            'status': {
-
 
1667
                required: false,
-
 
1668
            },
-
 
1669
        },
-
 
1670
        submitHandler: function(form)
-
 
1671
        {
-
 
1672
            NProgress.start();
-
 
1673
            $.ajax({
-
 
1674
                'dataType'  : 'json',
-
 
1675
                'accept'    : 'application/json',
-
 
1676
                'method'    : 'post',
-
 
1677
                'url'       :  route_status,
-
 
1678
                'data'      :  $('#form-status').serialize()
-
 
1679
            }).done(function(response) {
-
 
1680
                if(response['success']) {
-
 
1681
					$('#overview-status').html(response['data']['status']);
-
 
1682
                    $("#status-box").modal('hide');
-
 
1683
                } else {
-
 
1684
                    validatorStatus.resetForm();
-
 
1685
                    if(jQuery.type(response['data']) == 'string') {
-
 
1686
                        $.fn.showError(response['data']);
-
 
1687
                    } else  {
-
 
1688
                        $.each(response['data'], function( fieldname, errors ) {
-
 
1689
                            $.fn.showFormErrorValidator('#form-status #' + fieldname, errors);
-
 
1690
                        });
-
 
1691
                    }
-
 
1692
                }
-
 
1693
            }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
1694
                $.fn.showError(textStatus);
-
 
1695
            }).always(function() {
-
 
1696
                NProgress.done();
-
 
1697
            });
-
 
1698
            return false;
-
 
1699
        },
-
 
1700
        invalidHandler: function(form, validator) {
-
 
1701
        
-
 
1702
        }
-
 
1703
    });
-
 
1704
    
-
 
1705
    $('.btn-status-edit').on("click", function(e){
-
 
1706
        e.preventDefault();
-
 
1707
        
-
 
1708
        NProgress.start();
-
 
1709
        $.ajax({
-
 
1710
            'dataType'  : 'json',
-
 
1711
            'accept'    : 'application/json',
-
 
1712
            'method'    : 'get',
-
 
1713
            'url'       : route_status,
-
 
1714
        }).done(function(response) {
-
 
1715
           if(response['success']) {
-
 
1716
                $('#form-status #status').val(response['data']['status']);
-
 
1717
                validatorStatus.resetForm();
-
 
1718
                $("#status-box").modal('show');
-
 
1719
            } else {
-
 
1720
                $.fn.showError(response['data']);
-
 
1721
            }
-
 
1722
        }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
1723
            $.fn.showError(textStatus);
-
 
1724
        }).always(function() {
-
 
1725
            NProgress.done();
-
 
1726
        });
-
 
1727
        return false;
-
 
1728
        
-
 
1729
    });
Línea -... Línea 1730...
-
 
1730
    
-
 
1731
    $('.btn-status-close').on("click", function(e){
-
 
1732
        e.preventDefault();
-
 
1733
        
-
 
1734
        $("#status-box").modal('hide');
-
 
1735
        return false;
Línea -... Línea 1736...
-
 
1736
    });
-
 
1737
    
-
 
1738
 
-
 
1739
    var validatorTitle = $('#form-title').validate({
-
 
1740
        debug: true,
-
 
1741
        onclick: false,
-
 
1742
        onkeyup: false,
-
 
1743
        ignore: [],
-
 
1744
        rules: {
-
 
1745
            'title': {
-
 
1746
                required: true,
-
 
1747
                maxlength: 128,
-
 
1748
            },
-
 
1749
        },
-
 
1750
        submitHandler: function(form)
-
 
1751
        {
-
 
1752
            NProgress.start();
-
 
1753
            $.ajax({
-
 
1754
                'dataType'  : 'json',
-
 
1755
                'accept'    : 'application/json',
-
 
1756
                'method'    : 'post',
-
 
1757
                'url'       :  route_title,
-
 
1758
                'data'      :  $('#form-title').serialize()
-
 
1759
            }).done(function(response) {
-
 
1760
                if(response['success']) {
-
 
1761
					$('#overview-title').html(response['data']['title']);
-
 
1762
                    $("#title-box").modal('hide');
-
 
1763
                } else {
-
 
1764
                    validatorTitle.resetForm();
-
 
1765
                    if(jQuery.type(response['data']) == 'string') {
-
 
1766
                        $.fn.showError(response['data']);
-
 
1767
                    } else  {
-
 
1768
                        $.each(response['data'], function( fieldname, errors ) {
-
 
1769
                            $.fn.showFormErrorValidator('#form-title #' + fieldname, errors);
-
 
1770
                        });
-
 
1771
                    }
-
 
1772
                }
-
 
1773
            }).fail(function( jqXHR, textTitle, errorThrown) {
-
 
1774
                $.fn.showError(textTitle);
-
 
1775
            }).always(function() {
-
 
1776
                NProgress.done();
-
 
1777
            });
-
 
1778
            return false;
-
 
1779
        },
-
 
1780
        invalidHandler: function(form, validator) {
-
 
1781
        
-
 
1782
        }
-
 
1783
    });
-
 
1784
    
-
 
1785
    $('.btn-title-edit').on("click", function(e){
-
 
1786
        e.preventDefault();
-
 
1787
        
-
 
1788
        NProgress.start();
-
 
1789
        $.ajax({
-
 
1790
            'dataType'  : 'json',
-
 
1791
            'accept'    : 'application/json',
-
 
1792
            'method'    : 'get',
-
 
1793
            'url'       : route_title,
-
 
1794
        }).done(function(response) {
-
 
1795
           if(response['success']) {
-
 
1796
                $('#form-title #title').val(response['data']['title'] );
-
 
1797
                validatorTitle.resetForm();
-
 
1798
                $("#title-box").modal('show');
-
 
1799
            } else {
-
 
1800
                $.fn.showError(response['data']);
-
 
1801
            }
-
 
1802
        }).fail(function( jqXHR, textTitle, errorThrown) {
-
 
1803
            $.fn.showError(textTitle);
-
 
1804
        }).always(function() {
-
 
1805
            NProgress.done();
-
 
1806
        });
-
 
1807
        return false;
-
 
1808
        
-
 
1809
    });
-
 
1810
    
-
 
1811
    $('.btn-title-close').on("click", function(e){
-
 
1812
        e.preventDefault();
-
 
1813
        
-
 
1814
        $("#title-box").modal('hide');
-
 
1815
        return false;
-
 
1816
    });
-
 
1817
 
-
 
1818
    $('h1.btn-edit-back').on("click", function(e){
-
 
1819
        e.preventDefault();
-
 
1820
 
-
 
1821
 
-
 
1822
        
-
 
1823
        $('#divEdit').hide();
-
 
1824
        $('#divListing').show();
-
 
1825
        return false;
-
 
1826
    });
-
 
1827
 
-
 
1828
 
-
 
1829
    CKEDITOR.replace('description', {
-
 
1830
        toolbar: [
-
 
1831
            { name: 'editing', items: [ 'Scayt' ] },
-
 
1832
            { name: 'links', items: [ 'Link', 'Unlink'] },
-
 
1833
            { name: 'paragraph', items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote' ] },
-
 
1834
            { name: 'basicstyles', items: [ 'Bold', 'Italic', 'Strike', 'RemoveFormat' ] },
-
 
1835
            '/',
-
 
1836
            { name: 'insert', items: [ 'Image', 'Table', 'HorizontalRule', 'SpecialChar' ] },
-
 
1837
            { name: 'styles', items: [ 'Styles', 'Format' ] },
-
 
1838
            { name: 'tools', items: [ 'Maximize' ] }
-
 
1839
        ],
-
 
1840
        removePlugins: 'elementspath,Anchor',
-
 
1841
        height: 100
-
 
1842
    });
-
 
1843
    
1120
    
1844
    autocompleteLocation.addListener('place_changed', $.fn.fillInAddressLocation);
1121
    
1845
    autocompleteLocationNew.addListener('place_changed', $.fn.fillInAddressNewLocation);
1122
});
1846
});
1123
JS;
-
 
1124
$this->inlineScript()->captureEnd();
-
 
1125
 
-
 
1126
$js = <<<JS
-
 
1127
const linksVars = {
-
 
1128
    link_add:"$routeAdd",
-
 
1129
    link_table: "$routeDatatable",
-
 
1130
    allowAdd: "$allowAdd",
-
 
1131
    allowDelete: "$allowDelete",
-
 
1132
    allowEdit: "$allowEdit",
-
 
1133
    allowUsersWhoApplied: "$allowUsersWhoApplied",
-
 
1134
    googleApi: "$google_map_key" 
-
 
1135
}
-
 
1136
JS;
-
 
1137
 
-
 
1138
$this->inlineScript()->appendScript($js);
-
 
1139
$this->headLink()->appendStylesheet('/react-bundles/jobs/main.css');
1847
JS;
Línea 1140... Línea 1848...
1140
$this->inlineScript()->appendFile('/react-bundles/jobs/jobsBundle.js');
1848
$this->inlineScript()->captureEnd();
1141
?>
1849
?>
-
 
1850
 
-
 
1851
<!-- Content Header (Page header) -->
-
 
1852
<div id="divListing">
-
 
1853
 
-
 
1854
    <section class="content-header">
-
 
1855
        <div class="container-fluid">
-
 
1856
            <div class="row mb-2">
-
 
1857
                <div class="col-sm-12">
-
 
1858
                    <h1>LABEL_JOBS</h1>
-
 
1859
                </div>
-
 
1860
            </div>
-
 
1861
        </div><!-- /.container-fluid -->
-
 
1862
    </section>
-
 
1863
 
-
 
1864
    <section class="content">
-
 
1865
        <div class="container-fluid">
-
 
1866
            <div class="row">
-
 
1867
                <div class="col-12">
-
 
1868
                    <div class="card">
-
 
1869
                        <div class="card-body">
-
 
1870
                            <table id="gridTable" class="table   table-hover">
-
 
1871
                                <thead>
-
 
1872
                                    <tr>
-
 
1873
 
-
 
1874
                                        <th>LABEL_LAST_DATE_OF_APPLICATION</th>
-
 
1875
                                        <th>LABEL_TITLE</th>
-
 
1876
                                        <th>LABEL_DETAILS</th>
-
 
1877
                                        <th>LABEL_ACTIONS</th>
-
 
1878
                                    </tr>
-
 
1879
                                </thead>
-
 
1880
                                <tbody>
-
 
1881
                                </tbody>
-
 
1882
                            </table>
-
 
1883
                        </div>
-
 
1884
                        <div class="card-footer clearfix">
-
 
1885
                            <div style="float:right;">
-
 
1886
                                <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
-
 
1887
                                <?php if ($allowAdd) : ?>
-
 
1888
                                    <button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
-
 
1889
                                <?php endif; ?>
-
 
1890
                            </div>
-
 
1891
                        </div>
-
 
1892
                    </div>
-
 
1893
                </div>
-
 
1894
            </div>
-
 
1895
        </div>
-
 
1896
    </section>
-
 
1897
</div>
-
 
1898
 
-
 
1899
<div id="divEdit" style="display: none">
-
 
1900
 
-
 
1901
    <section class="content-header">
-
 
1902
        <div class="container-fluid">
-
 
1903
            <div class="row mb-2">
-
 
1904
                <div class="col-sm-12">
-
 
1905
                    <h1 class="btn-edit-back"><i class="fa fa-chevron-left" aria-hidden="true"></i> LABEL_EDIT_JOB</h1>
-
 
1906
 
-
 
1907
                </div>
-
 
1908
            </div>
-
 
1909
        </div><!-- /.container-fluid -->
-
 
1910
    </section>
-
 
1911
 
-
 
1912
    <section class="content">
-
 
1913
        <div class="container-fluid">
-
 
1914
 
-
 
1915
            <div class="row">
-
 
1916
                <div class="col-lg-3">
-
 
1917
                </div>
-
 
1918
                <div class="col-lg-6">
-
 
1919
                    <div class="main-ws-sec">
-
 
1920
 
-
 
1921
                        <!--user-profile-ov end -->
-
 
1922
                        <div class="user-profile-ov">
-
 
1923
                            <h3>
-
 
1924
                                LABEL_STATUS <a href="#" title="" class="btn-status-edit"> <i class="fa fa-pencil"></i></a>
-
 
1925
                            </h3>
-
 
1926
                            <p id="overview-status"></p>
-
 
1927
                        </div>
-
 
1928
 
-
 
1929
                        <div class="user-profile-ov">
-
 
1930
                            <h3>LABEL_TITLE
-
 
1931
                                <a href="#" title="" class="btn-title-edit"><i class="fa fa-pencil"></i></a>
-
 
1932
                            </h3>
-
 
1933
                            <p id="overview-title"></p>
-
 
1934
                        </div>
-
 
1935
                        <div class="user-profile-ov">
-
 
1936
                            <h3>LABEL_OVERVIEW
-
 
1937
                                <a href="#" title="" class="btn-extended-edit"><i class="fa fa-pencil"></i></a>
-
 
1938
                            </h3>
-
 
1939
                            <p id="overview-description"></p>
-
 
1940
                        </div>
-
 
1941
                        <!--user-profile-ov end-->
-
 
1942
                        <div class="user-profile-ov st2">
-
 
1943
                            <h3>LABEL_LAST_DATE_OF_APPLICATION
-
 
1944
                                <a href="#" title="" class="btn-last-date-of-application-edit"><i class="fa fa-pencil"></i></a> <a href="#" title="" class="esp-bx-open"></a>
-
 
1945
                            </h3>
-
 
1946
                            <span id="overview-last-date-of-application"></span>
-
 
1947
                        </div>
-
 
1948
                        <!--user-profile-ov end-->
-
 
1949
                        <div class="user-profile-ov">
-
 
1950
                            <h3>LABEL_EMPLOYMENT_TYPE
-
 
1951
                                <a href="#" title="" class="btn-employment-type-edit"><i class="fa fa-pencil"></i></a>
-
 
1952
                            </h3>
-
 
1953
                            <span id="overview-employment-type"></span>
-
 
1954
                        </div>
-
 
1955
                        <!--user-profile-ov end-->
-
 
1956
                        <div class="user-profile-ov">
-
 
1957
                            <h3>
-
 
1958
                                <a href="#" title="">LABEL_LOCATION</a>
-
 
1959
                                <a href="#" title="" class="btn-location-edit"><i class="fa fa-pencil"></i></a>
-
 
1960
                            </h3>
-
 
1961
                            <span id="overview-location"></span>
-
 
1962
                        </div>
-
 
1963
                        <!--user-profile-ov end-->
-
 
1964
                        <div class="user-profile-ov">
-
 
1965
                            <h3>
-
 
1966
                                LABEL_EXPERIENCE
-
 
1967
                                <a href="#" title="" class="btn-experience-edit"><i class="fa fa-pencil"></i></a>
-
 
1968
                            </h3>
-
 
1969
                            <span id="overview-experience"> </span>
-
 
1970
                        </div>
-
 
1971
                        <!--user-profile-ov end-->
-
 
1972
                        <div class="user-profile-ov">
-
 
1973
                            <h3>
-
 
1974
                                LABEL_SALARY
-
 
1975
                                <a href="#" title="" class="btn-salary-edit"><i class="fa fa-pencil"></i></a>
-
 
1976
                            </h3>
-
 
1977
                            <span id="overview-salary"></span>
-
 
1978
                        </div>
-
 
1979
                        <!--user-profile-ov end-->
-
 
1980
                        <div class="user-profile-ov">
-
 
1981
                            <h3>
-
 
1982
                                LABEL_CATEGORIE
-
 
1983
                                <a href="#" title="" class="btn-job-category-edit"><i class="fa fa-pencil"></i></a>
-
 
1984
                            </h3>
-
 
1985
                            <span id="overview-job-category"></span>
-
 
1986
                        </div>
-
 
1987
                        <!--user-profile-ov end-->
-
 
1988
                        <div class="user-profile-ov">
-
 
1989
                            <h3>
-
 
1990
                                LABEL_SKILLS <a href="#" title="" class="btn-skills-edit"> <i class="fa fa-pencil"></i></a>
-
 
1991
                            </h3>
-
 
1992
                            <ul id="list-skills">
-
 
1993
 
-
 
1994
 
-
 
1995
                            </ul>
-
 
1996
                        </div>
-
 
1997
                        <!--user-profile-ov end -->
-
 
1998
                        <div class="user-profile-ov">
-
 
1999
                            <h3>
-
 
2000
                                LABEL_LANGUAGES <a href="#" title="" class="btn-languages-edit"> <i class="fa fa-pencil"></i></a>
-
 
2001
                            </h3>
-
 
2002
                            <ul id="list-languages">
-
 
2003
 
-
 
2004
 
-
 
2005
                            </ul>
-
 
2006
                        </div>
-
 
2007
                        <!--user-profile-ov end -->
-
 
2008
                        <div class="user-profile-ov">
-
 
2009
                            <h3>
-
 
2010
                                LABEL_DEGREES <a href="#" title="" class="btn-degrees-edit"> <i class="fa fa-pencil"></i></a>
-
 
2011
                            </h3>
-
 
2012
                            <ul id="list-degrees">
-
 
2013
 
-
 
2014
 
Línea -... Línea 2015...
-
 
2015
                            </ul>
-
 
2016
                        </div>
-
 
2017
 
-
 
2018
 
-
 
2019
 
-
 
2020
                    </div>
-
 
2021
                </div>
-
 
2022
                <div class="col-lg-3">
Línea 1142... Línea 2023...
1142
 
2023
                </div>
1143
<!-- Content Header (Page header) -->
2024
            </div>
1144
<div id="jobs"></div>
2025
        </div>
1145
 
2026
    </section>
Línea 1276... Línea 2157...
1276
 
2157
 
1277
        </div>
2158
        </div>
1278
    </div>
2159
    </div>
Línea -... Línea 2160...
-
 
2160
</div>
-
 
2161
 
-
 
2162
<div class="modal" tabindex="-1" role="dialog" id="extended-box">
-
 
2163
    <div class="modal-dialog" role="document">
-
 
2164
        <?php
-
 
2165
        $form = $this->formExtended;
-
 
2166
        $form->setAttributes([
-
 
2167
            'method' => 'post',
-
 
2168
            'name' => 'form-extended',
-
 
2169
            'id' => 'form-extended'
-
 
2170
        ]);
-
 
2171
        $form->prepare();
-
 
2172
        echo $this->form()->openTag($form);
-
 
2173
        ?>
-
 
2174
        <div class="modal-content">
-
 
2175
            <div class="modal-header">
-
 
2176
                <h3 class="modal-title">LABEL_OVERVIEW</h3>
-
 
2177
            </div>
-
 
2178
            <div class="modal-body">
-
 
2179
                <div class="form-group">
-
 
2180
                    <?php
-
 
2181
                    $element = $form->get('description');
-
 
2182
                    $element->setOptions(['label' => 'LABEL_OVERVIEW']);
-
 
2183
                    $element->setAttributes(['class' => 'form-control']);
-
 
2184
                    echo $this->formLabel($element);
-
 
2185
                    echo $this->formTextArea($element);
-
 
2186
                    ?>
-
 
2187
                </div>
-
 
2188
            </div>
-
 
2189
            <div class="modal-footer">
-
 
2190
                <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
2191
                <button type="button" class="btn btn-default btn-extended-close">LABEL_CANCEL</button>
-
 
2192
            </div>
-
 
2193
            <?php echo $this->form()->closeTag($form); ?>
-
 
2194
        </div>
-
 
2195
    </div>
-
 
2196
</div>
-
 
2197
 
-
 
2198
<div class="modal" tabindex="-1" role="dialog" id="location-box">
-
 
2199
    <div class="modal-dialog" role="document">
-
 
2200
        <?php
-
 
2201
        $form = $this->formLocation;
-
 
2202
        $form->setAttributes([
-
 
2203
            'method' => 'post',
-
 
2204
            'name' => 'form-location',
-
 
2205
            'id' => 'form-location'
-
 
2206
        ]);
-
 
2207
        $form->prepare();
-
 
2208
        echo $this->form()->openTag($form);
-
 
2209
 
-
 
2210
        $fieldnames = [
-
 
2211
            'formatted_address',
-
 
2212
            'address1',
-
 
2213
            'address2',
-
 
2214
            'country',
-
 
2215
            'state',
-
 
2216
            'city1',
-
 
2217
            'city2',
-
 
2218
            'postal_code',
-
 
2219
            'latitude',
-
 
2220
            'longitude',
-
 
2221
        ];
-
 
2222
 
-
 
2223
        foreach ($fieldnames as $fieldname) {
-
 
2224
 
-
 
2225
            $element = $form->get($fieldname);
-
 
2226
            echo $this->formHidden($element);
-
 
2227
        }
-
 
2228
        ?>
-
 
2229
        <div class="modal-content">
-
 
2230
            <div class="modal-header">
-
 
2231
                <h3 class="modal-title">LABEL_LOCATION</h3>
-
 
2232
            </div>
-
 
2233
            <div class="modal-body">
-
 
2234
                <div class="form-group datefm">
-
 
2235
                    <?php
-
 
2236
                    $element = $form->get('location_search');
-
 
2237
                    $element->setOptions(['label' => 'LABEL_LOCATION']);
-
 
2238
                    $element->setAttributes(['class' => 'form-control']);
-
 
2239
                    echo $this->formLabel($element);
-
 
2240
                    echo $this->formText($element);
-
 
2241
                    ?>
-
 
2242
                    <i class="fa fa-map-marker"></i>
-
 
2243
                </div>
-
 
2244
            </div>
-
 
2245
            <div class="modal-footer">
-
 
2246
                <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
2247
                <button type="button" class="btn btn-default btn-location-close">LABEL_CANCEL</button>
-
 
2248
            </div>
-
 
2249
            <?php echo $this->form()->closeTag($form); ?>
-
 
2250
        </div>
-
 
2251
    </div>
-
 
2252
</div>
-
 
2253
 
-
 
2254
<div class="modal" tabindex="-1" role="dialog" id="employment-type-box">
-
 
2255
    <div class="modal-dialog" role="document">
-
 
2256
        <?php
-
 
2257
        $form = $this->formEmploymentType;
-
 
2258
        $form->setAttributes([
-
 
2259
            'method' => 'post',
-
 
2260
            'name' => 'form-employment-type',
-
 
2261
            'id' => 'form-employment-type'
-
 
2262
        ]);
-
 
2263
        $form->prepare();
-
 
2264
        echo $this->form()->openTag($form);
-
 
2265
        ?>
-
 
2266
        <div class="modal-content">
-
 
2267
            <div class="modal-header">
-
 
2268
                <h3 class="modal-title">LABEL_EMPLOYMENT_TYPE</h3>
-
 
2269
            </div>
-
 
2270
            <div class="modal-body">
-
 
2271
                <div class="form-group">
-
 
2272
                    <?php
-
 
2273
                    $element = $form->get('employment_type');
-
 
2274
                    $element->setOptions(['label' => 'LABEL_EMPLOYMENT_TYPE']);
-
 
2275
                    $element->setAttributes(['class' => 'form-control']);
-
 
2276
                    echo $this->formLabel($element);
-
 
2277
                    echo $this->formSelect($element);
-
 
2278
                    ?>
-
 
2279
                </div>
-
 
2280
            </div>
-
 
2281
            <div class="modal-footer">
-
 
2282
                <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
2283
                <button type="button" class="btn btn-default btn-employment-type-close">LABEL_CANCEL</button>
-
 
2284
            </div>
-
 
2285
            <?php echo $this->form()->closeTag($form); ?>
-
 
2286
        </div>
-
 
2287
    </div>
1279
</div>
2288
</div>
1280
 
2289
 
1281
<div class="modal" tabindex="-1" role="dialog" id="job-category-box">
2290
<div class="modal" tabindex="-1" role="dialog" id="job-category-box">
1282
    <div class="modal-dialog" role="document">
2291
    <div class="modal-dialog" role="document">
1283
        <?php
2292
        <?php
Línea 1499... Línea 2508...
1499
            <?php echo $this->form()->closeTag($form); ?>
2508
            <?php echo $this->form()->closeTag($form); ?>
1500
        </div>
2509
        </div>
1501
    </div>
2510
    </div>
1502
</div>
2511
</div>
Línea -... Línea 2512...
-
 
2512
 
-
 
2513
<div class="modal" tabindex="-1" role="dialog" id="last-date-of-application-box">
-
 
2514
    <div class="modal-dialog" role="document">
-
 
2515
        <?php
-
 
2516
        $form = $this->fromLastDateOfApplication;
-
 
2517
        $form->setAttributes([
-
 
2518
            'method' => 'post',
-
 
2519
            'name' => 'form-last-date-of-application',
-
 
2520
            'id' => 'form-last-date-of-application'
-
 
2521
        ]);
-
 
2522
        $form->prepare();
-
 
2523
        echo $this->form()->openTag($form);
-
 
2524
        ?>
-
 
2525
        <div class="modal-content">
-
 
2526
            <div class="modal-header">
-
 
2527
                <h3 class="modal-title">LABEL_LAST_DATE_OF_APPLICATION</h3>
-
 
2528
            </div>
-
 
2529
            <div class="modal-body">
-
 
2530
                <div class="form-group">
-
 
2531
                    <?php
-
 
2532
                    $element = $form->get('last_date_of_application');
-
 
2533
                    $element->setOptions(['label' => 'LABEL_LAST_DATE_OF_APPLICATION']);
-
 
2534
                    $element->setAttributes(['class' => 'form-control']);
-
 
2535
                    echo $this->formLabel($element);
-
 
2536
                    echo $this->formText($element);
-
 
2537
                    ?>
-
 
2538
                </div>
-
 
2539
            </div>
-
 
2540
            <div class="modal-footer">
-
 
2541
                <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
2542
                <button type="button" class="btn btn-default btn-last-date-of-application-close">LABEL_CANCEL</button>
-
 
2543
            </div>
-
 
2544
            <?php echo $this->form()->closeTag($form); ?>
-
 
2545
        </div>
-
 
2546
    </div>
-
 
2547
</div>
1503
 
2548
 
1504
<div class="modal" tabindex="-1" role="dialog" id="degrees-box">
2549
<div class="modal" tabindex="-1" role="dialog" id="degrees-box">
1505
    <div class="modal-dialog" role="document">
2550
    <div class="modal-dialog" role="document">
1506
        <?php
2551
        <?php
1507
        $form = $this->formDegree;
2552
        $form = $this->formDegree;
Línea 1533... Línea 2578...
1533
                <button type="button" class="btn btn-default btn-degrees-close">LABEL_CANCEL</button>
2578
                <button type="button" class="btn btn-default btn-degrees-close">LABEL_CANCEL</button>
1534
            </div>
2579
            </div>
1535
            <?php echo $this->form()->closeTag($form); ?>
2580
            <?php echo $this->form()->closeTag($form); ?>
1536
        </div>
2581
        </div>
1537
    </div>
2582
    </div>
-
 
2583
</div>
-
 
2584
 
-
 
2585
<div class="modal" tabindex="-1" role="dialog" id="status-box">
-
 
2586
    <div class="modal-dialog" role="document">
-
 
2587
        <?php
-
 
2588
        $form = $this->formStatus;
-
 
2589
        $form->setAttributes([
-
 
2590
            'method' => 'post',
-
 
2591
            'name' => 'form-status',
-
 
2592
            'id' => 'form-status'
-
 
2593
        ]);
-
 
2594
        $form->prepare();
-
 
2595
        echo $this->form()->openTag($form);
-
 
2596
        ?>
-
 
2597
        <div class="modal-content">
-
 
2598
            <div class="modal-header">
-
 
2599
                <h3 class="modal-title">LABEL_STATUS</h3>
-
 
2600
            </div>
-
 
2601
            <div class="modal-body">
-
 
2602
                <div class="form-group">
-
 
2603
                    <?php
-
 
2604
                    $element = $form->get('status');
-
 
2605
                    $element->setOptions(['label' => 'LABEL_STATUS']);
-
 
2606
                    $element->setAttributes(['class' => 'form-control']);
-
 
2607
                    echo $this->formLabel($element);
-
 
2608
                    echo $this->formSelect($element);
-
 
2609
                    ?>
-
 
2610
                </div>
-
 
2611
            </div>
-
 
2612
 
-
 
2613
 
-
 
2614
            <div class="modal-footer">
-
 
2615
                <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
2616
                <button type="button" class="btn btn-default btn-status-close">LABEL_CANCEL</button>
-
 
2617
            </div>
-
 
2618
            <?php echo $this->form()->closeTag($form); ?>
-
 
2619
        </div>
-
 
2620
    </div>
-
 
2621
</div>
-
 
2622
 
-
 
2623
<div class="modal" tabindex="-1" role="dialog" id="title-box">
-
 
2624
    <div class="modal-dialog" role="document">
-
 
2625
        <?php
-
 
2626
        $form = $this->formTitle;
-
 
2627
        $form->setAttributes([
-
 
2628
            'method' => 'post',
-
 
2629
            'name' => 'form-title',
-
 
2630
            'id' => 'form-title'
-
 
2631
        ]);
-
 
2632
        $form->prepare();
-
 
2633
        echo $this->form()->openTag($form);
-
 
2634
        ?>
-
 
2635
        <div class="modal-content">
-
 
2636
            <div class="modal-header">
-
 
2637
                <h3 class="modal-title">LABEL_TITLE</h3>
-
 
2638
            </div>
-
 
2639
            <div class="modal-body">
-
 
2640
                <div class="form-group">
-
 
2641
                    <?php
-
 
2642
                    $element = $form->get('title');
-
 
2643
                    $element->setOptions(['label' => 'LABEL_TITLE']);
-
 
2644
                    $element->setAttributes(['class' => 'form-control']);
-
 
2645
                    echo $this->formLabel($element);
-
 
2646
                    echo $this->formText($element);
-
 
2647
                    ?>
-
 
2648
                </div>
-
 
2649
            </div>
-
 
2650
 
-
 
2651
 
-
 
2652
            <div class="modal-footer">
-
 
2653
                <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
2654
                <button type="button" class="btn btn-default btn-title-close">LABEL_CANCEL</button>
-
 
2655
            </div>
-
 
2656
            <?php echo $this->form()->closeTag($form); ?>
-
 
2657
        </div>
-
 
2658
    </div>
1538
</div>
2659
</div>
1539
2660