app/views/jobs/_job_info.html.haml
%div{class: "panel panel-default", id: "show-panel-id"}
%div{class: "panel-heading", id: "panel-heading-show-id" }
%h4=job.company.name
%table{class: "table table-bordered"}
%tbody
%tr
%td Job Title:
%td#job-title=job.title
%tr
%td Job Status:
%td#job-status=job.status
%tr
%td Location:
- if job.address
%td
=job.address.street
%br
#{job.address.city}, #{job.address.state}
=job.address.zipcode
- else
%td No address for this job
%tr
%td Job ID:
%td=job.company_job_id
- unless job.years_of_experience.blank?
%tr
%td Years Of Experience:
%td
#{job.years_of_experience == 20 ? "#{job.years_of_experience} Or More Years" : pluralize(job.years_of_experience, 'Year')}
%tr
%td Salary:
%td= job_salary_details(job)
%tr
%td Available positions:
%td
= job.remaining_positions
of #{job.available_positions} positions available
%tr
%td Job Details:
%td= job.description
- unless job.education.nil? && job.education_info.nil?
%tr
%td Education Requirements:
%td
= job.education&.level
= ", #{job.education_info}" unless job&.education_info.empty?
- unless job.job_types.empty?
%tr
%td Job Type:
%td= job.job_types.map(&:job_type).join(', ')
- unless job.job_shifts.empty?
%tr
%td Job Shifts:
%td= job.job_shifts.map(&:shift).join(', ')
- unless job.job_licenses.empty? and job.additional_licenses.nil?
%tr
%td Licenses Required:
%td
= job.licenses.map(&:license_description).join(', ')
,
= job.additional_licenses
- unless job.job_questions.empty?
%tr
%td Applicant Questions:
%td
- job.questions.map(&:question_text).each do |q|
= q
%br
- unless @job.language_proficiency.nil?
%tr
%td Language Proficiency:
%td= @job.language_proficiency
%tr
%td Job Skills:
%td
- if job.job_skills.empty?
%i None
- else
%div{ style: 'overflow: auto; min-height: 150px;' }
%table.table.table-hover{style: 'padding-left: 0px; padding-right: 0px;'}
%thead
%tr
%th
%b Name
%th
%b Required
%th
%b Min Years
%th
%b Max Years
%tbody
- job.job_skills.includes(:skill).each do |job_skill|
%tr
%td
= job_skill.skill.name
%td
= 'Yes' if job_skill.required
%td
= job_skill.min_years if job_skill.min_years
%td
= job_skill.max_years if job_skill.max_years
- unless job.additional_skills.nil?
%tr
%td Other Skills:
%td
%i
= job.additional_skills