| 1384 | efrain | 1 | <?php
 | 
        
           |  |  | 2 | $acl = $this->viewModel()->getRoot()->getVariable('acl');
 | 
        
           |  |  | 3 | $currentUser = $this->currentUserHelper();
 | 
        
           |  |  | 4 |   | 
        
           |  |  | 5 | $roleName = $currentUser->getUserTypeId();
 | 
        
           |  |  | 6 |   | 
        
           |  |  | 7 | $routeDashboard = $this->url('dashboard');
 | 
        
           | 1477 | efrain | 8 | $routeDatatable = $this->url('recruitment-and-selection/vacancies');
 | 
        
           |  |  | 9 | $routeAdd       = $this->url('recruitment-and-selection/vacancies/add');
 | 
        
           | 1384 | efrain | 10 |   | 
        
           | 15457 | efrain | 11 |   | 
        
           | 1477 | efrain | 12 | $allowAdd = $acl->isAllowed($roleName, 'recruitment-and-selection/vacancies/add') ? 1 : 0;
 | 
        
           |  |  | 13 | $allowEdit = $acl->isAllowed($roleName, 'recruitment-and-selection/vacancies/edit') ? 1 : 0;
 | 
        
           |  |  | 14 | $allowDelete = $acl->isAllowed($roleName, 'recruitment-and-selection/vacancies/delete') ? 1 : 0;
 | 
        
           |  |  | 15 |   | 
        
           |  |  | 16 |   | 
        
           | 15457 | efrain | 17 | $this->inlineScript()->appendFile('https://maps.googleapis.com/maps/api/js?key=' . $google_map_key . '&libraries=places');
 | 
        
           |  |  | 18 |   | 
        
           |  |  | 19 |   | 
        
           | 16822 | efrain | 20 | $this->inlineScript()->appendFile($this->basePath('assets/vendors/ckeditor/ckeditor.js'));
 | 
        
           | 15457 | efrain | 21 |   | 
        
           |  |  | 22 |   | 
        
           | 16822 | efrain | 23 | $this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
 | 
        
           |  |  | 24 | $this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
 | 
        
           | 15457 | efrain | 25 |   | 
        
           |  |  | 26 |   | 
        
           |  |  | 27 |   | 
        
           | 16929 | efrain | 28 |   | 
        
           |  |  | 29 |   | 
        
           |  |  | 30 |   | 
        
           | 16822 | efrain | 31 | $this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.css'));
 | 
        
           |  |  | 32 | $this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.css'));
 | 
        
           | 15457 | efrain | 33 |   | 
        
           | 16822 | efrain | 34 | $this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net/jquery.dataTables.js'));
 | 
        
           |  |  | 35 | $this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.js'));
 | 
        
           |  |  | 36 | $this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/dataTables.responsive.min.js'));
 | 
        
           |  |  | 37 | $this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.min.js'));
 | 
        
           | 15457 | efrain | 38 |   | 
        
           |  |  | 39 |   | 
        
           | 16822 | efrain | 40 | $this->headLink()->appendStylesheet($this->basePath('assets/vendors/select2/css/select2.min.css'));
 | 
        
           | 16918 | efrain | 41 | $this->headLink()->appendStylesheet($this->basePath('assets/vendors/select2-bootstrap5-theme/select2-bootstrap-5-theme.css'));
 | 
        
           | 1384 | efrain | 42 |   | 
        
           | 16822 | efrain | 43 | $this->inlineScript()->appendFile($this->basePath('assets/vendors/select2/js/select2.full.min.js'));
 | 
        
           | 1384 | efrain | 44 |   | 
        
           | 16822 | efrain | 45 | $this->inlineScript()->appendFile($this->basePath('assets/vendors/moment/moment-with-locales.min.js'));
 | 
        
           |  |  | 46 | $this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css'));
 | 
        
           |  |  | 47 | $this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js'));
 | 
        
           | 15457 | efrain | 48 |   | 
        
           |  |  | 49 |   | 
        
           | 16822 | efrain | 50 | $this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
 | 
        
           |  |  | 51 | $this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
 | 
        
           | 1384 | efrain | 52 |   | 
        
           | 12264 | stevensc | 53 |   | 
        
           | 16822 | efrain | 54 |   | 
        
           |  |  | 55 | $this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-input-number/input-number-format.jquery.js'));
 | 
        
           |  |  | 56 |   | 
        
           | 15457 | efrain | 57 | // bootbox Alert //
 | 
        
           |  |  | 58 |   | 
        
           | 16822 | efrain | 59 |   | 
        
           | 15457 | efrain | 60 | // JsRender //
 | 
        
           | 16822 | efrain | 61 | $this->inlineScript()->appendFile($this->basePath('assets/vendors/jsrender/jsrender.min.js'));
 | 
        
           | 15457 | efrain | 62 |   | 
        
           |  |  | 63 |   | 
        
           |  |  | 64 | // Page Styles
 | 
        
           |  |  | 65 | $this->headLink()->appendStylesheet($this->basePath('css/pages/self-evaluation.css'));
 | 
        
           |  |  | 66 |   | 
        
           |  |  | 67 |   | 
        
           |  |  | 68 | $status_active = \LeadersLinked\Model\RecruitmentSelectionVacancy::STATUS_ACTIVE;
 | 
        
           |  |  | 69 | $status_inactive = \LeadersLinked\Model\RecruitmentSelectionVacancy::STATUS_INACTIVE;
 | 
        
           |  |  | 70 |   | 
        
           |  |  | 71 | $this->inlineScript()->captureStart();
 | 
        
           |  |  | 72 | echo <<<JS
 | 
        
           |  |  | 73 | jQuery(document).ready(function($) {
 | 
        
           | 15461 | efrain | 74 |   | 
        
           |  |  | 75 |   | 
        
           |  |  | 76 |   | 
        
           | 15457 | efrain | 77 |     var allowEdit = $allowEdit;
 | 
        
           |  |  | 78 |     var allowDelete = $allowDelete;
 | 
        
           |  |  | 79 |   | 
        
           | 15461 | efrain | 80 |   | 
        
           | 15457 | efrain | 81 |     var gridTable = $('#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();
 | 
        
           | 16822 | efrain | 142 |   | 
        
           | 15457 | efrain | 143 |         },
 | 
        
           |  |  | 144 |          'aoColumns': [
 | 
        
           |  |  | 145 |                 { 'mDataProp': 'name' },
 | 
        
           |  |  | 146 |                 { 'mDataProp': 'job_description' },
 | 
        
           |  |  | 147 |                 { 'mDataProp': 'last_date' },
 | 
        
           |  |  | 148 |                 { 'mDataProp': 'status' },
 | 
        
           |  |  | 149 |                 { 'mDataProp': 'actions' },
 | 
        
           |  |  | 150 |             ],
 | 
        
           |  |  | 151 |         'columnDefs': [
 | 
        
           |  |  | 152 |             {
 | 
        
           |  |  | 153 |                 'targets': 0,
 | 
        
           |  |  | 154 |                 'className': 'text-vertical-middle',
 | 
        
           |  |  | 155 |             },
 | 
        
           |  |  | 156 |             {
 | 
        
           |  |  | 157 |                 'targets': 1,
 | 
        
           |  |  | 158 |                 'className': 'text-vertical-middle',
 | 
        
           |  |  | 159 |             },
 | 
        
           |  |  | 160 |             {
 | 
        
           |  |  | 161 |                 'targets': 2,
 | 
        
           |  |  | 162 |                 'className': 'text-vertical-middle',
 | 
        
           |  |  | 163 |             },
 | 
        
           |  |  | 164 |              {
 | 
        
           |  |  | 165 |                 'targets': 3,
 | 
        
           |  |  | 166 |                 'className': 'text-vertical-middle',
 | 
        
           |  |  | 167 |             },
 | 
        
           |  |  | 168 |             {
 | 
        
           |  |  | 169 |                 'targets': -1,
 | 
        
           |  |  | 170 |                 'orderable': false,
 | 
        
           |  |  | 171 |                 'render': function(data, type, row) {
 | 
        
           |  |  | 172 |                     s = '';
 | 
        
           |  |  | 173 |                     if (allowEdit) {
 | 
        
           | 16906 | efrain | 174 |                         s = s + '<button class="btn btn-primary btn-edit" data-href="' + data['link_edit'] + '" data-toggle="tooltip" title="LABEL_EDIT"><i class="fa fa-pen"></i> LABEL_EDIT </button> ';
 | 
        
           | 15457 | efrain | 175 |                     }
 | 
        
           |  |  | 176 |                     if (allowDelete) {
 | 
        
           |  |  | 177 |                         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> ';
 | 
        
           |  |  | 178 |                     }
 | 
        
           |  |  | 179 |                     return s;
 | 
        
           |  |  | 180 |                 }
 | 
        
           |  |  | 181 |             }
 | 
        
           |  |  | 182 |         ],
 | 
        
           |  |  | 183 |     });
 | 
        
           |  |  | 184 |   | 
        
           |  |  | 185 |     $.validator.addMethod('checkLocation', function (value, element, param) {
 | 
        
           |  |  | 186 |         var otherElement = $(param);
 | 
        
           |  |  | 187 |         return $.trim(otherElement.val()).length > 0;
 | 
        
           |  |  | 188 |     }, 'ERROR_PLACED_AUTOCOMPLETE_DOES_NOT_CONTAIN_GEOMETRY');
 | 
        
           |  |  | 189 |   | 
        
           | 15461 | efrain | 190 |   | 
        
           | 15457 | efrain | 191 |     var autocompleteLocation = new google.maps.places.Autocomplete(
 | 
        
           |  |  | 192 |         (document.getElementById('location_search')),
 | 
        
           |  |  | 193 |         {types: ['(cities)']}
 | 
        
           |  |  | 194 |     );
 | 
        
           |  |  | 195 |   | 
        
           | 15461 | efrain | 196 |   | 
        
           | 15457 | efrain | 197 |     $.fn.fillInAddressLocation = function() {
 | 
        
           | 15461 | efrain | 198 |   | 
        
           |  |  | 199 |   | 
        
           | 15457 | efrain | 200 |         var place = autocompleteLocation.getPlace();
 | 
        
           |  |  | 201 |         if (!place.geometry) {
 | 
        
           |  |  | 202 |             $.fn.showError('ERROR_PLACED_AUTOCOMPLETE_DOES_NOT_CONTAIN_GEOMETRY')
 | 
        
           |  |  | 203 |             return;
 | 
        
           |  |  | 204 |         } else {
 | 
        
           | 15461 | efrain | 205 |   | 
        
           | 15457 | efrain | 206 |             address1 = '';
 | 
        
           |  |  | 207 |             address2 = '';
 | 
        
           |  |  | 208 |             city1 = '';
 | 
        
           |  |  | 209 |             city2 = '';
 | 
        
           |  |  | 210 |             state = '';
 | 
        
           |  |  | 211 |             country = '';
 | 
        
           |  |  | 212 |             postal_code = '';
 | 
        
           |  |  | 213 |   | 
        
           |  |  | 214 |             formatted_address = place.formatted_address;
 | 
        
           |  |  | 215 |             latitude = place.geometry.location.lat();
 | 
        
           |  |  | 216 |             longitude = place.geometry.location.lng();
 | 
        
           |  |  | 217 |             var arrAddress = place.address_components;
 | 
        
           | 15461 | efrain | 218 |   | 
        
           |  |  | 219 |   | 
        
           | 15457 | efrain | 220 |             $.each(arrAddress, function(i, address_component) {
 | 
        
           |  |  | 221 |                 if (address_component.types[0] == "route") {
 | 
        
           |  |  | 222 |                     address1 = address_component.long_name;
 | 
        
           |  |  | 223 |                 }
 | 
        
           |  |  | 224 |                 if (address_component.types[0] == "sublocality") {
 | 
        
           |  |  | 225 |                     address2 = address_component.long_name;
 | 
        
           |  |  | 226 |                 }
 | 
        
           |  |  | 227 |                 if (address_component.types[0] == "locality") {
 | 
        
           |  |  | 228 |                     city1 = address_component.long_name;
 | 
        
           |  |  | 229 |                 }
 | 
        
           |  |  | 230 |                 if (address_component.types[0] == "administrative_area_level_2") {
 | 
        
           |  |  | 231 |                     city2 = address_component.long_name;
 | 
        
           |  |  | 232 |                 }
 | 
        
           |  |  | 233 |                 if (address_component.types[0] == "administrative_area_level_1") {
 | 
        
           |  |  | 234 |                     state = address_component.long_name;
 | 
        
           |  |  | 235 |                 }
 | 
        
           |  |  | 236 |                 if (address_component.types[0] == "country") {
 | 
        
           |  |  | 237 |                     country = address_component.long_name;
 | 
        
           |  |  | 238 |                 }
 | 
        
           |  |  | 239 |                 if (address_component.types[0] == "postal_code") {
 | 
        
           |  |  | 240 |                     postal_code = address_component.long_name;
 | 
        
           |  |  | 241 |                 }
 | 
        
           |  |  | 242 |             });
 | 
        
           |  |  | 243 |   | 
        
           | 15461 | efrain | 244 |   | 
        
           |  |  | 245 |             $('#form #formatted_address').val(formatted_address);
 | 
        
           |  |  | 246 |             $('#form #address1').val(address1);
 | 
        
           |  |  | 247 |             $('#form #address2').val(address2);
 | 
        
           |  |  | 248 |             $('#form #city1').val(city1);
 | 
        
           |  |  | 249 |             $('#form #city2').val(city2);
 | 
        
           |  |  | 250 |             $('#form #state').val(state);
 | 
        
           |  |  | 251 |             $('#form #country').val(country);
 | 
        
           |  |  | 252 |             $('#form #postal_code').val(postal_code);
 | 
        
           |  |  | 253 |             $('#form #latitude').val(latitude);
 | 
        
           |  |  | 254 |             $('#form #longitude').val(longitude);
 | 
        
           |  |  | 255 |   | 
        
           | 9427 | stevensc | 256 |         }
 | 
        
           | 15457 | efrain | 257 |     }
 | 
        
           |  |  | 258 |   | 
        
           | 15461 | efrain | 259 |   | 
        
           |  |  | 260 |   | 
        
           |  |  | 261 |     autocompleteLocation.addListener('place_changed', $.fn.fillInAddressLocation);
 | 
        
           |  |  | 262 |   | 
        
           |  |  | 263 |         var validator = $('#form').validate({
 | 
        
           |  |  | 264 |             debug: true,
 | 
        
           |  |  | 265 |             onclick: true,
 | 
        
           |  |  | 266 |             onkeyup: false,
 | 
        
           |  |  | 267 |             ignore: [],
 | 
        
           |  |  | 268 |             rules: {
 | 
        
           |  |  | 269 |                 'name': {
 | 
        
           |  |  | 270 |                     required: true,
 | 
        
           |  |  | 271 |                     maxlength: 128,
 | 
        
           |  |  | 272 |                 },
 | 
        
           |  |  | 273 |                 'job_description_id': {
 | 
        
           |  |  | 274 |                     required: true,
 | 
        
           |  |  | 275 |   | 
        
           |  |  | 276 |                 },
 | 
        
           |  |  | 277 |                 'job_category_id' : {
 | 
        
           |  |  | 278 |                     required: true,
 | 
        
           |  |  | 279 |   | 
        
           |  |  | 280 |                 },
 | 
        
           |  |  | 281 |                 'industry_id'  : {
 | 
        
           |  |  | 282 |                     required: true,
 | 
        
           |  |  | 283 |   | 
        
           |  |  | 284 |                 },
 | 
        
           |  |  | 285 |                 'description': {
 | 
        
           |  |  | 286 |                     updateCkeditor:function() {
 | 
        
           |  |  | 287 |                             CKEDITOR.instances.description.updateElement();
 | 
        
           |  |  | 288 |                     },
 | 
        
           |  |  | 289 |                     required: true
 | 
        
           |  |  | 290 |                 },
 | 
        
           |  |  | 291 |                 'location_search': {
 | 
        
           |  |  | 292 |                     required: true,
 | 
        
           | 15462 | efrain | 293 |                     //checkLocation: '#form #latitude',
 | 
        
           | 15461 | efrain | 294 |                 },
 | 
        
           |  |  | 295 |                 'last_date' : {
 | 
        
           |  |  | 296 |                     required: true,
 | 
        
           |  |  | 297 |   | 
        
           |  |  | 298 |                 },
 | 
        
           |  |  | 299 |                 'status': {
 | 
        
           |  |  | 300 |                     required: false,
 | 
        
           |  |  | 301 |   | 
        
           |  |  | 302 |                 },
 | 
        
           |  |  | 303 |             },
 | 
        
           |  |  | 304 |             submitHandler: function(form)
 | 
        
           |  |  | 305 |             {
 | 
        
           |  |  | 306 |   | 
        
           |  |  | 307 |                 $.ajax({
 | 
        
           |  |  | 308 |                     'dataType'  : 'json',
 | 
        
           |  |  | 309 |                     'accept'    : 'application/json',
 | 
        
           |  |  | 310 |                     'method'    : 'post',
 | 
        
           |  |  | 311 |                     'url'       :  $('#form').attr('action'),
 | 
        
           |  |  | 312 |                     'data'      :  $('#form').serialize()
 | 
        
           |  |  | 313 |                 }).done(function(response) {
 | 
        
           |  |  | 314 |                     NProgress.start();
 | 
        
           |  |  | 315 |                     if(response['success']) {
 | 
        
           |  |  | 316 |                         $.fn.showSuccess(response['data']);
 | 
        
           |  |  | 317 |   | 
        
           |  |  | 318 |                         $('#section-title').html('LABEL_VACANCIES');
 | 
        
           |  |  | 319 |                         $('#row-form').hide();
 | 
        
           |  |  | 320 |                         $('#row-list').show();
 | 
        
           |  |  | 321 |   | 
        
           |  |  | 322 |   | 
        
           |  |  | 323 |                         gridTable.api().ajax.reload(null, false);
 | 
        
           |  |  | 324 |                     } else {
 | 
        
           |  |  | 325 |                         validator.resetForm();
 | 
        
           |  |  | 326 |                         if(jQuery.type(response['data']) == 'string') {
 | 
        
           |  |  | 327 |                             $.fn.showError(response['data']);
 | 
        
           |  |  | 328 |                         } else  {
 | 
        
           |  |  | 329 |                             $.each(response['data'], function( fieldname, errors ) {
 | 
        
           |  |  | 330 |                                 $.fn.showFormErrorValidator('#form #' + fieldname, errors);
 | 
        
           |  |  | 331 |                             });
 | 
        
           |  |  | 332 |                         }
 | 
        
           |  |  | 333 |                     }
 | 
        
           |  |  | 334 |                 }).fail(function( jqXHR, textStatus, errorThrown) {
 | 
        
           |  |  | 335 |                     $.fn.showError(textStatus);
 | 
        
           |  |  | 336 |                 }).always(function() {
 | 
        
           |  |  | 337 |                     NProgress.done();
 | 
        
           |  |  | 338 |   | 
        
           |  |  | 339 |                 });
 | 
        
           |  |  | 340 |                 return false;
 | 
        
           |  |  | 341 |             },
 | 
        
           |  |  | 342 |             invalidHandler: function(form, validator) {
 | 
        
           |  |  | 343 |   | 
        
           |  |  | 344 |             }
 | 
        
           |  |  | 345 |         });
 | 
        
           |  |  | 346 |   | 
        
           |  |  | 347 |   | 
        
           |  |  | 348 |   | 
        
           |  |  | 349 |   | 
        
           |  |  | 350 |   | 
        
           |  |  | 351 |   | 
        
           | 15457 | efrain | 352 |   | 
        
           | 15461 | efrain | 353 |   | 
        
           |  |  | 354 |     $('body').on('click', 'button.btn-edit', function(e) {
 | 
        
           |  |  | 355 |         e.preventDefault();
 | 
        
           |  |  | 356 |         form_id = $(this).data('id')
 | 
        
           |  |  | 357 |         var action = $(this).data('href');
 | 
        
           |  |  | 358 |         $.ajax({
 | 
        
           |  |  | 359 |             'dataType': 'json',
 | 
        
           |  |  | 360 |             'accept': 'application/json',
 | 
        
           |  |  | 361 |             'method': 'get',
 | 
        
           |  |  | 362 |             'url': action,
 | 
        
           |  |  | 363 |         }).done(function(response) {
 | 
        
           |  |  | 364 |             if (response['success']) {
 | 
        
           |  |  | 365 |                 $('#section-title').html('LABEL_EDIT_VACANCY');
 | 
        
           |  |  | 366 |   | 
        
           |  |  | 367 |                 $('#form').attr('action', action);
 | 
        
           |  |  | 368 |                 $('#form #name').val(response['data']['name']);
 | 
        
           |  |  | 369 |                 $('#form #job_description_id').val(response['data']['job_description_id']).trigger('change');
 | 
        
           |  |  | 370 |                 $('#form #job_category_id').val(response['data']['job_category_id']).trigger('change');
 | 
        
           |  |  | 371 |                 $('#form #industry_id').val(response['data']['industry_id']).trigger('change');
 | 
        
           |  |  | 372 |                 $('#form #location_search').val(response['data']['location_search']);
 | 
        
           |  |  | 373 |                 $('#form #formatted_address').val(response['data']['formatted_address']);
 | 
        
           |  |  | 374 |                 $('#form #address1').val(response['data']['address1']);
 | 
        
           |  |  | 375 |                 $('#form #address2').val(response['data']['address2']);
 | 
        
           |  |  | 376 |                 $('#form #city1').val(response['data']['city1']);
 | 
        
           |  |  | 377 |                 $('#form #city2').val(response['data']['city2']);
 | 
        
           |  |  | 378 |                 $('#form #state').val(response['data']['state']);
 | 
        
           |  |  | 379 |                 $('#form #country').val(response['data']['country']);
 | 
        
           |  |  | 380 |                 $('#form #postal_code').val(response['data']['postal_code']);
 | 
        
           |  |  | 381 |                 $('#form #latitude').val(response['data']['latitude']);
 | 
        
           |  |  | 382 |                 $('#form #longitude').val(response['data']['longitude']);
 | 
        
           |  |  | 383 |                 $('#form #last_date').val(response['data']['last_date']);
 | 
        
           |  |  | 384 |                 $('#form #status').bootstrapToggle(response['data']['status'] == '$status_active' ? 'on' : 'off')
 | 
        
           |  |  | 385 |                 CKEDITOR.instances['description'].setData(response['data']['description']);
 | 
        
           |  |  | 386 |                 $('#row-list').hide();
 | 
        
           |  |  | 387 |                 $('#row-form').show();
 | 
        
           |  |  | 388 |   | 
        
           |  |  | 389 |             } else {
 | 
        
           |  |  | 390 |                 $.fn.showError(response['message']);
 | 
        
           |  |  | 391 |             }
 | 
        
           |  |  | 392 |         }).fail(function(jqXHR, textStatus, errorThrown) {
 | 
        
           |  |  | 393 |             $.fn.showError(textStatus);
 | 
        
           |  |  | 394 |         });
 | 
        
           |  |  | 395 |     });
 | 
        
           |  |  | 396 |   | 
        
           |  |  | 397 |     $('#form #last_date').datetimepicker({
 | 
        
           |  |  | 398 |         locale: 'es',
 | 
        
           |  |  | 399 |         format: 'DD/MM/YYYY'
 | 
        
           |  |  | 400 |     });
 | 
        
           |  |  | 401 |   | 
        
           |  |  | 402 |     $('button.btn-add').click(function(e) {
 | 
        
           |  |  | 403 |         $('#section-title').html('LABEL_NEW_VACANCY');
 | 
        
           |  |  | 404 |   | 
        
           |  |  | 405 |   | 
        
           |  |  | 406 |         $('#form').attr('action', '$routeAdd');
 | 
        
           |  |  | 407 |         $('#form #name').val('');
 | 
        
           |  |  | 408 |         $('#form #job_description_id').val('').trigger('change');
 | 
        
           |  |  | 409 |         $('#form #job_category_id').val('').trigger('change');
 | 
        
           |  |  | 410 |         $('#form #industry_id').val('').trigger('change');
 | 
        
           |  |  | 411 |   | 
        
           |  |  | 412 |         $('#form #location_search').val('');
 | 
        
           |  |  | 413 |         $('#form #address1').val('');
 | 
        
           |  |  | 414 |         $('#form #address2').val('');
 | 
        
           |  |  | 415 |         $('#form #city1').val('');
 | 
        
           |  |  | 416 |         $('#form #city2').val('');
 | 
        
           |  |  | 417 |         $('#form #state').val('');
 | 
        
           |  |  | 418 |         $('#form #country').val('');
 | 
        
           |  |  | 419 |         $('#form #postal_code').val('');
 | 
        
           |  |  | 420 |         $('#form #latitude').val('');
 | 
        
           |  |  | 421 |         $('#form #longitude').val('');
 | 
        
           |  |  | 422 |   | 
        
           |  |  | 423 |         $('#form #last_date').val('');
 | 
        
           |  |  | 424 |         $('#form #status').bootstrapToggle('on')
 | 
        
           |  |  | 425 |   | 
        
           |  |  | 426 |         CKEDITOR.instances['description'].setData('');
 | 
        
           |  |  | 427 |   | 
        
           |  |  | 428 |         $('#row-list').hide();
 | 
        
           |  |  | 429 |         $('#row-form').show();
 | 
        
           |  |  | 430 |         $('#form #name').focus();
 | 
        
           |  |  | 431 |         return;
 | 
        
           |  |  | 432 |     });
 | 
        
           |  |  | 433 |   | 
        
           |  |  | 434 |   | 
        
           |  |  | 435 |   | 
        
           |  |  | 436 |   | 
        
           | 15457 | efrain | 437 |     $('button.btn-edit-cancel').click(function(e) {
 | 
        
           |  |  | 438 |         $('#row-form').hide();
 | 
        
           |  |  | 439 |         $('#row-list').show();
 | 
        
           | 15461 | efrain | 440 |   | 
        
           |  |  | 441 |         $('#section-title').html('LABEL_VACANCIES');
 | 
        
           | 15457 | efrain | 442 |         return;
 | 
        
           |  |  | 443 |     });
 | 
        
           |  |  | 444 |   | 
        
           |  |  | 445 |     $('body').on('click', 'button.btn-refresh', function (e) {
 | 
        
           |  |  | 446 |         e.preventDefault();
 | 
        
           |  |  | 447 |         gridTable.api().ajax.reload(null, false);
 | 
        
           |  |  | 448 |   | 
        
           |  |  | 449 |     });
 | 
        
           |  |  | 450 |   | 
        
           | 16822 | efrain | 451 |  $('body').on('click', 'button.btn-delete', function(e) {
 | 
        
           |  |  | 452 |         e.preventDefault();
 | 
        
           |  |  | 453 |         var action = $(this).data('href');
 | 
        
           |  |  | 454 |   | 
        
           |  |  | 455 |   | 
        
           |  |  | 456 |           swal.fire({
 | 
        
           |  |  | 457 |             title: 'LABEL_ARE_YOU_SURE',
 | 
        
           |  |  | 458 |             icon: 'question',
 | 
        
           |  |  | 459 |             cancelButtonText: 'LABEL_NO',
 | 
        
           |  |  | 460 |             showCancelButton: true,
 | 
        
           |  |  | 461 |             confirmButtonText: 'LABEL_YES'
 | 
        
           |  |  | 462 |           }).then((result) => {
 | 
        
           |  |  | 463 |             if (result.isConfirmed) {
 | 
        
           |  |  | 464 |   | 
        
           |  |  | 465 |                     NProgress.start();
 | 
        
           |  |  | 466 |                     $.ajax({
 | 
        
           |  |  | 467 |                         'dataType'  : 'json',
 | 
        
           |  |  | 468 |                         'accept'    : 'application/json',
 | 
        
           |  |  | 469 |                         'method'    : 'post',
 | 
        
           |  |  | 470 |                         'url'       :  action,
 | 
        
           |  |  | 471 |                     }).done(function(response) {
 | 
        
           |  |  | 472 |                         if(response['success']) {
 | 
        
           |  |  | 473 |                             $.fn.showSuccess(response['data']);
 | 
        
           |  |  | 474 |                             gridTable.api().ajax.reload(null, false);
 | 
        
           |  |  | 475 |                         } else {
 | 
        
           |  |  | 476 |                             $.fn.showError(response['data']);
 | 
        
           |  |  | 477 |                         }
 | 
        
           |  |  | 478 |                     }).fail(function( jqXHR, textStatus, errorThrown) {
 | 
        
           |  |  | 479 |                         $.fn.showError(textStatus);
 | 
        
           |  |  | 480 |                     }).always(function() {
 | 
        
           |  |  | 481 |                         NProgress.done();
 | 
        
           |  |  | 482 |                     });
 | 
        
           |  |  | 483 |             }
 | 
        
           |  |  | 484 |        });
 | 
        
           |  |  | 485 |     });
 | 
        
           |  |  | 486 |   | 
        
           | 15457 | efrain | 487 |     $('#job_description_id').select2({
 | 
        
           | 16918 | efrain | 488 |         theme: 'bootstrap-5',
 | 
        
           | 15457 | efrain | 489 |         width: '100%',
 | 
        
           |  |  | 490 |     });
 | 
        
           |  |  | 491 |   | 
        
           |  |  | 492 |   | 
        
           |  |  | 493 |     $('#job_category_id').select2({
 | 
        
           | 16918 | efrain | 494 |         theme: 'bootstrap-5',
 | 
        
           | 15457 | efrain | 495 |         width: '100%',
 | 
        
           |  |  | 496 |     });
 | 
        
           |  |  | 497 |   | 
        
           |  |  | 498 |   | 
        
           |  |  | 499 |     $('#industry_id').select2({
 | 
        
           | 16918 | efrain | 500 |         theme: 'bootstrap-5',
 | 
        
           | 15457 | efrain | 501 |         width: '100%',
 | 
        
           |  |  | 502 |     });
 | 
        
           |  |  | 503 |   | 
        
           |  |  | 504 |   | 
        
           |  |  | 505 |     $('#status').bootstrapToggle({
 | 
        
           |  |  | 506 |         'on': 'LABEL_ACTIVE',
 | 
        
           |  |  | 507 |         'off': 'LABEL_INACTIVE',
 | 
        
           |  |  | 508 |         'width': '160px',
 | 
        
           |  |  | 509 |         'height': '40px'
 | 
        
           |  |  | 510 |     });
 | 
        
           |  |  | 511 |   | 
        
           |  |  | 512 |   | 
        
           | 15461 | efrain | 513 |   | 
        
           | 15457 | efrain | 514 |   | 
        
           |  |  | 515 |   | 
        
           |  |  | 516 |   | 
        
           |  |  | 517 |   | 
        
           |  |  | 518 |     CKEDITOR.replace('description', {
 | 
        
           |  |  | 519 |         toolbar: [
 | 
        
           |  |  | 520 |                     { name: 'editing', items: ['Scayt'] },
 | 
        
           |  |  | 521 |                     { name: 'links', items: ['Link', 'Unlink'] },
 | 
        
           |  |  | 522 |                     { name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote'] },
 | 
        
           |  |  | 523 |                     { name: 'basicstyles', items: ['Bold', 'Italic', 'Strike', 'RemoveFormat'] },
 | 
        
           |  |  | 524 |                     '/',
 | 
        
           |  |  | 525 |                     { name: 'insert', items: ['Image', 'Table', 'HorizontalRule', 'SpecialChar'] },
 | 
        
           |  |  | 526 |                     { name: 'styles', items: ['Styles', 'Format'] },
 | 
        
           |  |  | 527 |                     { name: 'tools', items: ['Maximize'] }
 | 
        
           |  |  | 528 |                 ],
 | 
        
           |  |  | 529 |                 removePlugins: 'elementspath,Anchor',
 | 
        
           |  |  | 530 |                 heigth: 100
 | 
        
           |  |  | 531 |     });
 | 
        
           |  |  | 532 |   });
 | 
        
           | 9427 | stevensc | 533 | JS;
 | 
        
           | 9469 | stevensc | 534 |   | 
        
           | 15457 | efrain | 535 | $this->inlineScript()->captureEnd();
 | 
        
           | 9469 | stevensc | 536 |   | 
        
           | 1384 | efrain | 537 | ?>
 | 
        
           |  |  | 538 | <!-- Content Header (Page header) -->
 | 
        
           | 9427 | stevensc | 539 |   | 
        
           | 15461 | efrain | 540 |   | 
        
           | 16934 | efrain | 541 | <div class="container">
 | 
        
           | 16845 | efrain | 542 | 	<div class="card" id="row-list">
 | 
        
           |  |  | 543 | 		<div class="card-header">
 | 
        
           | 16958 | efrain | 544 |       		<h6 class="card-title">LABEL_VACANCIES_TO_POSITION</h6>
 | 
        
           | 15457 | efrain | 545 | 		</div>
 | 
        
           | 16845 | efrain | 546 |     	<div class="card-body">
 | 
        
           |  |  | 547 |     		<div class="row">
 | 
        
           |  |  | 548 |         		<div class="col-12 mt-3">
 | 
        
           |  |  | 549 |             		<table id="gridTable" class="table   table-bordered">
 | 
        
           |  |  | 550 |                      	<thead>
 | 
        
           |  |  | 551 |                        		<tr>
 | 
        
           |  |  | 552 |                           		<th>LABEL_NAME</th>
 | 
        
           |  |  | 553 |                           		<th>LABEL_JOB_DESCRIPTION</th>
 | 
        
           |  |  | 554 |                        			<th>LABEL_LAST_DATE</th>
 | 
        
           |  |  | 555 |                             	<th>LABEL_STATUS</th>
 | 
        
           |  |  | 556 |                            		<th>LABEL_ACTIONS</th>
 | 
        
           |  |  | 557 |                          	</tr>
 | 
        
           |  |  | 558 |                   		</thead>
 | 
        
           |  |  | 559 |                			<tbody>
 | 
        
           |  |  | 560 |                       	</tbody>
 | 
        
           |  |  | 561 |                    	</table>
 | 
        
           |  |  | 562 |            		</div>
 | 
        
           |  |  | 563 |            	</div>
 | 
        
           |  |  | 564 |       	</div>
 | 
        
           |  |  | 565 |     	<div class="card-footer text-right">
 | 
        
           | 16992 | efrain | 566 | 			<button type="button" class="btn btn-info btn-refresh"><i class="fa fa-sync"></i> LABEL_REFRESH </button>
 | 
        
           | 16845 | efrain | 567 |             <?php if ($allowAdd) : ?>
 | 
        
           |  |  | 568 |             <button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
 | 
        
           |  |  | 569 |       		<?php endif; ?>
 | 
        
           |  |  | 570 |       	</div>
 | 
        
           | 15457 | efrain | 571 | 	</div>
 | 
        
           | 16845 | efrain | 572 |   | 
        
           |  |  | 573 |   | 
        
           |  |  | 574 | 	<!-- Create/Edit Form -->
 | 
        
           |  |  | 575 | 	<div class="card" id="row-form" style="display: none;">
 | 
        
           | 16934 | efrain | 576 | 		<div class="card-header">
 | 
        
           | 16845 | efrain | 577 | 			<h6 class="card-title">LABEL_EDIT_VACANCY</h6>
 | 
        
           |  |  | 578 | 		</div>
 | 
        
           |  |  | 579 | 		<?php
 | 
        
           | 15457 | efrain | 580 |         $form = $this->form;
 | 
        
           |  |  | 581 |         $form->setAttributes([
 | 
        
           |  |  | 582 |             'method'    => 'post',
 | 
        
           | 15461 | efrain | 583 |             'name'      => 'form',
 | 
        
           |  |  | 584 |             'id'        => 'form'
 | 
        
           | 15457 | efrain | 585 |         ]);
 | 
        
           |  |  | 586 |   | 
        
           |  |  | 587 |         $form->prepare();
 | 
        
           |  |  | 588 |         echo $this->form()->openTag($form);
 | 
        
           | 16845 | efrain | 589 |         ?>
 | 
        
           |  |  | 590 | 		<div class="card-body">
 | 
        
           |  |  | 591 |   | 
        
           |  |  | 592 |     		<?php
 | 
        
           |  |  | 593 |   | 
        
           |  |  | 594 |             $fields = ['formatted_address',
 | 
        
           |  |  | 595 |             'address1',
 | 
        
           |  |  | 596 |             'address2',
 | 
        
           |  |  | 597 |             'country',
 | 
        
           |  |  | 598 |             'state',
 | 
        
           |  |  | 599 |             'city1',
 | 
        
           |  |  | 600 |             'city2',
 | 
        
           |  |  | 601 |             'postal_code',
 | 
        
           |  |  | 602 |             'latitude',
 | 
        
           |  |  | 603 |             'longitude',
 | 
        
           |  |  | 604 |             ];
 | 
        
           |  |  | 605 |   | 
        
           |  |  | 606 |             foreach($fields as $field)
 | 
        
           |  |  | 607 |             {
 | 
        
           |  |  | 608 |                 $element = $form->get($field);
 | 
        
           |  |  | 609 |                 echo $this->formHidden($element);
 | 
        
           |  |  | 610 |             }
 | 
        
           |  |  | 611 |   | 
        
           | 15457 | efrain | 612 |             ?>
 | 
        
           | 16934 | efrain | 613 | 			<div class="row">
 | 
        
           | 16845 | efrain | 614 |    				<div class="col-12 mt-3">
 | 
        
           |  |  | 615 |            			<?php
 | 
        
           |  |  | 616 |                     $element = $form->get('name');
 | 
        
           |  |  | 617 |                     $element->setAttributes(['class' => 'form-control']);
 | 
        
           |  |  | 618 |                     $element->setOptions(['label' => 'LABEL_NAME']);
 | 
        
           | 15457 | efrain | 619 |   | 
        
           | 16845 | efrain | 620 |                     echo $this->formLabel($element);
 | 
        
           |  |  | 621 |                     echo $this->formText($element);
 | 
        
           |  |  | 622 |                     ?>
 | 
        
           |  |  | 623 |           		</div>
 | 
        
           |  |  | 624 |           	</div>
 | 
        
           | 16934 | efrain | 625 | 			<div class="row">
 | 
        
           | 16845 | efrain | 626 |    				<div class="col-12 mt-3">
 | 
        
           | 15457 | efrain | 627 |                  <?php
 | 
        
           | 16845 | efrain | 628 |                  $element = $form->get('job_description_id');
 | 
        
           |  |  | 629 |                  $element->setAttributes(['class' => 'form-control']);
 | 
        
           |  |  | 630 |                  $element->setOptions(['label' => 'LABEL_POSITION_EVALUATED']);
 | 
        
           |  |  | 631 |   | 
        
           |  |  | 632 |                  echo $this->formLabel($element);
 | 
        
           |  |  | 633 |                  echo $this->formSelect($element);
 | 
        
           |  |  | 634 |                 ?>
 | 
        
           |  |  | 635 |        			</div>
 | 
        
           |  |  | 636 |         	</div>
 | 
        
           | 16934 | efrain | 637 | 			<div class="row">
 | 
        
           | 16845 | efrain | 638 |    				<div class="col-12 mt-3">
 | 
        
           | 15457 | efrain | 639 |                  <?php
 | 
        
           | 16845 | efrain | 640 |                  $element = $form->get('job_category_id');
 | 
        
           |  |  | 641 |                  $element->setAttributes(['class' => 'form-control']);
 | 
        
           |  |  | 642 |                  $element->setOptions(['label' => 'LABEL_JOB_CATEGORY']);
 | 
        
           |  |  | 643 |   | 
        
           |  |  | 644 |                  echo $this->formLabel($element);
 | 
        
           |  |  | 645 |                  echo $this->formSelect($element);
 | 
        
           |  |  | 646 |                 ?>
 | 
        
           |  |  | 647 |                 </div>
 | 
        
           |  |  | 648 |          	</div>
 | 
        
           | 16934 | efrain | 649 | 			<div class="row">
 | 
        
           | 16845 | efrain | 650 |    				<div class="col-12 mt-3">
 | 
        
           | 15457 | efrain | 651 |                  <?php
 | 
        
           | 16845 | efrain | 652 |                  $element = $form->get('location_search');
 | 
        
           |  |  | 653 |                  $element->setAttributes(['class' => 'form-control']);
 | 
        
           |  |  | 654 |                  $element->setOptions(['label' => 'LABEL_LOCATION']);
 | 
        
           |  |  | 655 |   | 
        
           |  |  | 656 |                  echo $this->formLabel($element);
 | 
        
           |  |  | 657 |                  echo $this->formText($element);
 | 
        
           |  |  | 658 |                 ?>
 | 
        
           |  |  | 659 |                 </div>
 | 
        
           |  |  | 660 |          	</div>
 | 
        
           | 16934 | efrain | 661 | 			<div class="row">
 | 
        
           | 16845 | efrain | 662 |    				<div class="col-12 mt-3">
 | 
        
           | 15457 | efrain | 663 |                  <?php
 | 
        
           | 16845 | efrain | 664 |                  $element = $form->get('industry_id');
 | 
        
           |  |  | 665 |                  $element->setAttributes(['class' => 'form-control']);
 | 
        
           |  |  | 666 |                  $element->setOptions(['label' => 'LABEL_INDUSTRY']);
 | 
        
           |  |  | 667 |   | 
        
           |  |  | 668 |                  echo $this->formLabel($element);
 | 
        
           |  |  | 669 |                  echo $this->formSelect($element);
 | 
        
           |  |  | 670 |                 ?>
 | 
        
           |  |  | 671 |                 </div>
 | 
        
           |  |  | 672 |          	</div>
 | 
        
           | 16934 | efrain | 673 | 			<div class="row">
 | 
        
           | 16845 | efrain | 674 |    				<div class="col-12 mt-3">
 | 
        
           | 15457 | efrain | 675 |                  <?php
 | 
        
           | 16845 | efrain | 676 |                  $element = $form->get('last_date');
 | 
        
           |  |  | 677 |                  $element->setAttributes(['class' => 'form-control']);
 | 
        
           |  |  | 678 |                  $element->setOptions(['label' => 'LABEL_LAST_DATE_OF_APPLICATION']);
 | 
        
           |  |  | 679 |   | 
        
           |  |  | 680 |                  echo $this->formLabel($element);
 | 
        
           |  |  | 681 |                  echo $this->formText($element);
 | 
        
           |  |  | 682 |                 ?>
 | 
        
           |  |  | 683 |                 </div>
 | 
        
           |  |  | 684 |          	</div>
 | 
        
           | 16934 | efrain | 685 | 			<div class="row">
 | 
        
           | 16845 | efrain | 686 |    				<div class="col-12 mt-3">
 | 
        
           | 15457 | efrain | 687 |                  <?php
 | 
        
           | 16845 | efrain | 688 |                  $element = $form->get('description');
 | 
        
           |  |  | 689 |                  $element->setAttributes(['class' => 'form-control']);
 | 
        
           |  |  | 690 |                  $element->setOptions(['label' => 'LABEL_DESCRIPTION']);
 | 
        
           |  |  | 691 |   | 
        
           |  |  | 692 |                  echo $this->formLabel($element);
 | 
        
           |  |  | 693 |                  echo $this->formTextArea($element);
 | 
        
           |  |  | 694 |                 ?>
 | 
        
           |  |  | 695 |                 </div>
 | 
        
           |  |  | 696 |          	</div>
 | 
        
           | 16934 | efrain | 697 | 			<div class="row">
 | 
        
           | 16845 | efrain | 698 |    				<div class="col-12 mt-3">
 | 
        
           |  |  | 699 |                  <?php
 | 
        
           |  |  | 700 |                  $element = $form->get('status');
 | 
        
           | 15461 | efrain | 701 |   | 
        
           | 16845 | efrain | 702 |                  echo $this->formCheckbox($element);
 | 
        
           |  |  | 703 |                 ?>
 | 
        
           |  |  | 704 |                 </div>
 | 
        
           |  |  | 705 |          	</div>
 | 
        
           |  |  | 706 | 		</div>
 | 
        
           | 15457 | efrain | 707 |   | 
        
           |  |  | 708 |   | 
        
           | 16845 | efrain | 709 |     	<div class="card-footer text-right">
 | 
        
           |  |  | 710 |            	<button type="submit" class="btn btn-primary btn-form-save-close">LABEL_SAVE</button>
 | 
        
           | 16822 | efrain | 711 |              <button type="button" class="btn btn-light btn-edit-cancel">LABEL_CANCEL</button>
 | 
        
           | 16845 | efrain | 712 |      	</div>
 | 
        
           |  |  | 713 |       	<?php echo $this->form()->closeTag($form); ?>
 | 
        
           |  |  | 714 |    	</div>
 | 
        
           | 15457 | efrain | 715 | </div>
 | 
        
           |  |  | 716 |   | 
        
           | 16845 | efrain | 717 |   | 
        
           |  |  | 718 |   | 
        
           |  |  | 719 |   | 
        
           |  |  | 720 |   | 
        
           |  |  | 721 |   |