Rev 11125 | Rev 11128 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
<?php$acl = $this->viewModel()->getRoot()->getVariable('acl');$currentUser = $this->currentUserHelper();$roleName = $currentUser->getUserTypeId();$routeAdd = $this->url('jobs/add');$routeDatatable = $this->url('jobs');$allowAdd = $acl->isAllowed($roleName, 'jobs/add') ? 1 : 0;$allowDelete = $acl->isAllowed($roleName, 'jobs/delete') ? 1 : 0;$allowEdit = $acl->isAllowed($roleName, 'jobs/edit') ? 1 : 0;$allowUsersWhoApplied = $acl->isAllowed($roleName, 'jobs/users-who-applied') ? 1 : 0;<<<<<<< .mine=======$this->inlineScript()->appendFile('https://maps.googleapis.com/maps/api/js?key=' . $google_map_key . '&libraries=places');$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));$this->inlineScript()->appendFile($this->basePath('plugins/ckeditor/ckeditor.js'));$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-fileinput/css/fileinput.min.css'));$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-fileinput/themes/explorer-fas/theme.css'));$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/plugins/piexif.js'));$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/plugins/sortable.js'));$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/fileinput.js'));$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/locales/es.js'));$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/themes/fas/theme.js'));$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/themes/explorer-fas/theme.js'));$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'));$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-responsive/css/responsive.bootstrap4.min.css'));$this->inlineScript()->appendFile($this->basePath('plugins/datatables/jquery.dataTables.min.js'));$this->inlineScript()->appendFile($this->basePath('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js'));$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/dataTables.responsive.min.js'));$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/responsive.bootstrap4.min.js'));$this->headLink()->appendStylesheet($this->basePath('plugins/select2/css/select2.min.css'));$this->headLink()->appendStylesheet($this->basePath('plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css'));$this->inlineScript()->appendFile($this->basePath('plugins/select2/js/select2.min.js'));$this->inlineScript()->appendFile($this->basePath('plugins/jquery-input-number/input-number-format.jquery.min.js'));$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-confirmation/dist/bootstrap-confirmation.js'));$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));>>>>>>> .theirs<<<<<<< .mine=======$this->inlineScript()->appendFile($this->basePath('plugins/moment/moment-with-locales.min.js'));$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css'));$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js'));$this->headStyle()->captureStart();echo <<<CSS#gridTableUsersWhoApplied {display: flex;flex-flow: column;width: 100%;}#gridTableUsersWhoApplied thead {flex: 0 0 auto;}#gridTableUsersWhoApplied tbody {flex: 1 1 auto;display: block;overflow-y: auto;overflow-x: hidden;}#gridTableUsersWhoApplied tr {width: 100%;display: table;table-layout: fixed;}CSS;$this->headStyle()->captureEnd();>>>>>>> .theirsJS;$this->inlineScript()->captureEnd();?><!-- Content Header (Page header) --><div id="divListing"><section class="content-header"><div class="container-fluid"><div class="row mb-2"><div class="col-sm-12"><h1>LABEL_JOBS</h1></div></div></div><!-- /.container-fluid --></section><section class="content"><div class="container-fluid"><div class="row"><div class="col-12"><div class="card"><div class="card-body"><table id="gridTable" class="table table-hover"><thead><tr><th>LABEL_LAST_DATE_OF_APPLICATION</th><th>LABEL_TITLE</th><th>LABEL_DETAILS</th><th>LABEL_ACTIONS</th></tr></thead><tbody></tbody></table></div><div class="card-footer clearfix"><div style="float:right;"><button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button><?php if ($allowAdd) : ?><button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button><?php endif; ?></div></div></div></div></div></div></section></div><div id="divEdit" style="display: none"><section class="content-header"><div class="container-fluid"><div class="row mb-2"><div class="col-sm-12"><h1 class="btn-edit-back"><i class="fa fa-chevron-left" aria-hidden="true"></i> LABEL_EDIT_JOB</h1></div></div></div><!-- /.container-fluid --></section><section class="content"><div class="container-fluid"><div class="row"><div class="col-lg-3"></div><div class="col-lg-6"><div class="main-ws-sec"><!--user-profile-ov end --><div class="user-profile-ov"><h3>LABEL_STATUS <a href="#" title="" class="btn-status-edit"> <i class="fa fa-pencil"></i></a></h3><p id="overview-status"></p></div><div class="user-profile-ov"><h3>LABEL_TITLE<a href="#" title="" class="btn-title-edit"><i class="fa fa-pencil"></i></a></h3><p id="overview-title"></p></div><div class="user-profile-ov"><h3>LABEL_OVERVIEW<a href="#" title="" class="btn-extended-edit"><i class="fa fa-pencil"></i></a></h3><p id="overview-description"></p></div><!--user-profile-ov end--><div class="user-profile-ov st2"><h3>LABEL_LAST_DATE_OF_APPLICATION<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></h3><span id="overview-last-date-of-application"></span></div><!--user-profile-ov end--><div class="user-profile-ov"><h3>LABEL_EMPLOYMENT_TYPE<a href="#" title="" class="btn-employment-type-edit"><i class="fa fa-pencil"></i></a></h3><span id="overview-employment-type"></span></div><!--user-profile-ov end--><div class="user-profile-ov"><h3><a href="#" title="">LABEL_LOCATION</a><a href="#" title="" class="btn-location-edit"><i class="fa fa-pencil"></i></a></h3><span id="overview-location"></span></div><!--user-profile-ov end--><div class="user-profile-ov"><h3>LABEL_EXPERIENCE<a href="#" title="" class="btn-experience-edit"><i class="fa fa-pencil"></i></a></h3><span id="overview-experience"> </span></div><!--user-profile-ov end--><div class="user-profile-ov"><h3>LABEL_SALARY<a href="#" title="" class="btn-salary-edit"><i class="fa fa-pencil"></i></a></h3><span id="overview-salary"></span></div><!--user-profile-ov end--><div class="user-profile-ov"><h3>LABEL_CATEGORIE<a href="#" title="" class="btn-job-category-edit"><i class="fa fa-pencil"></i></a></h3><span id="overview-job-category"></span></div><!--user-profile-ov end--><div class="user-profile-ov"><h3>LABEL_SKILLS <a href="#" title="" class="btn-skills-edit"> <i class="fa fa-pencil"></i></a></h3><ul id="list-skills"></ul></div><!--user-profile-ov end --><div class="user-profile-ov"><h3>LABEL_LANGUAGES <a href="#" title="" class="btn-languages-edit"> <i class="fa fa-pencil"></i></a></h3><ul id="list-languages"></ul></div><!--user-profile-ov end --><div class="user-profile-ov"><h3>LABEL_DEGREES <a href="#" title="" class="btn-degrees-edit"> <i class="fa fa-pencil"></i></a></h3><ul id="list-degrees"></ul></div></div></div><div class="col-lg-3"></div></div></div></section></div><div class="modal" tabindex="-1" role="dialog" id="add-job-box"><div class="modal-dialog" role="document"><?php$form = $this->formAdd;$form->setAttributes(['method' => 'post','name' => 'form-add','id' => 'form-add']);$form->prepare();echo $this->form()->openTag($form);$fieldnames = ['formatted_address','address1','address2','country','state','city1','city2','postal_code','latitude','longitude',];foreach ($fieldnames as $fieldname) {$element = $form->get($fieldname);echo $this->formHidden($element);}?><div class="modal-content"><div class="modal-header"><h3 class="modal-title">LABEL_NEW_JOB</h3></div><div class="modal-body"><div class="form-group"><?php$element = $form->get('title');$element->setOptions(['label' => 'LABEL_TITLE']);$element->setAttributes(['class' => 'form-control']);echo $this->formLabel($element);echo $this->formText($element);?></div><div class="form-group"><?php$element = $form->get('employment_type');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['empty_option' => 'LABEL_SELECT_EMPLOYMENT_TYPE', 'label' => 'LABEL_EMPLOYMENT_TYPE']);echo $this->formLabel($element);echo $this->formSelect($element);?></div><div class="form-group"><?php$element = $form->get('last_date_of_application');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_LAST_DATE_OF_APPLICATION']);echo $this->formLabel($element);echo $this->formText($element);?></div><div class="form-group"><?php$element = $form->get('job_category_id');$element->setOptions(['empty_option' => 'LABEL_SELECT_JOB_CATEGORY', 'label' => 'LABEL_JOB_CATEGORY']);$element->setAttributes(['class' => 'form-control']);echo $this->formLabel($element);echo $this->formSelect($element);?></div><div class="form-group"><?php$element = $form->get('location_search');$element->setAttributes(['name' => 'add_location_search', 'id' => 'add_location_search', 'class' => 'form-control']);$element->setOptions(['label' => 'LABEL_LOCATION']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="modal-footer"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-default btn-add-job-cancel">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div></div></div><!-- The Modal --><div class="modal" id="modalUsersWhoApplied"><div class="modal-dialog modal-xl"><div class="modal-content"><!-- Modal Header --><div class="modal-header"><h4 class="modal-title">LABEL_USERS_WHO_APPLIED</h4><button type="button" class="close" data-dismiss="modal">×</button></div><!-- Modal body --><div class="modal-body"><div style="height: 300px;overflow: scroll;"><table id="gridTableUsersWhoApplied" style="width: 100%" class="table table-bordered table-hover"><thead><tr><th>LABEL_FIRST_NAME</th><th>LABEL_LAST_NAME</th><th>LABEL_EMAIL</th><th>LABEL_ACTIONS</th></tr></thead><tbody></tbody></table></div></div><!-- Modal footer --><div class="modal-footer"><button type="button" class="btn btn-danger" data-dismiss="modal">LABEL_CLOSE</button></div></div></div></div><div class="modal" tabindex="-1" role="dialog" id="extended-box"><div class="modal-dialog" role="document"><?php$form = $this->formExtended;$form->setAttributes(['method' => 'post','name' => 'form-extended','id' => 'form-extended']);$form->prepare();echo $this->form()->openTag($form);?><div class="modal-content"><div class="modal-header"><h3 class="modal-title">LABEL_OVERVIEW</h3></div><div class="modal-body"><div class="form-group"><?php$element = $form->get('description');$element->setOptions(['label' => 'LABEL_OVERVIEW']);$element->setAttributes(['class' => 'form-control']);echo $this->formLabel($element);echo $this->formTextArea($element);?></div></div><div class="modal-footer"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-default btn-extended-close">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div></div></div><div class="modal" tabindex="-1" role="dialog" id="location-box"><div class="modal-dialog" role="document"><?php$form = $this->formLocation;$form->setAttributes(['method' => 'post','name' => 'form-location','id' => 'form-location']);$form->prepare();echo $this->form()->openTag($form);$fieldnames = ['formatted_address','address1','address2','country','state','city1','city2','postal_code','latitude','longitude',];foreach ($fieldnames as $fieldname) {$element = $form->get($fieldname);echo $this->formHidden($element);}?><div class="modal-content"><div class="modal-header"><h3 class="modal-title">LABEL_LOCATION</h3></div><div class="modal-body"><div class="form-group datefm"><?php$element = $form->get('location_search');$element->setOptions(['label' => 'LABEL_LOCATION']);$element->setAttributes(['class' => 'form-control']);echo $this->formLabel($element);echo $this->formText($element);?><i class="fa fa-map-marker"></i></div></div><div class="modal-footer"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-default btn-location-close">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div></div></div><div class="modal" tabindex="-1" role="dialog" id="employment-type-box"><div class="modal-dialog" role="document"><?php$form = $this->formEmploymentType;$form->setAttributes(['method' => 'post','name' => 'form-employment-type','id' => 'form-employment-type']);$form->prepare();echo $this->form()->openTag($form);?><div class="modal-content"><div class="modal-header"><h3 class="modal-title">LABEL_EMPLOYMENT_TYPE</h3></div><div class="modal-body"><div class="form-group"><?php$element = $form->get('employment_type');$element->setOptions(['label' => 'LABEL_EMPLOYMENT_TYPE']);$element->setAttributes(['class' => 'form-control']);echo $this->formLabel($element);echo $this->formSelect($element);?></div></div><div class="modal-footer"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-default btn-employment-type-close">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div></div></div><div class="modal" tabindex="-1" role="dialog" id="job-category-box"><div class="modal-dialog" role="document"><?php$form = $this->formJobCategory;$form->setAttributes(['method' => 'post','name' => 'form-job-category','id' => 'form-job-category']);$form->prepare();echo $this->form()->openTag($form);?><div class="modal-content"><div class="modal-header"><h3 class="modal-title">LABEL_JOB_CATEGORY</h3></div><div class="modal-body"><div class="form-group"><?php$element = $form->get('job_category_id');$element->setOptions(['label' => 'LABEL_JOB_CATEGORY']);$element->setAttributes(['class' => 'form-control']);echo $this->formLabel($element);echo $this->formSelect($element);?></div></div><div class="modal-footer"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-default btn-job-category-close">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div></div></div><div class="modal" tabindex="-1" role="dialog" id="salary-box"><div class="modal-dialog" role="document"><?php$form = $this->formSalary;$form->setAttributes(['method' => 'post','name' => 'form-salary','id' => 'form-salary']);$form->prepare();echo $this->form()->openTag($form);?><div class="modal-content"><div class="modal-header"><h3 class="modal-title">LABEL_SALARY</h3></div><div class="modal-body"><div class="form-group"><?php$element = $form->get('salary_visible');echo $this->formCheckbox($element);?></div><div class="form-group"><?php$element = $form->get('salary_currency');$element->setAttributes(['class' => 'form-control']);$element->setOptions(['label' => 'LABEL_CURRENCY']);echo $this->formLabel($element);echo $this->formSelect($element);?></div><div class="form-group"><?php$element = $form->get('salary_min');$element->setOptions(['label' => 'LABEL_MINIMUM']);$element->setAttributes(['class' => 'form-control']);echo $this->formLabel($element);echo $this->formText($element);?></div><div class="form-group"><?php$element = $form->get('salary_max');$element->setOptions(['label' => 'LABEL_MAXIMUM']);$element->setAttributes(['class' => 'form-control']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="modal-footer"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-default btn-salary-close">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div></div></div><div class="modal" tabindex="-1" role="dialog" id="experience-box"><div class="modal-dialog" role="document"><?php$form = $this->formExperience;$form->setAttributes(['method' => 'post','name' => 'form-experience','id' => 'form-experience']);$form->prepare();echo $this->form()->openTag($form);?><div class="modal-content"><div class="modal-header"><h3 class="modal-title">LABEL_EXPERIENCE</h3></div><div class="modal-body"><div class="form-group"><?php$element = $form->get('experience_visible');echo $this->formCheckbox($element);?></div><div class="form-group"><?php$element = $form->get('experience_min');$element->setOptions(['label' => 'LABEL_MINIMUM']);$element->setAttributes(['class' => 'form-control']);echo $this->formLabel($element);echo $this->formText($element);?></div><div class="form-group"><?php$element = $form->get('experience_max');$element->setOptions(['label' => 'LABEL_MAXIMUM']);$element->setAttributes(['class' => 'form-control']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="modal-footer"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-default btn-experience-close">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div></div></div><div class="modal" tabindex="-1" role="dialog" id="skills-box"><div class="modal-dialog" role="document"><?php$form = $this->formSkill;$form->setAttributes(['method' => 'post','name' => 'form-skill','id' => 'form-skill']);$form->prepare();echo $this->form()->openTag($form);?><div class="modal-content"><div class="modal-header"><h3 class="modal-title">LABEL_SKILLS</h3></div><div class="modal-body"><div class="form-group"><?php$element = $form->get('skills');$element->setOptions(['label' => 'LABEL_SKILLS']);$element->setAttributes(['class' => 'form-control']);echo $this->formLabel($element);echo $this->formSelect($element);?></div></div><div class="modal-footer"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-default btn-skills-close">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div></div></div><div class="modal" tabindex="-1" role="dialog" id="languages-box"><div class="modal-dialog" role="document"><?php$form = $this->formLanguage;$form->setAttributes(['method' => 'post','name' => 'form-language','id' => 'form-language']);$form->prepare();echo $this->form()->openTag($form);?><div class="modal-content"><div class="modal-header"><h3 class="modal-title">LABEL_LANGUAGES</h3></div><div class="modal-body"><div class="form-group"><?php$element = $form->get('languages');$element->setOptions(['label' => 'LABEL_LANGUAGES']);$element->setAttributes(['class' => 'form-control']);echo $this->formLabel($element);echo $this->formSelect($element);?></div></div><div class="modal-footer"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-default btn-languages-close">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div></div></div><div class="modal" tabindex="-1" role="dialog" id="last-date-of-application-box"><div class="modal-dialog" role="document"><?php$form = $this->fromLastDateOfApplication;$form->setAttributes(['method' => 'post','name' => 'form-last-date-of-application','id' => 'form-last-date-of-application']);$form->prepare();echo $this->form()->openTag($form);?><div class="modal-content"><div class="modal-header"><h3 class="modal-title">LABEL_LAST_DATE_OF_APPLICATION</h3></div><div class="modal-body"><div class="form-group"><?php$element = $form->get('last_date_of_application');$element->setOptions(['label' => 'LABEL_LAST_DATE_OF_APPLICATION']);$element->setAttributes(['class' => 'form-control']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="modal-footer"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-default btn-last-date-of-application-close">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div></div></div><div class="modal" tabindex="-1" role="dialog" id="degrees-box"><div class="modal-dialog" role="document"><?php$form = $this->formDegree;$form->setAttributes(['method' => 'post','name' => 'form-degree','id' => 'form-degree']);$form->prepare();echo $this->form()->openTag($form);?><div class="modal-content"><div class="modal-header"><h3 class="modal-title">LABEL_DEGREES</h3></div><div class="modal-body"><div class="form-group"><?php$element = $form->get('degrees');$element->setOptions(['label' => 'LABEL_DEGREES']);$element->setAttributes(['class' => 'form-control']);echo $this->formLabel($element);echo $this->formSelect($element);?></div></div><div class="modal-footer"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-default btn-degrees-close">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div></div></div><div class="modal" tabindex="-1" role="dialog" id="status-box"><div class="modal-dialog" role="document"><?php$form = $this->formStatus;$form->setAttributes(['method' => 'post','name' => 'form-status','id' => 'form-status']);$form->prepare();echo $this->form()->openTag($form);?><div class="modal-content"><div class="modal-header"><h3 class="modal-title">LABEL_STATUS</h3></div><div class="modal-body"><div class="form-group"><?php$element = $form->get('status');$element->setOptions(['label' => 'LABEL_STATUS']);$element->setAttributes(['class' => 'form-control']);echo $this->formLabel($element);echo $this->formSelect($element);?></div></div><div class="modal-footer"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-default btn-status-close">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div></div></div><div class="modal" tabindex="-1" role="dialog" id="title-box"><div class="modal-dialog" role="document"><?php$form = $this->formTitle;$form->setAttributes(['method' => 'post','name' => 'form-title','id' => 'form-title']);$form->prepare();echo $this->form()->openTag($form);?><div class="modal-content"><div class="modal-header"><h3 class="modal-title">LABEL_TITLE</h3></div><div class="modal-body"><div class="form-group"><?php$element = $form->get('title');$element->setOptions(['label' => 'LABEL_TITLE']);$element->setAttributes(['class' => 'form-control']);echo $this->formLabel($element);echo $this->formText($element);?></div></div><div class="modal-footer"><button type="submit" class="btn btn-primary">LABEL_SAVE</button><button type="button" class="btn btn-default btn-title-close">LABEL_CANCEL</button></div><?php echo $this->form()->closeTag($form); ?></div></div></div>