Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 7773 Rev 7774
Línea 102... Línea 102...
102
       var route_experience = '';
102
       var route_experience = '';
103
       var route_languages =  '';
103
       var route_languages =  '';
104
       var route_degrees = '';
104
       var route_degrees = '';
105
       var route_skills =  '';
105
       var route_skills =  '';
106
       var route_last_date_of_application =  '';
106
       var route_last_date_of_application =  '';
107
                                
-
 
108
 
-
 
Línea 109... Línea 107...
109
 
107
 
110
        var allowDelete = $allowDelete;
108
        var allowDelete = $allowDelete;
111
        var allowEdit = $allowEdit;
109
        var allowEdit = $allowEdit;
Línea 112... Línea -...
112
        var allowUsersWhoApplied = $allowUsersWhoApplied;
-
 
113
        
-
 
114
        var gridTable = $('#gridTable').dataTable( {
-
 
115
            'processing': true,
-
 
116
            'serverSide': true,
-
 
117
            'searching': true,
-
 
118
            'order': [[ 0, 'desc' ]],
-
 
119
            'ordering':  true,
-
 
120
            'ordenable' : true,
-
 
121
            'responsive': true,
-
 
122
            'select' : false,
-
 
123
        	'paging': true,
-
 
124
            'pagingType': 'simple_numbers',
-
 
125
 
-
 
126
    		'ajax': {
-
 
127
    			'url' : '$routeDatatable',
-
 
128
    			'type' : 'get',
-
 
129
                'beforeSend': function (request) {
-
 
130
                  NProgress.start();
-
 
131
                },
-
 
132
                'dataFilter': function(response) {
-
 
133
                    var response = jQuery.parseJSON( response );
-
 
134
                    
-
 
135
                    var json                = {};
-
 
136
                    json.recordsTotal       = 0;
-
 
137
                    json.recordsFiltered    = 0;
-
 
138
                    json.data               = [];
-
 
139
                    
-
 
140
                    if(response.success) {
-
 
141
                        json.recordsTotal       = response.data.total;
-
 
142
                        json.recordsFiltered    = response.data.total;
-
 
143
                        json.data               = response.data.items;
-
 
144
                    } else {
-
 
145
                        $.fn.showError(response.data)
-
 
146
                    }
-
 
147
                    
-
 
148
                    return JSON.stringify( json );
-
 
149
                }
-
 
150
    		},
-
 
151
            'language' : {
-
 
152
                'sProcessing':     'LABEL_DATATABLE_SPROCESSING',
-
 
153
                'sLengthMenu':     'LABEL_DATATABLE_SLENGTHMENU',
-
 
154
                'sZeroRecords':    'LABEL_DATATABLE_SZERORECORDS',
-
 
155
                'sEmptyTable':     'LABEL_DATATABLE_SEMPTYTABLE',
-
 
156
                'sInfo':           'LABEL_DATATABLE_SINFO',
-
 
157
                'sInfoEmpty':      'LABEL_DATATABLE_SINFOEMPTY',
-
 
158
                'sInfoFiltered':   'LABEL_DATATABLE_SINFOFILTERED',
-
 
159
                'sInfoPostFix':    '',
-
 
160
                'sSearch':         'LABEL_DATATABLE_SSEARCH',
-
 
161
                'sUrl':            '',
-
 
162
                'sInfoThousands':  ',',
-
 
163
                'sLoadingRecords': 'LABEL_DATATABLE_SLOADINGRECORDS',
-
 
164
                'oPaginate': {
-
 
165
                    'sFirst':    'LABEL_DATATABLE_SFIRST',
-
 
166
                    'sLast':     'LABEL_DATATABLE_SLAST',
-
 
167
                    'sNext':     'LABEL_DATATABLE_SNEXT',
-
 
168
                    'sPrevious': 'LABEL_DATATABLE_SPREVIOUS'
-
 
169
                },
-
 
170
                'oAria': {
-
 
171
                    'sSortAscending':  ': LABEL_DATATABLE_SSORTASCENDING',
-
 
172
                    'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
-
 
173
                },
-
 
174
            },
-
 
175
            'drawCallback': function( settings ) {
-
 
176
                NProgress.done();
-
 
177
                $('button.btn-delete').confirmation({
-
 
178
                    rootSelector: 'button.btn-delete',
-
 
179
                    title : 'LABEL_ARE_YOU_SURE',
-
 
180
                    singleton : true,
-
 
181
                    btnOkLabel: 'LABEL_YES',
-
 
182
                    btnCancelLabel: 'LABEL_NO',
-
 
183
                    onConfirm: function(value) {
-
 
184
                        action = $(this).data('href');
-
 
185
                        NProgress.start();
-
 
186
                        $.ajax({
-
 
187
                            'dataType'  : 'json',
-
 
188
                            'accept'    : 'application/json',
-
 
189
                            'method'    : 'post',
-
 
190
                            'url'       :  action,
-
 
191
                        }).done(function(response) {
-
 
192
                            if(response['success']) {
-
 
193
                                $.fn.showSuccess(response['data']);
-
 
194
                                gridTable.api().ajax.reload(null, false);
-
 
195
                            } else {
-
 
196
                                $.fn.showError(response['data']);
-
 
197
                            }
-
 
198
                        }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
199
                            $.fn.showError(textStatus);
-
 
200
                        }).always(function() {
-
 
201
                            NProgress.done();
-
 
202
                        });
-
 
203
                    },
-
 
204
                });
-
 
205
            },
-
 
206
            'aoColumns': [
-
 
207
                { 'mDataProp': 'last_date_of_application' },
-
 
208
                { 'mDataProp': 'title' }, 
-
 
209
                { 'mDataProp': 'details' },
-
 
210
                { 'mDataProp': 'actions' },
-
 
211
    	    ],
-
 
212
            'columnDefs': [
-
 
213
 
-
 
214
                {
-
 
215
                    'targets': -2,
-
 
216
                    'orderable': false,
-
 
217
                    'render' : function ( data, type, row ) {
-
 
218
                        var s = 'LABEL_STATUS : ' + row['details']['status'] + '<br>';
-
 
219
                        s = s + 'LABEL_EMPLOYMENT_TYPE : <br>' + row['details']['employment_type'] + '<br>';
-
 
220
                        s = s +  'LABEL_QTY_USERS_WHO_APPLIED : ' + row['details']['users_who_applied'] + '<br>';
-
 
221
 
-
 
222
                        return s;
-
 
223
                    }
-
 
224
                },
-
 
225
 
-
 
226
                {
-
 
227
                    'targets': -1,
-
 
228
                    'orderable': false,
-
 
229
                    'render' : function ( data, type, row ) {
-
 
230
                        s = '';
-
 
231
                        
-
 
232
                        if(allowEdit && data['link_edit']  ) {
-
 
233
                            s = s + '<button class="btn btn-info btn-sm btn-edit" style="margin-top: 5px" data-href="' + data['link_edit']+ '" data-toggle="tooltip" title="LABEL_EDIT"><i class="fa fa-pencil"></i> LABEL_EDIT </button><br>';
-
 
234
                        }
-
 
235
                        if(allowDelete && data['link_delete']  ) {
-
 
236
                            s = s + '<button class="btn btn-danger btn-sm btn-delete" style="margin-top: 5px" data-href="' + data['link_delete']+ '" data-toggle="tooltip" title="LABEL_DELETE"><i class="fa fa-trash"></i> LABEL_DELETE </button><br>';
-
 
237
                        }
-
 
238
                        if(allowUsersWhoApplied && data['link_users_who_applied']  ) {
-
 
239
                            s = s + '<button class="btn btn-primary btn-sm btn-users-who-applied" style="margin-top: 5px" data-href="' + data['link_users_who_applied']+ '" data-toggle="tooltip" title="LABEL_USERS_WHO_APPLIED"><i class="fa fa-users"></i> LABEL_USERS_WHO_APPLIED </button><br>';
-
 
240
                        }
-
 
241
 
-
 
242
                        return s;
-
 
243
                    }
-
 
244
                }
-
 
Línea 245... Línea 110...
245
              ],
110
        var allowUsersWhoApplied = $allowUsersWhoApplied;
246
        });
111
        
247
 
112
 
248
    $.validator.addMethod('greaterThanFloat', function (value, element, param) {
113
    $.validator.addMethod('greaterThanFloat', function (value, element, param) {
Línea 402... Línea 267...
402
        invalidHandler: function(form, validator) {
267
        invalidHandler: function(form, validator) {
Línea 403... Línea 268...
403
            
268
            
404
        }
269
        }
Línea 405... Línea -...
405
    });
-
 
406
 
-
 
407
    $('body').on('click', 'button.btn-edit', function(e) {
-
 
408
        e.preventDefault();
-
 
409
 
-
 
410
        var href = $(this).data('href');
-
 
411
 
-
 
412
        NProgress.start();
-
 
413
            $.ajax({
-
 
414
                'dataType'  : 'json',
-
 
415
                'accept'    : 'application/json',
-
 
416
                'method'    : 'get',
-
 
417
                'url'       :  href,
-
 
418
            }).done(function(response) {
-
 
419
                if(response['success']) {
-
 
420
                    $('#add-job-box').modal('hide');
-
 
421
                    gridTable.api().ajax.reload(null, false);
-
 
422
 
-
 
423
                    $('#overview-title').html(response['data']['title']);
-
 
424
                    $('#overview-job-category').html(response['data']['job_category']);
-
 
425
					$('#overview-last-date-of-application').html(response['data']['last_date_of_application']);
-
 
426
					$('#overview-employment-type').html(response['data']['employment_type']);
-
 
427
                    $('#overview-location').html(response['data']['location']);
-
 
428
 
-
 
429
                    $('#overview-status').html(response['data']['status']);
-
 
430
                    $('#overview-description').html(response['data']['description']);					
-
 
431
 
-
 
432
                    
-
 
433
                    if(response['data']['salary']) {
-
 
434
					   $('#overview-salary').html(response['data']['salary']);
-
 
435
                    } else {
-
 
436
                       $('#overview-salary').html('')
-
 
437
                    } 
-
 
438
 
-
 
439
                    if(response['data']['experience']) {
-
 
440
					   $('#overview-experience').html(response['data']['experience'] + ' LABEL_YEARS');
-
 
441
                    } else {
-
 
442
                       $('#overview-experience').html('')
-
 
443
                    } 
-
 
444
 
-
 
445
 
-
 
446
 
-
 
447
                    $('#list-skills').empty();
-
 
448
                    $.each(response['data']['skills'], function(i, name) {
-
 
449
                        $('#list-skills').append('<li>' + name + '</li>');
-
 
450
                    });
-
 
451
 
-
 
452
                    $('#list-languages').empty();
-
 
453
                    $.each(response['data']['languages'], function(i, name) {
-
 
454
                        $('#list-languages').append('<li>' + name + '</li>');
-
 
455
                    });
-
 
456
 
-
 
457
                    $('#list-degrees').empty();
-
 
458
                    $.each(response['data']['degrees'], function(i, name) {
-
 
459
                        $('#list-degrees').append('<li>' + name + '</li>');
-
 
460
                    });
-
 
461
 
-
 
462
 
-
 
463
                    route_status =  response['data']['route_status'];
-
 
464
                    route_title =   response['data']['route_title'];
-
 
465
                    route_extended =   response['data']['route_extended'];
-
 
466
                    route_location =   response['data']['route_location'];
-
 
467
                    route_job_category =   response['data']['route_job_category'];
-
 
468
                    route_employment_type =   response['data']['route_employment_type'];
-
 
469
                    route_salary =   response['data']['route_salary'];
-
 
470
                    route_experience =  response['data']['route_experience'];
-
 
471
                    route_languages =   response['data']['route_languages'];
-
 
472
                    route_degrees =  response['data']['route_degrees'];
-
 
473
                    route_skills =   response['data']['route_skills'];
-
 
474
                    route_last_date_of_application =   response['data']['route_last_date_of_application'];
-
 
475
                    
-
 
476
 
-
 
477
                    $('#divListing').hide();
-
 
478
                    $('#divEdit').show();
-
 
479
 
-
 
480
                } else {
-
 
481
                    validatorAdd.resetForm();
-
 
482
                    if(jQuery.type(response['data']) == 'string') {
-
 
483
                        $.fn.showError(response['data']);
-
 
484
                    } else  {
-
 
485
                        $.each(response['data'], function( fieldname, errors ) {
-
 
486
                            $.fn.showFormErrorValidator('#form-add #' + fieldname, errors);
-
 
487
                        });
-
 
488
                    }
-
 
489
                }
-
 
490
            }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
491
                $.fn.showError(textStatus);
-
 
492
            }).always(function() {
-
 
493
                NProgress.done();
-
 
494
            });
-
 
495
            return false;
-
 
496
    });
-
 
497
 
-
 
498
 
270
    });
499
 
271
 
500
    $(".close-box, .btn-add-job-cancel").on("click", function(e){
272
    $(".close-box, .btn-add-job-cancel").on("click", function(e){
501
        e.preventDefault();
273
        e.preventDefault();
502
        $('#add-job-box').modal('hide');
274
        $('#add-job-box').modal('hide');
Línea 526... Línea 298...
526
 
298
 
527
        $('#add-job-box').modal('show');
299
        $('#add-job-box').modal('show');
528
        return false;
300
        return false;
Línea 529... Línea -...
529
    });
-
 
530
 
-
 
531
    $('#form-add #last_date_of_application').datetimepicker({
-
 
532
        //viewMode: 'years',
-
 
533
        locale: 'es',
-
 
534
        format: 'DD/MM/YYYY'
-
 
Línea 535... Línea 301...
535
    });
301
    });
536
 
302
 
Línea 537... Línea 303...
537
 
303
 
Línea 581... Línea 347...
581
        });
347
        });
582
        return false;
348
        return false;
Línea 583... Línea 349...
583
 
349
 
Línea 584... Línea -...
584
    });
-
 
585
 
-
 
586
 var validatorLocation = $('#form-location').validate({
-
 
587
        debug: true,
-
 
588
        onclick: false,
-
 
589
        onkeyup: false,
-
 
590
        onfocusout: false,
-
 
591
        ignore: [],
-
 
592
        rules: {
-
 
593
            'location_search': {
-
 
594
                required: true,
-
 
595
                checkLocation: '#form-location #latitude'
-
 
596
            }
-
 
597
        },
-
 
598
        submitHandler: function(form)
-
 
599
        {
-
 
600
            NProgress.start();
-
 
601
            $.ajax({
-
 
602
                'dataType'  : 'json',
-
 
603
                'accept'    : 'application/json',
-
 
604
                'method'    : 'post',
-
 
605
                'url'       :  route_location,
-
 
606
                'data'      :  $('#form-location').serialize(),
-
 
607
            }).done(function(response) {
-
 
608
 
-
 
609
 
-
 
610
 
-
 
611
                if(response['success']) {
-
 
612
                    $('#overview-location').html(response.data);
-
 
613
                    $("#location-box").modal('hide');
-
 
614
                } else {
-
 
615
                    validatorLocation.resetForm();
-
 
616
                    $.fn.showError(response['data']);
-
 
617
                }
-
 
618
            }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
619
                $.fn.showError(textStatus);
-
 
620
            }).always(function() {
-
 
621
                NProgress.done();
-
 
622
            });
-
 
623
            return false;
-
 
624
        },
-
 
625
        invalidHandler: function(form, validator) {
-
 
626
        
-
 
627
        }
-
 
628
    });
-
 
629
 
-
 
630
    
-
 
631
    $('body').on('click', 'a.btn-location-edit', function(e) {
-
 
632
        e.preventDefault();
-
 
633
        
-
 
634
        $('#form-location #location_search').val('');
-
 
635
        $('#form-location #formatted_address').val('');
-
 
636
        $('#form-location #address1').val('');
-
 
637
        $('#form-location #address2').val('');
-
 
638
        $('#form-location #country').val('');
-
 
639
        $('#form-location #state').val('');
-
 
640
        $('#form-location #city1').val('');
-
 
641
        $('#form-location #city2').val('');
-
 
642
        $('#form-location #postal_code').val('');
-
 
643
        $('#form-location #latitude').val('');
-
 
644
        $('#form-location #longitude').val('');
-
 
645
        validatorLocation.resetForm();
-
 
646
        
-
 
647
        $("#location-box").modal('show');
-
 
648
    });
-
 
649
    
-
 
650
    $('.btn-location-close').on("click", function(e){
-
 
651
        e.preventDefault();
-
 
652
        
-
 
653
        $("#location-box").modal('hide');
-
 
654
        return false;
-
 
655
    });
-
 
656
    
-
 
657
 
-
 
658
    
-
 
659
 
-
 
660
    var validatorLastDateOfApplication = $('#form-last-date-of-application').validate({
-
 
661
        debug: true,
-
 
662
        onclick: false,
-
 
663
        onkeyup: false,
-
 
664
        onfocusout: false,
-
 
665
        ignore: [],
-
 
666
        rules: {
-
 
667
            'last_date_of_application': {
-
 
668
                required: true,
-
 
669
            },
-
 
670
        },
-
 
671
        
-
 
672
        submitHandler: function(form)
-
 
673
        {
-
 
674
            NProgress.start();
-
 
675
            $.ajax({
-
 
676
                'dataType'  : 'json',
-
 
677
                'accept'    : 'application/json',
-
 
678
                'method'    : 'post',
-
 
679
                'url'       :  route_last_date_of_application,
-
 
680
                'data'      :  $('#form-last-date-of-application').serialize()
-
 
681
            }).done(function(response) {
-
 
682
                if(response['success']) {
-
 
683
                
-
 
684
                    $('#overview-last-date-of-application').html(response['data']);
-
 
685
                    $("#last-date-of-application-box").modal('hide');
-
 
686
                } else {
-
 
687
                    validatorLastDateOfApplication.resetForm();
-
 
688
                    if(jQuery.type(response['data']) == 'string') {
-
 
689
                        $.fn.showError(response['data']);
-
 
690
                    } else  {
-
 
691
                        $.each(response['data'], function( fieldname, errors ) {
-
 
692
                            $.fn.showFormErrorValidator('#form-last-date-of-application #' + fieldname, errors);
-
 
693
                        });
-
 
694
                    }
-
 
695
                }
-
 
696
            }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
697
                $.fn.showError(textStatus);
-
 
698
            }).always(function() {
-
 
699
                NProgress.done();
-
 
700
            });
-
 
701
            return false;
-
 
702
        },
-
 
703
        invalidHandler: function(form, validator) {
-
 
704
        
-
 
705
        }
-
 
706
    });
-
 
707
    
-
 
708
    
-
 
709
    $('.btn-last-date-of-application-edit').on("click", function(e){
-
 
710
        e.preventDefault();
-
 
711
        
-
 
712
        NProgress.start();
-
 
713
        $.ajax({
-
 
714
            'dataType'  : 'json',
-
 
715
            'accept'    : 'application/json',
-
 
716
            'method'    : 'get',
-
 
717
            'url'       : route_last_date_of_application,
-
 
718
        }).done(function(response) {
-
 
719
           if(response['success']) {
-
 
720
                $('#form-last-date-of-application #last_date_of_application').val(response['data']);
-
 
721
                validatorLastDateOfApplication.resetForm();
-
 
722
                
-
 
723
                $("#last-date-of-application-box").modal('show');
-
 
724
            } else {
-
 
725
                $.fn.showError(response['data']);
-
 
726
            }
-
 
727
        }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
728
            $.fn.showError(textStatus);
-
 
729
        }).always(function() {
-
 
730
            NProgress.done();
-
 
731
        });
-
 
732
        return false;
-
 
733
        
-
 
734
    });
-
 
735
    
-
 
736
    $('.btn-last-date-of-application-close').on("click", function(e){
-
 
737
        e.preventDefault();
-
 
738
        
-
 
739
        $("#last-date-of-application-box").modal('hide');
-
 
740
        return false;
-
 
741
    });
-
 
742
    
-
 
743
    
-
 
744
    var validatorExtended = $('#form-extended').validate({
-
 
745
        debug: true,
-
 
746
        onclick: false,
-
 
747
        onkeyup: false,
-
 
748
        onfocusout: false,
-
 
749
        ignore: [],
-
 
750
        rules: {
-
 
751
            'description': {
-
 
752
                updateCkeditor:function() {
-
 
753
                        CKEDITOR.instances.description.updateElement();
-
 
754
                },
-
 
755
                required: false,
-
 
756
            },
-
 
757
        },
-
 
758
        
-
 
759
        submitHandler: function(form)
-
 
760
        {
-
 
761
            NProgress.start();
-
 
762
            $.ajax({
-
 
763
                'dataType'  : 'json',
-
 
764
                'accept'    : 'application/json',
-
 
765
                'method'    : 'post',
-
 
766
                'url'       :  route_extended,
-
 
767
                'data'      :  $('#form-extended').serialize()
-
 
768
            }).done(function(response) {
-
 
769
                if(response['success']) {
-
 
770
                
-
 
771
                    $('#overview-description').html(response['data']['description']);
-
 
772
                    $("#extended-box").modal('hide');
-
 
773
                } else {
-
 
774
                    validatorExtended.resetForm();
-
 
775
                    if(jQuery.type(response['data']) == 'string') {
-
 
776
                        $.fn.showError(response['data']);
-
 
777
                    } else  {
-
 
778
                        $.each(response['data'], function( fieldname, errors ) {
-
 
779
                            $.fn.showFormErrorValidator('#form-extended #' + fieldname, errors);
-
 
780
                        });
-
 
781
                    }
-
 
782
                }
-
 
783
            }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
784
                $.fn.showError(textStatus);
-
 
785
            }).always(function() {
-
 
786
                NProgress.done();
-
 
787
            });
-
 
788
            return false;
-
 
789
        },
-
 
790
        invalidHandler: function(form, validator) {
-
 
791
        
-
 
792
        }
-
 
793
    });
-
 
794
    
-
 
795
    
-
 
796
    $('.btn-extended-edit').on("click", function(e){
-
 
797
        e.preventDefault();
-
 
798
        
-
 
799
        NProgress.start();
-
 
800
        $.ajax({
-
 
801
            'dataType'  : 'json',
-
 
802
            'accept'    : 'application/json',
-
 
803
            'method'    : 'get',
-
 
804
            'url'       : route_extended,
-
 
805
        }).done(function(response) {
-
 
806
           if(response['success']) {
-
 
807
                CKEDITOR.instances.description.setData(response['data']['description']);
-
 
808
                validatorExtended.resetForm();
-
 
809
                
-
 
810
                $("#extended-box").modal('show');
-
 
811
            } else {
-
 
812
                $.fn.showError(response['data']);
-
 
813
            }
-
 
814
        }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
815
            $.fn.showError(textStatus);
-
 
816
        }).always(function() {
-
 
817
            NProgress.done();
-
 
818
        });
-
 
819
        return false;
-
 
820
        
-
 
821
    });
-
 
822
    
-
 
823
    $('.btn-extended-close').on("click", function(e){
-
 
824
        e.preventDefault();
-
 
825
        
-
 
826
        $("#extended-box").modal('hide');
-
 
827
        return false;
-
 
828
    });
-
 
829
    
-
 
830
 
-
 
831
    var validatorJobCategory = $('#form-job-category').validate({
-
 
832
        debug: true,
-
 
833
        onclick: false,
-
 
834
        onkeyup: false,
-
 
835
        ignore: [],
-
 
836
        rules: {
-
 
837
            'job-category_id': {
-
 
838
                required: false,
-
 
839
                digits: true
-
 
840
            },
-
 
841
        },
-
 
842
        submitHandler: function(form)
-
 
843
        {
-
 
844
            NProgress.start();
-
 
845
            $.ajax({
-
 
846
                'dataType'  : 'json',
-
 
847
                'accept'    : 'application/json',
-
 
848
                'method'    : 'post',
-
 
849
                'url'       :  route_job_category,
-
 
850
                'data'      :  $('#form-job-category').serialize()
-
 
851
            }).done(function(response) {
-
 
852
                if(response['success']) {
-
 
853
					$('#overview-job-category').html(response['data']);
-
 
854
                    $("#job-category-box").modal('hide');
-
 
855
                } else {
-
 
856
                    validatorJobCategory.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-job-category #' + 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
    });
-
 
876
    
-
 
877
    $('.btn-job-category-edit').on("click", function(e){
-
 
878
        e.preventDefault();
-
 
879
        
-
 
880
        NProgress.start();
-
 
881
        $.ajax({
-
 
882
            'dataType'  : 'json',
-
 
883
            'accept'    : 'application/json',
-
 
884
            'method'    : 'get',
-
 
885
            'url'       : route_job_category,
-
 
886
        }).done(function(response) {
-
 
887
           if(response['success']) {
-
 
888
                $('#form-job-category #job_category_id').val(response['data']).trigger('change');
-
 
889
                validatorJobCategory.resetForm();
-
 
890
                $("#job-category-box").modal('show');
-
 
891
            } else {
-
 
892
                $.fn.showError(response['data']);
-
 
893
            }
-
 
894
        }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
895
            $.fn.showError(textStatus);
-
 
896
        }).always(function() {
-
 
897
            NProgress.done();
-
 
898
        });
-
 
899
        return false;
-
 
900
        
-
 
901
    });
-
 
902
    
-
 
903
    $('.btn-job-category-close').on("click", function(e){
-
 
904
        e.preventDefault();
-
 
905
        
-
 
906
        $("#job-category-box").modal('hide');
-
 
907
        return false;
-
 
908
    });
-
 
909
    
-
 
910
 
-
 
911
 
-
 
912
    var validatorEmploymentType = $('#form-employment-type').validate({
-
 
913
        debug: true,
-
 
914
        onclick: false,
-
 
915
        onkeyup: false,
-
 
916
        ignore: [],
-
 
917
        rules: {
-
 
918
            'employment_type': {
-
 
919
                required: false,
-
 
920
            },
-
 
921
        },
-
 
922
        submitHandler: function(form)
-
 
923
        {
-
 
924
            NProgress.start();
-
 
925
            $.ajax({
-
 
926
                'dataType'  : 'json',
-
 
927
                'accept'    : 'application/json',
-
 
928
                'method'    : 'post',
-
 
929
                'url'       :  route_employment_type,
-
 
930
                'data'      :  $('#form-employment-type').serialize()
-
 
931
            }).done(function(response) {
-
 
932
                if(response['success']) {
-
 
933
					$('#overview-employment-type').html(response['data']);
-
 
934
                    $("#employment-type-box").modal('hide');
-
 
935
                } else {
-
 
936
                    validatorEmploymentType.resetForm();
-
 
937
                    if(jQuery.type(response['data']) == 'string') {
-
 
938
                        $.fn.showError(response['data']);
-
 
939
                    } else  {
-
 
940
                        $.each(response['data'], function( fieldname, errors ) {
-
 
941
                            $.fn.showFormErrorValidator('#form-employment-type #' + fieldname, errors);
-
 
942
                        });
-
 
943
                    }
-
 
944
                }
-
 
945
            }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
946
                $.fn.showError(textStatus);
-
 
947
            }).always(function() {
-
 
948
                NProgress.done();
-
 
949
            });
-
 
950
            return false;
-
 
951
        },
-
 
952
        invalidHandler: function(form, validator) {
-
 
953
        
-
 
954
        }
-
 
955
    });
-
 
956
    
-
 
957
    $('.btn-employment-type-edit').on("click", function(e){
-
 
958
        e.preventDefault();
-
 
959
        
-
 
960
        NProgress.start();
-
 
961
        $.ajax({
-
 
962
            'dataType'  : 'json',
-
 
963
            'accept'    : 'application/json',
-
 
964
            'method'    : 'get',
-
 
965
            'url'       : route_employment_type,
-
 
966
        }).done(function(response) {
-
 
967
           if(response['success']) {
-
 
968
                $('#form-employment-type #employment_type').val(response['data']).trigger('change');
-
 
969
                validatorEmploymentType.resetForm();
-
 
970
                $("#employment-type-box").modal('show');
-
 
971
            } else {
-
 
972
                $.fn.showError(response['data']);
-
 
973
            }
-
 
974
        }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
975
            $.fn.showError(textStatus);
-
 
976
        }).always(function() {
-
 
977
            NProgress.done();
-
 
978
        });
-
 
979
        return false;
-
 
980
        
-
 
981
    });
-
 
982
    
-
 
983
    $('.btn-employment-type-close').on("click", function(e){
-
 
984
        e.preventDefault();
-
 
985
        
-
 
986
        $("#employment-type-box").modal('hide');
-
 
Línea 987... Línea 350...
987
        return false;
350
    });
988
    });
351
 
989
 
352
 
990
    var validatorSalary = $('#form-salary').validate({
353
    var validatorSalary = $('#form-salary').validate({
Línea 1339... Línea 702...
1339
        invalidHandler: function(form, validator) {
702
        invalidHandler: function(form, validator) {
Línea 1340... Línea 703...
1340
        
703
        
1341
        }
704
        }
Línea 1342... Línea 705...
1342
    });
705
    });
-
 
706
 
Línea 1343... Línea 707...
1343
 
707
    $('.btn-languages-edit').on("click", function(e){
1344
    $('.btn-languages-edit').on("click", function(){
708
        e.preventDefault();
1345
 
709
 
1346
        NProgress.start();
710
        NProgress.start();
Línea 1523... Línea 887...
1523
            $('#form-experience #experience_max').val('5');
887
            $('#form-experience #experience_max').val('5');
1524
            $('#form-experience #experience_min').prop('readonly', true);
888
            $('#form-experience #experience_min').prop('readonly', true);
1525
            $('#form-experience #experience_max').prop('readonly', true);
889
            $('#form-experience #experience_max').prop('readonly', true);
1526
       }
890
       }
1527
    });
891
    });
1528
 
-
 
1529
 
-
 
1530
    var validatorStatus = $('#form-status').validate({
-
 
1531
        debug: true,
-
 
1532
        onclick: false,
-
 
1533
        onkeyup: false,
-
 
1534
        ignore: [],
-
 
1535
        rules: {
-
 
1536
            'status': {
-
 
1537
                required: false,
-
 
1538
            },
-
 
1539
        },
-
 
1540
        submitHandler: function(form)
-
 
1541
        {
-
 
1542
            NProgress.start();
-
 
1543
            $.ajax({
-
 
1544
                'dataType'  : 'json',
-
 
1545
                'accept'    : 'application/json',
-
 
1546
                'method'    : 'post',
-
 
1547
                'url'       :  route_status,
-
 
1548
                'data'      :  $('#form-status').serialize()
-
 
1549
            }).done(function(response) {
-
 
1550
                if(response['success']) {
-
 
1551
					$('#overview-status').html(response['data']['status']);
-
 
1552
                    $("#status-box").modal('hide');
-
 
1553
                } else {
-
 
1554
                    validatorStatus.resetForm();
-
 
1555
                    if(jQuery.type(response['data']) == 'string') {
-
 
1556
                        $.fn.showError(response['data']);
-
 
1557
                    } else  {
-
 
1558
                        $.each(response['data'], function( fieldname, errors ) {
-
 
1559
                            $.fn.showFormErrorValidator('#form-status #' + fieldname, errors);
-
 
1560
                        });
-
 
1561
                    }
-
 
1562
                }
-
 
1563
            }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
1564
                $.fn.showError(textStatus);
-
 
1565
            }).always(function() {
-
 
1566
                NProgress.done();
-
 
1567
            });
-
 
1568
            return false;
-
 
1569
        },
-
 
1570
        invalidHandler: function(form, validator) {
-
 
1571
        
-
 
1572
        }
-
 
1573
    });
-
 
1574
    
-
 
1575
    $('.btn-status-edit').on("click", function(e){
-
 
1576
        e.preventDefault();
-
 
1577
        
-
 
1578
        NProgress.start();
-
 
1579
        $.ajax({
-
 
1580
            'dataType'  : 'json',
-
 
1581
            'accept'    : 'application/json',
-
 
1582
            'method'    : 'get',
-
 
1583
            'url'       : route_status,
-
 
1584
        }).done(function(response) {
-
 
1585
           if(response['success']) {
-
 
1586
                $('#form-status #status').val(response['data']['status']);
-
 
1587
                validatorStatus.resetForm();
-
 
1588
                $("#status-box").modal('show');
-
 
1589
            } else {
-
 
1590
                $.fn.showError(response['data']);
-
 
1591
            }
-
 
1592
        }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
1593
            $.fn.showError(textStatus);
-
 
1594
        }).always(function() {
-
 
1595
            NProgress.done();
-
 
1596
        });
-
 
1597
        return false;
-
 
1598
        
-
 
1599
    });
-
 
1600
    
-
 
1601
    $('.btn-status-close').on("click", function(e){
-
 
1602
        e.preventDefault();
-
 
1603
        
-
 
1604
        $("#status-box").modal('hide');
-
 
1605
        return false;
-
 
1606
    });
-
 
1607
    
-
 
1608
 
-
 
1609
    var validatorTitle = $('#form-title').validate({
-
 
1610
        debug: true,
-
 
1611
        onclick: false,
-
 
1612
        onkeyup: false,
-
 
1613
        ignore: [],
-
 
1614
        rules: {
-
 
1615
            'title': {
-
 
1616
                required: true,
-
 
1617
                maxlength: 128,
-
 
1618
            },
-
 
1619
        },
-
 
1620
        submitHandler: function(form)
-
 
1621
        {
-
 
1622
            NProgress.start();
-
 
1623
            $.ajax({
-
 
1624
                'dataType'  : 'json',
-
 
1625
                'accept'    : 'application/json',
-
 
1626
                'method'    : 'post',
-
 
1627
                'url'       :  route_title,
-
 
1628
                'data'      :  $('#form-title').serialize()
-
 
1629
            }).done(function(response) {
-
 
1630
                if(response['success']) {
-
 
1631
					$('#overview-title').html(response['data']['title']);
-
 
1632
                    $("#title-box").modal('hide');
-
 
1633
                } else {
-
 
1634
                    validatorTitle.resetForm();
-
 
1635
                    if(jQuery.type(response['data']) == 'string') {
-
 
1636
                        $.fn.showError(response['data']);
-
 
1637
                    } else  {
-
 
1638
                        $.each(response['data'], function( fieldname, errors ) {
-
 
1639
                            $.fn.showFormErrorValidator('#form-title #' + fieldname, errors);
-
 
1640
                        });
-
 
1641
                    }
-
 
1642
                }
-
 
1643
            }).fail(function( jqXHR, textTitle, errorThrown) {
-
 
1644
                $.fn.showError(textTitle);
-
 
1645
            }).always(function() {
-
 
1646
                NProgress.done();
-
 
1647
            });
-
 
1648
            return false;
-
 
1649
        },
-
 
1650
        invalidHandler: function(form, validator) {
-
 
1651
        
-
 
1652
        }
-
 
1653
    });
-
 
Línea 1654... Línea -...
1654
    
-
 
1655
    $('.btn-title-edit').on("click", function(e){
-
 
1656
        e.preventDefault();
-
 
1657
        
-
 
1658
        NProgress.start();
-
 
1659
        $.ajax({
-
 
1660
            'dataType'  : 'json',
-
 
1661
            'accept'    : 'application/json',
-
 
1662
            'method'    : 'get',
-
 
1663
            'url'       : route_title,
-
 
1664
        }).done(function(response) {
-
 
1665
           if(response['success']) {
-
 
1666
                $('#form-title #title').val(response['data']['title'] );
-
 
1667
                validatorTitle.resetForm();
-
 
1668
                $("#title-box").modal('show');
-
 
1669
            } else {
-
 
1670
                $.fn.showError(response['data']);
-
 
1671
            }
-
 
1672
        }).fail(function( jqXHR, textTitle, errorThrown) {
-
 
1673
            $.fn.showError(textTitle);
-
 
1674
        }).always(function() {
-
 
1675
            NProgress.done();
-
 
1676
        });
-
 
1677
        return false;
-
 
1678
        
-
 
1679
    });
-
 
1680
    
-
 
1681
    $('.btn-title-close').on("click", function(e){
-
 
1682
        e.preventDefault();
-
 
1683
        
-
 
1684
        $("#title-box").modal('hide');
-
 
1685
        return false;
-
 
1686
    });
-
 
1687
 
-
 
1688
    $('h1.btn-edit-back').on("click", function(e){
-
 
1689
        e.preventDefault();
-
 
1690
 
-
 
1691
 
-
 
1692
        
-
 
1693
        $('#divEdit').hide();
-
 
1694
        $('#divListing').show();
-
 
1695
        return false;
-
 
1696
    });
-
 
1697
 
-
 
1698
 
-
 
1699
    CKEDITOR.replace('description', {
-
 
1700
        toolbar: [
-
 
1701
            { name: 'editing', items: [ 'Scayt' ] },
-
 
1702
            { name: 'links', items: [ 'Link', 'Unlink'] },
-
 
1703
            { name: 'paragraph', items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote' ] },
-
 
1704
            { name: 'basicstyles', items: [ 'Bold', 'Italic', 'Strike', 'RemoveFormat' ] },
-
 
1705
            '/',
-
 
1706
            { name: 'insert', items: [ 'Image', 'Table', 'HorizontalRule', 'SpecialChar' ] },
-
 
1707
            { name: 'styles', items: [ 'Styles', 'Format' ] },
-
 
1708
            { name: 'tools', items: [ 'Maximize' ] }
-
 
1709
        ],
-
 
1710
        removePlugins: 'elementspath,Anchor',
-
 
1711
        height: 100
-
 
Línea 1712... Línea 892...
1712
    });
892
    
1713
    
893
    
1714
});
894
});
Línea 1732... Línea 912...
1732
$this->inlineScript()->appendFile('/react-bundles/jobs/jobsBundle.js');
912
$this->inlineScript()->appendFile('/react-bundles/jobs/jobsBundle.js');
1733
?>
913
?>
Línea 1734... Línea 914...
1734
 
914
 
1735
<!-- Content Header (Page header) -->
915
<!-- Content Header (Page header) -->
1736
<div id="jobs"></div>
-
 
1737
<div id="divListing">
-
 
1738
 
-
 
1739
    <section class="content-header">
-
 
1740
        <div class="container-fluid">
-
 
1741
            <div class="row mb-2">
-
 
1742
                <div class="col-sm-12">
-
 
1743
                    <h1>LABEL_JOBS</h1>
-
 
1744
                </div>
-
 
1745
            </div>
-
 
1746
        </div><!-- /.container-fluid -->
-
 
1747
    </section>
-
 
1748
 
-
 
1749
    <section class="content">
-
 
1750
        <div class="container-fluid">
-
 
1751
            <div class="row">
-
 
1752
                <div class="col-12">
-
 
1753
                    <div class="card">
-
 
1754
                        <div class="card-body">
-
 
1755
                            <table id="gridTable" class="table   table-hover">
-
 
1756
                                <thead>
-
 
1757
                                    <tr>
-
 
1758
 
-
 
1759
                                        <th>LABEL_LAST_DATE_OF_APPLICATION</th>
-
 
1760
                                        <th>LABEL_TITLE</th>
-
 
1761
                                        <th>LABEL_DETAILS</th>
-
 
1762
                                        <th>LABEL_ACTIONS</th>
-
 
1763
                                    </tr>
-
 
1764
                                </thead>
-
 
1765
                                <tbody>
-
 
1766
                                </tbody>
-
 
1767
                            </table>
-
 
1768
                        </div>
-
 
1769
                        <div class="card-footer clearfix">
-
 
1770
                            <div style="float:right;">
-
 
1771
                                <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
-
 
1772
                                <?php if ($allowAdd) : ?>
-
 
1773
                                    <button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
-
 
1774
                                <?php endif; ?>
-
 
1775
                            </div>
-
 
1776
                        </div>
-
 
1777
                    </div>
-
 
1778
                </div>
-
 
1779
            </div>
-
 
1780
        </div>
-
 
1781
    </section>
-
 
Línea 1782... Línea -...
1782
</div>
-
 
Línea 1783... Línea -...
1783
 
-
 
1784
<div id="divEdit" style="display: none">
-
 
1785
 
-
 
1786
    <section class="content-header">
-
 
1787
        <div class="container-fluid">
-
 
1788
            <div class="row mb-2">
-
 
1789
                <div class="col-sm-12">
-
 
1790
                    <h1 class="btn-edit-back"><i class="fa fa-chevron-left" aria-hidden="true"></i> LABEL_EDIT_JOB</h1>
-
 
1791
 
-
 
1792
                </div>
-
 
1793
            </div>
-
 
1794
        </div><!-- /.container-fluid -->
-
 
1795
    </section>
-
 
1796
 
-
 
1797
    <section class="content">
-
 
1798
        <div class="container-fluid">
-
 
1799
 
-
 
1800
            <div class="row">
-
 
1801
                <div class="col-lg-3">
-
 
1802
                </div>
-
 
1803
                <div class="col-lg-6">
-
 
1804
                    <div class="main-ws-sec">
-
 
1805
 
-
 
1806
                        <!--user-profile-ov end -->
-
 
1807
                        <div class="user-profile-ov">
-
 
1808
                            <h3>
-
 
1809
                                LABEL_STATUS <a href="#" title="" class="btn-status-edit"> <i class="fa fa-pencil"></i></a>
-
 
1810
                            </h3>
-
 
1811
                            <p id="overview-status"></p>
-
 
1812
                        </div>
-
 
1813
 
-
 
1814
                        <div class="user-profile-ov">
-
 
1815
                            <h3>LABEL_TITLE
-
 
1816
                                <a href="#" title="" class="btn-title-edit"><i class="fa fa-pencil"></i></a>
-
 
1817
                            </h3>
-
 
1818
                            <p id="overview-title"></p>
-
 
1819
                        </div>
-
 
1820
                        <div class="user-profile-ov">
-
 
1821
                            <h3>LABEL_OVERVIEW
-
 
1822
                                <a href="#" title="" class="btn-extended-edit"><i class="fa fa-pencil"></i></a>
-
 
1823
                            </h3>
-
 
1824
                            <p id="overview-description"></p>
-
 
1825
                        </div>
-
 
1826
                        <!--user-profile-ov end-->
-
 
1827
                        <div class="user-profile-ov st2">
-
 
1828
                            <h3>LABEL_LAST_DATE_OF_APPLICATION
-
 
1829
                                <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>
-
 
1830
                            </h3>
-
 
1831
                            <span id="overview-last-date-of-application"></span>
-
 
1832
                        </div>
-
 
1833
                        <!--user-profile-ov end-->
-
 
1834
                        <div class="user-profile-ov">
-
 
1835
                            <h3>LABEL_EMPLOYMENT_TYPE
-
 
1836
                                <a href="#" title="" class="btn-employment-type-edit"><i class="fa fa-pencil"></i></a>
-
 
1837
                            </h3>
-
 
1838
                            <span id="overview-employment-type"></span>
-
 
1839
                        </div>
-
 
1840
                        <!--user-profile-ov end-->
-
 
1841
                        <div class="user-profile-ov">
-
 
1842
                            <h3>
-
 
1843
                                <a href="#" title="">LABEL_LOCATION</a>
-
 
1844
                                <a href="#" title="" class="btn-location-edit"><i class="fa fa-pencil"></i></a>
-
 
1845
                            </h3>
-
 
1846
                            <span id="overview-location"></span>
-
 
1847
                        </div>
-
 
1848
                        <!--user-profile-ov end-->
-
 
1849
                        <div class="user-profile-ov">
-
 
1850
                            <h3>
-
 
1851
                                LABEL_EXPERIENCE
-
 
1852
                                <a href="#" title="" class="btn-experience-edit"><i class="fa fa-pencil"></i></a>
-
 
1853
                            </h3>
-
 
1854
                            <span id="overview-experience"> </span>
-
 
1855
                        </div>
-
 
1856
                        <!--user-profile-ov end-->
-
 
1857
                        <div class="user-profile-ov">
-
 
1858
                            <h3>
-
 
1859
                                LABEL_SALARY
-
 
1860
                                <a href="#" title="" class="btn-salary-edit"><i class="fa fa-pencil"></i></a>
-
 
1861
                            </h3>
-
 
1862
                            <span id="overview-salary"></span>
-
 
1863
                        </div>
-
 
1864
                        <!--user-profile-ov end-->
-
 
1865
                        <div class="user-profile-ov">
-
 
1866
                            <h3>
-
 
1867
                                LABEL_CATEGORIE
-
 
1868
                                <a href="#" title="" class="btn-job-category-edit"><i class="fa fa-pencil"></i></a>
-
 
1869
                            </h3>
-
 
1870
                            <span id="overview-job-category"></span>
-
 
1871
                        </div>
-
 
1872
                        <!--user-profile-ov end-->
-
 
1873
                        <div class="user-profile-ov">
-
 
1874
                            <h3>
-
 
1875
                                LABEL_SKILLS <a href="#" title="" class="btn-skills-edit"> <i class="fa fa-pencil"></i></a>
-
 
1876
                            </h3>
-
 
1877
                            <ul id="list-skills">
-
 
1878
 
-
 
1879
 
-
 
1880
                            </ul>
-
 
1881
                        </div>
-
 
1882
                        <!--user-profile-ov end -->
-
 
1883
                        <div class="user-profile-ov">
-
 
1884
                            <h3>
-
 
1885
                                LABEL_LANGUAGES <a href="#" title="" class="btn-languages-edit"> <i class="fa fa-pencil"></i></a>
-
 
1886
                            </h3>
-
 
1887
                            <ul id="list-languages">
-
 
1888
 
-
 
1889
 
-
 
1890
                            </ul>
-
 
1891
                        </div>
-
 
1892
                        <!--user-profile-ov end -->
-
 
1893
                        <div class="user-profile-ov">
-
 
1894
                            <h3>
-
 
1895
                                LABEL_DEGREES <a href="#" title="" class="btn-degrees-edit"> <i class="fa fa-pencil"></i></a>
-
 
1896
                            </h3>
-
 
1897
                            <ul id="list-degrees">
-
 
1898
 
-
 
1899
 
-
 
1900
                            </ul>
-
 
1901
                        </div>
-
 
1902
 
-
 
1903
 
-
 
1904
 
-
 
1905
                    </div>
-
 
1906
                </div>
-
 
1907
                <div class="col-lg-3">
-
 
1908
                </div>
-
 
1909
            </div>
-
 
Línea 1910... Línea 916...
1910
        </div>
916
<div id="jobs"></div>
1911
    </section>
917
 
1912
</div>
918
 
1913
 
919
 
Línea 2042... Línea 1048...
2042
 
1048
 
2043
        </div>
1049
        </div>
2044
    </div>
1050
    </div>
Línea 2045... Línea -...
2045
</div>
-
 
2046
 
-
 
2047
<div class="modal" tabindex="-1" role="dialog" id="extended-box">
-
 
2048
    <div class="modal-dialog" role="document">
-
 
2049
        <?php
-
 
2050
        $form = $this->formExtended;
-
 
2051
        $form->setAttributes([
-
 
2052
            'method' => 'post',
-
 
2053
            'name' => 'form-extended',
-
 
2054
            'id' => 'form-extended'
-
 
2055
        ]);
-
 
2056
        $form->prepare();
-
 
2057
        echo $this->form()->openTag($form);
-
 
2058
        ?>
-
 
2059
        <div class="modal-content">
-
 
2060
            <div class="modal-header">
-
 
2061
                <h3 class="modal-title">LABEL_OVERVIEW</h3>
-
 
2062
            </div>
-
 
2063
            <div class="modal-body">
-
 
2064
                <div class="form-group">
-
 
2065
                    <?php
-
 
2066
                    $element = $form->get('description');
-
 
2067
                    $element->setOptions(['label' => 'LABEL_OVERVIEW']);
-
 
2068
                    $element->setAttributes(['class' => 'form-control']);
-
 
2069
                    echo $this->formLabel($element);
-
 
2070
                    echo $this->formTextArea($element);
-
 
2071
                    ?>
-
 
2072
                </div>
-
 
2073
            </div>
-
 
2074
            <div class="modal-footer">
-
 
2075
                <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
2076
                <button type="button" class="btn btn-default btn-extended-close">LABEL_CANCEL</button>
-
 
2077
            </div>
-
 
2078
            <?php echo $this->form()->closeTag($form); ?>
-
 
2079
        </div>
-
 
2080
    </div>
-
 
2081
</div>
-
 
2082
 
-
 
2083
<div class="modal" tabindex="-1" role="dialog" id="location-box">
-
 
2084
    <div class="modal-dialog" role="document">
-
 
2085
        <?php
-
 
2086
        $form = $this->formLocation;
-
 
2087
        $form->setAttributes([
-
 
2088
            'method' => 'post',
-
 
2089
            'name' => 'form-location',
-
 
2090
            'id' => 'form-location'
-
 
2091
        ]);
-
 
2092
        $form->prepare();
-
 
2093
        echo $this->form()->openTag($form);
-
 
2094
 
-
 
2095
        $fieldnames = [
-
 
2096
            'formatted_address',
-
 
2097
            'address1',
-
 
2098
            'address2',
-
 
2099
            'country',
-
 
2100
            'state',
-
 
2101
            'city1',
-
 
2102
            'city2',
-
 
2103
            'postal_code',
-
 
2104
            'latitude',
-
 
2105
            'longitude',
-
 
2106
        ];
-
 
2107
 
-
 
2108
        foreach ($fieldnames as $fieldname) {
-
 
2109
 
-
 
2110
            $element = $form->get($fieldname);
-
 
2111
            echo $this->formHidden($element);
-
 
2112
        }
-
 
2113
        ?>
-
 
2114
        <div class="modal-content">
-
 
2115
            <div class="modal-header">
-
 
2116
                <h3 class="modal-title">LABEL_LOCATION</h3>
-
 
2117
            </div>
-
 
2118
            <div class="modal-body">
-
 
2119
                <div class="form-group datefm">
-
 
2120
                    <?php
-
 
2121
                    $element = $form->get('location_search');
-
 
2122
                    $element->setOptions(['label' => 'LABEL_LOCATION']);
-
 
2123
                    $element->setAttributes(['class' => 'form-control']);
-
 
2124
                    echo $this->formLabel($element);
-
 
2125
                    echo $this->formText($element);
-
 
2126
                    ?>
-
 
2127
                    <i class="fa fa-map-marker"></i>
-
 
2128
                </div>
-
 
2129
            </div>
-
 
2130
            <div class="modal-footer">
-
 
2131
                <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
2132
                <button type="button" class="btn btn-default btn-location-close">LABEL_CANCEL</button>
-
 
2133
            </div>
-
 
2134
            <?php echo $this->form()->closeTag($form); ?>
-
 
2135
        </div>
-
 
2136
    </div>
-
 
2137
</div>
-
 
2138
 
-
 
2139
<div class="modal" tabindex="-1" role="dialog" id="employment-type-box">
-
 
2140
    <div class="modal-dialog" role="document">
-
 
2141
        <?php
-
 
2142
        $form = $this->formEmploymentType;
-
 
2143
        $form->setAttributes([
-
 
2144
            'method' => 'post',
-
 
2145
            'name' => 'form-employment-type',
-
 
2146
            'id' => 'form-employment-type'
-
 
2147
        ]);
-
 
2148
        $form->prepare();
-
 
2149
        echo $this->form()->openTag($form);
-
 
2150
        ?>
-
 
2151
        <div class="modal-content">
-
 
2152
            <div class="modal-header">
-
 
2153
                <h3 class="modal-title">LABEL_EMPLOYMENT_TYPE</h3>
-
 
2154
            </div>
-
 
2155
            <div class="modal-body">
-
 
2156
                <div class="form-group">
-
 
2157
                    <?php
-
 
2158
                    $element = $form->get('employment_type');
-
 
2159
                    $element->setOptions(['label' => 'LABEL_EMPLOYMENT_TYPE']);
-
 
2160
                    $element->setAttributes(['class' => 'form-control']);
-
 
2161
                    echo $this->formLabel($element);
-
 
2162
                    echo $this->formSelect($element);
-
 
2163
                    ?>
-
 
2164
                </div>
-
 
2165
            </div>
-
 
2166
            <div class="modal-footer">
-
 
2167
                <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
2168
                <button type="button" class="btn btn-default btn-employment-type-close">LABEL_CANCEL</button>
-
 
2169
            </div>
-
 
2170
            <?php echo $this->form()->closeTag($form); ?>
-
 
2171
        </div>
-
 
2172
    </div>
-
 
2173
</div>
1051
</div>
2174
 
1052
 
2175
<div class="modal" tabindex="-1" role="dialog" id="job-category-box">
1053
<div class="modal" tabindex="-1" role="dialog" id="job-category-box">
2176
    <div class="modal-dialog" role="document">
1054
    <div class="modal-dialog" role="document">
2177
        <?php
1055
        <?php
Línea 2393... Línea 1271...
2393
            <?php echo $this->form()->closeTag($form); ?>
1271
            <?php echo $this->form()->closeTag($form); ?>
2394
        </div>
1272
        </div>
2395
    </div>
1273
    </div>
2396
</div>
1274
</div>
Línea 2397... Línea -...
2397
 
-
 
2398
<div class="modal" tabindex="-1" role="dialog" id="last-date-of-application-box">
-
 
2399
    <div class="modal-dialog" role="document">
-
 
2400
        <?php
-
 
2401
        $form = $this->fromLastDateOfApplication;
-
 
2402
        $form->setAttributes([
-
 
2403
            'method' => 'post',
-
 
2404
            'name' => 'form-last-date-of-application',
-
 
2405
            'id' => 'form-last-date-of-application'
-
 
2406
        ]);
-
 
2407
        $form->prepare();
-
 
2408
        echo $this->form()->openTag($form);
-
 
2409
        ?>
-
 
2410
        <div class="modal-content">
-
 
2411
            <div class="modal-header">
-
 
2412
                <h3 class="modal-title">LABEL_LAST_DATE_OF_APPLICATION</h3>
-
 
2413
            </div>
-
 
2414
            <div class="modal-body">
-
 
2415
                <div class="form-group">
-
 
2416
                    <?php
-
 
2417
                    $element = $form->get('last_date_of_application');
-
 
2418
                    $element->setOptions(['label' => 'LABEL_LAST_DATE_OF_APPLICATION']);
-
 
2419
                    $element->setAttributes(['class' => 'form-control']);
-
 
2420
                    echo $this->formLabel($element);
-
 
2421
                    echo $this->formText($element);
-
 
2422
                    ?>
-
 
2423
                </div>
-
 
2424
            </div>
-
 
2425
            <div class="modal-footer">
-
 
2426
                <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
2427
                <button type="button" class="btn btn-default btn-last-date-of-application-close">LABEL_CANCEL</button>
-
 
2428
            </div>
-
 
2429
            <?php echo $this->form()->closeTag($form); ?>
-
 
2430
        </div>
-
 
2431
    </div>
-
 
2432
</div>
-
 
2433
 
1275
 
2434
<div class="modal" tabindex="-1" role="dialog" id="degrees-box">
1276
<div class="modal" tabindex="-1" role="dialog" id="degrees-box">
2435
    <div class="modal-dialog" role="document">
1277
    <div class="modal-dialog" role="document">
2436
        <?php
1278
        <?php
2437
        $form = $this->formDegree;
1279
        $form = $this->formDegree;
Línea 2463... Línea 1305...
2463
                <button type="button" class="btn btn-default btn-degrees-close">LABEL_CANCEL</button>
1305
                <button type="button" class="btn btn-default btn-degrees-close">LABEL_CANCEL</button>
2464
            </div>
1306
            </div>
2465
            <?php echo $this->form()->closeTag($form); ?>
1307
            <?php echo $this->form()->closeTag($form); ?>
2466
        </div>
1308
        </div>
2467
    </div>
1309
    </div>
2468
</div>
-
 
2469
 
-
 
2470
<div class="modal" tabindex="-1" role="dialog" id="status-box">
-
 
2471
    <div class="modal-dialog" role="document">
-
 
2472
        <?php
-
 
2473
        $form = $this->formStatus;
-
 
2474
        $form->setAttributes([
-
 
2475
            'method' => 'post',
-
 
2476
            'name' => 'form-status',
-
 
2477
            'id' => 'form-status'
-
 
2478
        ]);
-
 
2479
        $form->prepare();
-
 
2480
        echo $this->form()->openTag($form);
-
 
2481
        ?>
-
 
2482
        <div class="modal-content">
-
 
2483
            <div class="modal-header">
-
 
2484
                <h3 class="modal-title">LABEL_STATUS</h3>
-
 
2485
            </div>
-
 
2486
            <div class="modal-body">
-
 
2487
                <div class="form-group">
-
 
2488
                    <?php
-
 
2489
                    $element = $form->get('status');
-
 
2490
                    $element->setOptions(['label' => 'LABEL_STATUS']);
-
 
2491
                    $element->setAttributes(['class' => 'form-control']);
-
 
2492
                    echo $this->formLabel($element);
-
 
2493
                    echo $this->formSelect($element);
-
 
2494
                    ?>
-
 
2495
                </div>
-
 
2496
            </div>
-
 
2497
 
-
 
2498
 
-
 
2499
            <div class="modal-footer">
-
 
2500
                <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
2501
                <button type="button" class="btn btn-default btn-status-close">LABEL_CANCEL</button>
-
 
2502
            </div>
-
 
2503
            <?php echo $this->form()->closeTag($form); ?>
-
 
2504
        </div>
-
 
2505
    </div>
-
 
2506
</div>
-
 
2507
 
-
 
2508
<div class="modal" tabindex="-1" role="dialog" id="title-box">
-
 
2509
    <div class="modal-dialog" role="document">
-
 
2510
        <?php
-
 
2511
        $form = $this->formTitle;
-
 
2512
        $form->setAttributes([
-
 
2513
            'method' => 'post',
-
 
2514
            'name' => 'form-title',
-
 
2515
            'id' => 'form-title'
-
 
2516
        ]);
-
 
2517
        $form->prepare();
-
 
2518
        echo $this->form()->openTag($form);
-
 
2519
        ?>
-
 
2520
        <div class="modal-content">
-
 
2521
            <div class="modal-header">
-
 
2522
                <h3 class="modal-title">LABEL_TITLE</h3>
-
 
2523
            </div>
-
 
2524
            <div class="modal-body">
-
 
2525
                <div class="form-group">
-
 
2526
                    <?php
-
 
2527
                    $element = $form->get('title');
-
 
2528
                    $element->setOptions(['label' => 'LABEL_TITLE']);
-
 
2529
                    $element->setAttributes(['class' => 'form-control']);
-
 
2530
                    echo $this->formLabel($element);
-
 
2531
                    echo $this->formText($element);
-
 
2532
                    ?>
-
 
2533
                </div>
-
 
2534
            </div>
-
 
2535
 
-
 
2536
 
-
 
2537
            <div class="modal-footer">
-
 
2538
                <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
2539
                <button type="button" class="btn btn-default btn-title-close">LABEL_CANCEL</button>
-
 
2540
            </div>
-
 
2541
            <?php echo $this->form()->closeTag($form); ?>
-
 
2542
        </div>
-
 
2543
    </div>
-
 
2544
</div>
1310
</div>
2545
1311