Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 1423 | Rev 1435 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1384 efrain 1
<?php
2
$acl = $this->viewModel()->getRoot()->getVariable('acl');
3
$currentUser = $this->currentUserHelper();
4
 
5
$roleName = $currentUser->getUserTypeId();
6
 
1395 eleazar 7
$routeAdd = $this->url('recruitment-and-selection-vacancies/forms/add');
8
$routeDatatable = $this->url('recruitment-and-selection-vacancies/forms');
1384 efrain 9
$routeDashboard = $this->url('dashboard');
10
 
1395 eleazar 11
$allowAdd = $acl->isAllowed($roleName, 'recruitment-and-selection-vacancies/forms/add') ? 1 : 0;
12
$allowEdit = $acl->isAllowed($roleName, 'recruitment-and-selection-vacancies/forms/edit') ? 1 : 0;
13
$allowDelete = $acl->isAllowed($roleName, 'recruitment-and-selection-vacancies/forms/delete') ? 1 : 0;
1384 efrain 14
 
15
 
16
$this->inlineScript()->appendFile('https://maps.googleapis.com/maps/api/js?key=' . $google_map_key . '&libraries=places');
17
 
18
 
19
$this->inlineScript()->appendFile($this->basePath('plugins/ckeditor/ckeditor.js'));
20
 
21
 
22
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
23
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
24
 
25
 
26
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
27
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
28
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
29
 
30
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'));
31
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-responsive/css/responsive.bootstrap4.min.css'));
32
 
33
$this->inlineScript()->appendFile($this->basePath('plugins/datatables/jquery.dataTables.min.js'));
34
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js'));
35
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/dataTables.responsive.min.js'));
36
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/responsive.bootstrap4.min.js'));
37
 
38
 
39
$this->headLink()->appendStylesheet($this->basePath('plugins/select2/css/select2.min.css'));
40
$this->headLink()->appendStylesheet($this->basePath('plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css'));
41
 
42
$this->inlineScript()->appendFile($this->basePath('plugins/select2/js/select2.full.min.js'));
43
 
44
$this->inlineScript()->appendFile($this->basePath('plugins/moment/moment-with-locales.min.js'));
45
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css'));
46
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js'));
47
 
48
 
49
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
50
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
51
 
52
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
53
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-checkbox/awesome-bootstrap-checkbox.css'));
54
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-input-number/input-number-format.jquery.js'));
55
 
56
// bootbox Alert //
57
$this->inlineScript()->appendFile($this->basePath('plugins/bootbox/bootbox.min.js'));
58
 
59
// JsRender //
60
$this->inlineScript()->appendFile($this->basePath('plugins/jsrender/jsrender.min.js'));
61
 
62
 
63
// Page Styles
64
$this->headLink()->appendStylesheet($this->basePath('css/pages/self-evaluation.css'));
65
 
66
 
1388 eleazar 67
$status_active = \LeadersLinked\Model\RecruitmentSelectionVacancy::STATUS_ACTIVE;
68
$status_inactive = \LeadersLinked\Model\RecruitmentSelectionVacancy::STATUS_INACTIVE;
1384 efrain 69
 
70
$this->inlineScript()->captureStart();
71
echo <<<JS
72
jQuery(document).ready(function($) {
73
    var allowEdit = $allowEdit;
74
    var allowDelete = $allowDelete;
75
    var sections = [];
76
    /**
77
     * Get rows and set data table
78
     */
1414 eleazar 79
 
80
    });
1384 efrain 81
    var tableForm = $('#gridTable').dataTable({
82
        'processing': true,
83
        'serverSide': true,
84
        'searching': true,
85
        'order': [
86
            [0, 'asc']
87
        ],
88
        'ordering': true,
89
        'ordenable': true,
90
        'responsive': true,
91
        'select': false,
92
        'paging': true,
93
        'pagingType': 'simple_numbers',
94
        'ajax': {
95
            'url': '$routeDatatable',
96
            'type': 'get',
97
            'beforeSend': function(request) {
98
                NProgress.start();
99
            },
100
            'dataFilter': function(response) {
101
                var response = jQuery.parseJSON(response);
102
                var json = {};
103
                json.recordsTotal = 0;
104
                json.recordsFiltered = 0;
105
                json.data = [];
106
                if (response.success) {
107
                    json.recordsTotal = response.data.total;
108
                    json.recordsFiltered = response.data.total;
109
                    json.data = response.data.items;
110
                } else {
111
                    $.fn.showError(response.data)
112
                }
113
                return JSON.stringify(json);
114
            }
115
        },
116
        'language': {
117
            'sProcessing': 'LABEL_DATATABLE_SPROCESSING',
118
            'sLengthMenu': 'LABEL_DATATABLE_SLENGTHMENU',
119
            'sZeroRecords': 'LABEL_DATATABLE_SZERORECORDS',
120
            'sEmptyTable': 'LABEL_DATATABLE_SEMPTYTABLE',
121
            'sInfo': 'LABEL_DATATABLE_SINFO',
122
            'sInfoEmpty': 'LABEL_DATATABLE_SINFOEMPTY',
123
            'sInfoFiltered': 'LABEL_DATATABLE_SINFOFILTERED',
124
            'sInfoPostFix': '',
125
            'sSearch': 'LABEL_DATATABLE_SSEARCH',
126
            'sUrl': '',
127
            'sInfoThousands': ',',
128
            'sLoadingRecords': 'LABEL_DATATABLE_SLOADINGRECORDS',
129
            'oPaginate': {
130
                'sFirst': 'LABEL_DATATABLE_SFIRST',
131
                'sLast': 'LABEL_DATATABLE_SLAST',
132
                'sNext': 'LABEL_DATATABLE_SNEXT',
133
                'sPrevious': 'LABEL_DATATABLE_SPREVIOUS'
134
            },
135
            'oAria': {
136
                'sSortAscending': ': LABEL_DATATABLE_SSORTASCENDING',
137
                'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
138
            },
139
        },
140
        'drawCallback': function(settings) {
141
            NProgress.done();
142
            $('button.btn-delete').confirmation({
143
                rootSelector: 'button.btn-delete',
144
                title: 'LABEL_ARE_YOU_SURE',
145
                singleton: true,
146
                btnOkLabel: 'LABEL_YES',
147
                btnCancelLabel: 'LABEL_NO',
148
                onConfirm: function(value) {
149
                    action = $(this).data('href');
150
                    NProgress.start();
151
                    $.ajax({
152
                        'dataType': 'json',
153
                        'accept': 'application/json',
154
                        'method': 'post',
155
                        'url': action,
156
                    }).done(function(response) {
157
                        if (response['success']) {
158
                            $.fn.showSuccess(response['data']);
159
                            tableForm.fnDraw();
160
                        } else {
161
                            $.fn.showError(response['data']);
162
                        }
163
                    }).fail(function(jqXHR, textStatus, errorThrown) {
164
                        $.fn.showError(textStatus);
165
                    }).always(function() {
166
                        NProgress.done();
167
                    });
168
                },
169
            });
170
        },
171
        'aoColumns': [{
172
                'mDataProp': 'name'
173
            },
174
            {
175
                'mDataProp': 'job_description'
176
            },
177
            {
178
                'mDataProp': 'status'
179
            },
180
            {
181
                'mDataProp': 'actions'
182
            },
183
        ],
184
        'columnDefs': [{
185
                'targets': 0,
186
                'className': 'text-vertical-middle',
187
            },
188
            {
189
                'targets': 1,
190
                'className': 'text-vertical-middle',
191
            },
192
            {
193
                'targets': -2,
194
                'orderable': false,
195
                'className': 'text-center',
196
                'render': function(data, type, row) {
197
                    checked = data == 'a' ? ' checked="checked" ' : '';
198
                    return '<div class="checkbox checkbox-success">' +
199
                        '<input class="styled" type="checkbox" ' + checked + ' disabled="disabled">' +
200
                        '<label ></label></div>';
201
                }
202
            },
203
            {
204
                'targets': -1,
205
                'orderable': false,
206
                'render': function(data, type, row) {
207
                    s = '';
208
                    if (allowEdit) {
209
                        s = s + '<button class="btn btn-primary btn-edit-form" data-href="' + data['link_edit'] + '" data-toggle="tooltip" title="LABEL_EDIT"><i class="fa fa-pencil"></i> LABEL_EDIT </button>&nbsp;';
210
                    }
211
                    if (allowDelete) {
212
                        s = s + '<button class="btn btn-danger btn-delete" data-href="' + data['link_delete'] + '" data-toggle="tooltip" title="LABEL_DELETE"><i class="fa fa-trash"></i> LABEL_DELETE </button>&nbsp;';
213
                    }
214
                    if (allowReport) {
215
                        s = s + '<a class="btn btn-default btn-pdf" href="' + data['link_report'] + '" target="_blank" data-toggle="tooltip" title="LABEL_PDF"><i class="fa fa-file-o"></i> LABEL_PDF </button>&nbsp;';
216
                    }
217
                    return s;
218
                }
219
            }
220
        ],
221
    });
222
 
223
 
224
 
225
    /**
226
     * Clicked on edit form
227
     */
228
    $('body').on('click', 'button.btn-edit-form', function(e) {
229
        e.preventDefault();
230
        form_id = $(this).data('id')
231
        var action = $(this).data('href');
232
        $.ajax({
233
            'dataType': 'json',
234
            'accept': 'application/json',
235
            'method': 'get',
236
            'url': action,
237
        }).done(function(response) {
238
            if (response['success']) {
239
                $("#rows").html('');
240
                sections = [];
241
                $('#form-main').attr('action', action);
242
                $('#form-main #form-name').val(response['data']['name']);
1398 eleazar 243
                $('#form-main #job_description_id').val(response['data']['job_description_id']).trigger('change');
1410 eleazar 244
                $('#form-main #location_search').val(response['data']['location_search']);
1384 efrain 245
                $('#form-main #job_category_id').val(response['data']['job_category_id']).trigger('change');
246
                $('#form-main #industry_id').val(response['data']['industry_id']).trigger('change');
1417 eleazar 247
                $('#form-main #last_date').val(response['data']['last_date']).trigger('change');
1384 efrain 248
                $('#form-main #form-status').val(response['data']['status']);
1416 eleazar 249
                CKEDITOR.instances['description'].setData(response['data']['description']);
1384 efrain 250
 
1389 eleazar 251
 
1384 efrain 252
            } else {
253
                $.fn.showError(response['message'] || 'ERROR_UNKNOWN');
254
            }
255
        }).fail(function(jqXHR, textStatus, errorThrown) {
256
            $.fn.showError(textStatus);
257
        });
258
    });
1389 eleazar 259
 
1417 eleazar 260
    $('#form-main #last_date').datetimepicker({
261
        locale: 'es',
262
        format: 'DD/MM/YYYY'
1418 eleazar 263
    });
1384 efrain 264
    /**
265
     * Clicked new Form
266
     */
267
    $('button.btn-add-form').click(function(e) {
268
        $("#rows").html('');
269
        sections = [];
270
        $('#form-main').attr('action', '$routeAdd');
271
        $('#form-main #form-name').val('');
1398 eleazar 272
        $('#form-main #job_description_id').val('').trigger('change');
1410 eleazar 273
        $('#form-main #location_search').val('');
1384 efrain 274
        $('#form-main #job_category_id').val('').trigger('change');
275
        $('#form-main #industry_id').val('').trigger('change');
1417 eleazar 276
        $('#form-main #last_date').val('');
1384 efrain 277
        $('#form-main #form-status').val('$status_active');
1416 eleazar 278
        CKEDITOR.instances['description'].setData('');
1397 eleazar 279
        $('#row-lists').hide();
280
        $('#row-form').show();
281
        $('#form-main #form-name').focus();
1384 efrain 282
        return;
283
    });
284
 
285
 
286
    $.validator.addMethod('checkLocation', function (value, element, param) {
287
        var otherElement = $(param);
288
 
289
        return $.trim(otherElement.val()).length > 0;
290
    }, 'ERROR_PLACED_AUTOCOMPLETE_DOES_NOT_CONTAIN_GEOMETRY');
291
 
292
    var autocompleteLocation = new google.maps.places.Autocomplete(
293
        (document.getElementById('location_search')),
294
        {types: ['(cities)']}
295
    );
296
 
1403 eleazar 297
    $.fn.fillInAddressLocation = function() {
1410 eleazar 298
        var place = autocompleteLocation.getPlace();
299
        if (!place.geometry) {
300
            $.fn.showError('ERROR_PLACED_AUTOCOMPLETE_DOES_NOT_CONTAIN_GEOMETRY')
301
            return;
302
        } else {
303
            address1 = '';
304
            address2 = '';
305
            city1 = '';
306
            city2 = '';
307
            state = '';
308
            country = '';
309
            postal_code = '';
1403 eleazar 310
 
1410 eleazar 311
            formatted_address = place.formatted_address;
312
            latitude = place.geometry.location.lat();
313
            longitude = place.geometry.location.lng();
314
            var arrAddress = place.address_components;
315
 
316
            $.each(arrAddress, function(i, address_component) {
317
                if (address_component.types[0] == "route") {
318
                    address1 = address_component.long_name;
319
                }
320
                if (address_component.types[0] == "sublocality") {
321
                    address2 = address_component.long_name;
322
                }
323
                if (address_component.types[0] == "locality") {
324
                    city1 = address_component.long_name;
325
                }
326
                if (address_component.types[0] == "administrative_area_level_2") {
327
                    city2 = address_component.long_name;
328
                }
329
                if (address_component.types[0] == "administrative_area_level_1") {
330
                    state = address_component.long_name;
331
                }
332
                if (address_component.types[0] == "country") {
333
                    country = address_component.long_name;
334
                }
335
                if (address_component.types[0] == "postal_code") {
336
                    postal_code = address_component.long_name;
337
                }
338
            });
339
 
340
            $('#form-main #formatted_address').val(formatted_address);
341
            $('#form-main #address1').val(address1);
342
            $('#form-main #address2').val(address2);
343
            $('#form-main #city1').val(city1);
344
            $('#form-main #city2').val(city2);
345
            $('#form-main #state').val(state);
346
            $('#form-main #country').val(country);
347
            $('#form-main #postal_code').val(postal_code);
348
            $('#form-main #latitude').val(latitude);
349
            $('#form-main #longitude').val(longitude);
350
        }
1403 eleazar 351
    }
352
 
1384 efrain 353
    /**
354
     * Clicked cancel new/edit Form
355
     */
356
    $('button.btn-edit-cancel').click(function(e) {
357
        $('#row-form').hide();
358
        $('#row-lists').show();
359
        return;
360
    });
361
    /**
362
     * Clicked save and continue new Form
363
     */
364
    $('button.btn-form-save-continue').click(function(e) {
365
        for (var instanceName in CKEDITOR.instances) {
366
            CKEDITOR.instances[instanceName].updateElement();
367
        }
368
        saveData(1);
369
    });
370
    /**
371
     * Clicked save and close new/edit Form
372
     */
373
    $('button.btn-form-save-close').click(function(e) {
374
        for (var instanceName in CKEDITOR.instances) {
375
            CKEDITOR.instances[instanceName].updateElement();
376
        }
377
        saveData(0);
378
    });
379
    /**
380
     * Save Form Data
381
     */
382
    const saveData = (action) => {
383
        if ($('#form-name').val() == '') {
384
            $.fn.showError('ERROR_ENTER_NAME');
1416 eleazar 385
        } else if ($('#description').val() == '') {
1384 efrain 386
            $.fn.showError('ERROR_ENTER_DESCRIPTION');
387
        } else if ($('#form-category').val() == '') {
388
            $.fn.showError('ERROR_ENTER_CATEGORY');
389
        } else if ($('#form-industry').val() == '') {
390
            $.fn.showError('ERROR_ENTER_INDUSTRY');
391
        } else if ($('#form-text').val() == '') {
392
            $.fn.showError('ERROR_ENTER_TEXT');
393
        } else if ($('#form-status').val() == '') {
394
            $.fn.showError('ERROR_SELECT_STATUS');
395
        } else if ($('#job_description_id').val() == '') {
396
            $.fn.showError('ERROR_SELECT_JOB_DESCRIPTION');
397
        } else {
398
            $.ajax({
399
                'dataType': 'json',
400
                'method': 'post',
401
                'url': $('#form-main').attr('action'),
402
                'data': {
403
                    'name': $('#form-main #form-name').val(),
404
                    'job_description_id': $('#form-main #job_description_id').val(),
1424 eleazar 405
                    'location_search' :$('#form-main #location_search').val(),
1403 eleazar 406
                    'formatted_address': $('#form-main #formatted_address').val(),
407
                    'address1': $('#form-main #address1').val(),
408
                    'address2': $('#form-main #address2').val(),
409
                    'country': $('#form-main #country').val(),
410
                    'state': $('#form-main #state').val(),
411
                    'city1': $('#form-main #city1').val(),
412
                    'city2': $('#form-main #city2').val(),
413
                    'postal_code': $('#form-main #postal_code').val(),
414
                    'latitude': $('#form-main #latitude').val(),
415
                    'longitude': $('#form-main #longitude').val(),
1384 efrain 416
                    'job_category_id' :$('#form-main #job_category_id').val(),
417
                    'industry_id' :$('#form-main #industry_id').val(),
1421 eleazar 418
                    'last_date': $('#form-main #last_date').val(),
1384 efrain 419
                    'status': $('#form-main #form-status').val(),
1414 eleazar 420
                    'description': $('#form-main #description').val(),
1384 efrain 421
                    'content': JSON.stringify(sections)
422
                },
423
            }).done(function(response) {
424
                if (response['success']) {
425
                    $.fn.showSuccess(response['data']);
426
                    if (action == 1) {
427
                        $('#form-main').attr('action', response['action_edit']);
428
                    } else {
429
                        $('#row-form').hide();
430
                        $('#row-lists').show();
431
                        /*---------- Reset Form -------- */
432
                        $('#form-main')[0].reset();
433
                        tableForm.fnDraw();
434
                    }
435
                    return;
436
                } else {
437
                    $.fn.showError(response['message'] || 'ERROR_UNKNOWN');
438
                    return;
439
                }
440
            });
441
        }
442
    }
443
    /**
444
     * Remove Html Tags
445
     */
446
    const removeTags = (str) => str.toString().replace(/(<([^>]+)>)/ig, '')
1389 eleazar 447
 
448
 
1384 efrain 449
    /**
450
     * Remove Option
451
     */
452
    const removeOption = (id_section, id) => {
453
        sections.map((item) => {
454
            if (item.id_section == id_section) {
455
                item.options = item.options.filter((opt) => opt.id_option != id) || []
456
            }
457
        });
458
        return renderData(sections);
459
    }
460
    /**
461
     * Clicked refresh button
462
     */
463
    $('button.btn-refresh').click(function(e) {
464
        tableForm.fnDraw();
465
        return;
466
    });
467
    /**
468
     * Initialize select Jobdescription
469
     */
470
    $('#job_description_id').select2({
471
        theme: 'bootstrap4',
472
        width: '100%',
473
    });
474
 
475
    /**
476
     * Initialize select Jobcategory
477
     */
478
    $('#job_category_id').select2({
479
        theme: 'bootstrap4',
480
        width: '100%',
481
    });
482
 
483
     /**
484
     * Initialize select industry
485
     */
486
    $('#industry_id').select2({
487
        theme: 'bootstrap4',
488
        width: '100%',
489
    });
1400 eleazar 490
 
1384 efrain 491
     /**
492
     * Initialize select Location
493
     */
494
 
1410 eleazar 495
    var validatorLocation = $('#location_search').validate({
1384 efrain 496
        debug: true,
497
        onclick: false,
498
        onkeyup: false,
499
        onfocusout: false,
500
        ignore: [],
501
        rules: {
502
            'location_search': {
503
                required: true,
1410 eleazar 504
                checkLocation: '#location_search #latitude'
1384 efrain 505
            }
506
        },
507
        submitHandler: function(form)
508
        {
509
            NProgress.start();
510
            $.ajax({
511
                'dataType'  : 'json',
512
                'accept'    : 'application/json',
513
                'method'    : 'post',
514
                'url'       :  route_location,
1410 eleazar 515
                'data'      :  $('#location_search').serialize(),
1384 efrain 516
            }).done(function(response) {
517
 
518
 
519
 
520
                if(response['success']) {
521
                    $('#overview-location').html(response.data);
522
                    $("#location-box").modal('hide');
523
                } else {
524
                    validatorLocation.resetForm();
525
                    $.fn.showError(response['data']);
526
                }
527
            }).fail(function( jqXHR, textStatus, errorThrown) {
528
                $.fn.showError(textStatus);
529
            }).always(function() {
530
                NProgress.done();
531
            });
532
            return false;
533
        },
534
        invalidHandler: function(form, validator) {
535
 
536
        }
537
    });
538
 
539
    $('body').on('click', 'a.btn-location-edit', function(e) {
540
        e.preventDefault();
541
 
1410 eleazar 542
        $('#form-main #location_search').val('');
543
        $('#form-main #formatted_address').val('');
544
        $('#form-main #address1').val('');
545
        $('#form-main #address2').val('');
546
        $('#form-main #country').val('');
547
        $('#form-main #state').val('');
548
        $('#form-main #city1').val('');
549
        $('#form-main #city2').val('');
550
        $('#form-main #postal_code').val('');
551
        $('#form-main #latitude').val('');
552
        $('#form-main #longitude').val('');
1384 efrain 553
        validatorLocation.resetForm();
554
 
555
        $("#location-box").modal('show');
556
    });
557
 
558
    $('.btn-location-close').on("click", function(e){
559
        e.preventDefault();
560
 
561
        $("#location-box").modal('hide');
562
        return false;
563
    });
1407 eleazar 564
 
565
    autocompleteLocation.addListener('place_changed', $.fn.fillInAddressLocation);
1419 eleazar 566
 
1384 efrain 567
JS;
568
 
569
$this->inlineScript()->captureEnd();
570
?>
571
<!-- Content Header (Page header) -->
572
<section class="content-header">
573
   <div class="container-fluid">
574
      <div class="row mb-2">
575
         <div class="col-sm-12">
576
            <h1>LABEL_RECRUITMENT_AND_SELECTION</h1>
577
         </div>
578
      </div>
579
   </div>
580
   <!-- /.container-fluid -->
581
</section>
582
<section class="content">
583
<div class="container-fluid" id="row-lists">
584
   <div class="row">
585
      <div class="col-12">
586
         <div class="card">
587
            <div class="card-body">
588
               <table id="gridTable" class="table   table-hover">
589
                  <thead>
590
                     <tr>
591
                        <th style="width:25%">LABEL_NAME</th>
592
                        <th style="width:20%">LABEL_JOB_DESCRIPTION</th>
593
                        <th style="width:10%">LABEL_ACTIVE</th>
594
                        <th style="width:25%">LABEL_ACTIONS</th>
595
                     </tr>
596
                  </thead>
597
                  <tbody></tbody>
598
               </table>
599
            </div>
600
            <div class="card-footer clearfix">
601
               <div style="float:right;">
602
                  <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
603
                  <?php if ($allowAdd) : ?>
604
                  <button type="button" class="btn btn-primary btn-add-form"><i class="fa fa-plus"></i> LABEL_ADD </button>
605
                  <?php endif; ?>
606
               </div>
607
            </div>
608
         </div>
609
      </div>
610
   </div>
611
</div>
612
<!-- Create/Edit Form -->
613
<div class="row" id="row-form" style="display: none; padding: 16px;">
614
   <div class="col-xs-12 col-md-12">
615
      <form action="#" name="form-main" id="form-main">
1424 eleazar 616
        <input type="hidden" name="formatted_address" id="formatted_address" />
1410 eleazar 617
        <input type="hidden" name="address1" id="address1" />
618
        <input type="hidden" name="address2" id="address2" />
619
        <input type="hidden" name="country" id="country" />
620
        <input type="hidden" name="state" id="state" />
621
        <input type="hidden" name="city1" id="city1" />
622
        <input type="hidden" name="city2" id="city2" />
623
        <input type="hidden" name="postal_code" id="postal_code" />
624
        <input type="hidden" name="latitude" id="latitude" />
625
        <input type="hidden" name="longitude" id="longitude" />
1384 efrain 626
         <div class="form-group">
627
            <label for="form-name">LABEL_FIRST_NAME</label>
628
            <input type="text" name="form-name" id="form-name" class="form-control" maxlength="50" />
629
         </div>
630
         <div class="form-group">
631
            <label for="job_description_id">LABEL_POSITION_EVALUATED</label>
632
            <select name="job_description_id" id="job_description_id" class="form-control">
633
               <option value="">LABEL_SELECT</option>
634
               <?php foreach ($jobsDescription as $rs): ?>
635
               <option value="<?php echo $rs->uuid;?>"><?php echo $rs->name;?></option>
636
               <?php endforeach; ?>
637
            </select>
638
         </div>
639
         <div class="form-group">
1410 eleazar 640
            <label for="location_search">LABEL_LOCATION</label>
1407 eleazar 641
            <input type="text" name="location_search" id="location_search" class="form-control" maxlength="50" />
1384 efrain 642
         </div>
643
         <div class="form-group">
644
            <label for="job_category_id">LABEL_JOB_CATEGORY</label>
645
            <select name="job_category_id" id="job_category_id" class="form-control">
646
               <option value="">LABEL_SELECT</option>
647
               <?php foreach ($jobCategory as $rs): ?>
648
               <option value="<?php echo $rs->uuid;?>"><?php echo $rs->name;?></option>
649
               <?php endforeach; ?>
650
            </select>
651
         </div>
652
         <div class="form-group">
1398 eleazar 653
            <label for="industry_id">LABEL_INDUSTRY</label>
654
            <select name="industry_id" id="industry_id" class="form-control">
1384 efrain 655
               <option value="">LABEL_SELECT</option>
656
               <?php foreach ($industry as $rs): ?>
657
               <option value="<?php echo $rs->uuid;?>"><?php echo $rs->name;?></option>
658
               <?php endforeach; ?>
659
            </select>
660
         </div>
1414 eleazar 661
         <div class="form-group">
1417 eleazar 662
            <label for="last_date">LABEL_LAST_DATE_OF_APPLICATION</label>
663
            <input type="text" name="last_date" id="last_date" class="form-control" maxlength="50" />
1414 eleazar 664
         </div>
665
            <label for="description">LABEL_DESCRIPTION</label>
1384 efrain 666
            <!--  ckeditor -->
1414 eleazar 667
            <textarea  name="description" id="description" rows="5" class="ckeditor form-control"></textarea>
1384 efrain 668
         </div>
669
         <div class="form-group">
670
            <label for="form-status">LABEL_STATUS</label>
671
            <select name="form-status" id="form-status" class="form-control">
672
               <option value="<?php echo $status_inactive; ?>">LABEL_INACTIVE</option>
673
               <option value="<?php echo $status_active; ?>">LABEL_ACTIVE</option>
674
            </select>
675
         </div>
1413 eleazar 676
 
1384 efrain 677
         <br />
678
         <div class="row">
679
            <div class="col-xs-12 col-md-12">
680
               <div class="panel-group" id="rows"></div>
681
            </div>
682
         </div>
1389 eleazar 683
 
1384 efrain 684
         <div class="form-group">
1413 eleazar 685
             <button type="button" class="btn btn-primary btn-form-save-close">LABEL_SAVE</button>
1384 efrain 686
            <button type="button" class="btn btn-secondary btn-edit-cancel">LABEL_CANCEL</button>
687
         </div>
688
      </form>
689
   </div>
690
</div>
691
<!-- Create/Edit Form-->
692
 
693
</section>