-
-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
82 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,64 @@ | ||
.job.mb4 | ||
.stripe | ||
.row | ||
.large-12.columns | ||
%br | ||
%ul.breadcrumbs | ||
%li=link_to t('admin.dashboard.title'), admin_root_path | ||
%li=link_to t('admin.jobs.title'), admin_jobs_path | ||
%li.current | ||
%span= @job.title | ||
.row | ||
.large-12.columns | ||
- if !@job.published? && @job.expired? | ||
.panel | ||
.row | ||
.large-12.columns | ||
=t('admin.jobs.messages.cannot_approve') | ||
- elsif !@job.published? | ||
.panel | ||
.row | ||
.large-12.columns | ||
%h4 | ||
%strong Before approving this job make sure | ||
%ul.no-bullet | ||
%li | ||
%input#work_details{ type: 'checkbox' } | ||
%label{ for: 'work_details' } The post details the work that will have to be undertaken | ||
%li | ||
%input#roles{ type: 'checkbox' } | ||
%label{ for: 'roles' } It's suitable for people looking for Internships and Junior roles that will enable them to build up their career | ||
%li | ||
%input#reliable_source{ type: 'checkbox' } | ||
%label{ for: 'reliable_source' } It was posted by someone you know or a reliable source | ||
%li | ||
%input#payment{ type: 'checkbox' } | ||
%label{ for: 'payment' } Payment confirmation was posted in Slack | ||
%li | ||
%input#to-the-point{ type: 'checkbox' } | ||
%label{ for: 'to-the-point' } The post is short and to the point | ||
.container-fluid.pt-3 | ||
.row.mb-4 | ||
.col | ||
%nav{'aria-label': 'breadcrumb'} | ||
%ol.breadcrumb.ml-0 | ||
%li.breadcrumb-item= link_to t('admin.dashboard.title'), admin_root_path, class: 'border-0' | ||
%li.breadcrumb-item= link_to t('admin.jobs.title'), admin_jobs_path, class: 'border-0' | ||
%li.breadcrumb-item.active= @job.title | ||
|
||
.large-12.columns | ||
%p | ||
- if @job.expired? | ||
=t('admin.jobs.info.request_changes_html', name: @job&.created_by&.full_name, | ||
email: mail_to(@job.created_by.email, @job.created_by.email, | ||
subject: "Regarding job listing #{@job.title}")) | ||
- elsif @job.published? | ||
= t('admin.jobs.info.approved_by', name: @job&.approved_by&.full_name, | ||
date: @job.published_on) | ||
.row | ||
.col-12 | ||
- if !@job.published? && @job.expired? | ||
.card.mb-2 | ||
.card-body | ||
= t('admin.jobs.messages.cannot_approve') | ||
- elsif !@job.published? | ||
.card.mb-2 | ||
.card-header | ||
%h6.mb-0 Before approving this job make sure | ||
.card-body | ||
%ul.list-unstyled.ml-0.mb-0 | ||
%li.form-check.mb-3 | ||
%input.form-check-input.mt-1#work_details{ type: 'checkbox' } | ||
%label.form-check-label{ for: 'work_details' } | ||
The post details the work that will have to be undertaken | ||
%li.form-check.mb-3 | ||
%input.form-check-input.mt-1#roles{ type: 'checkbox' } | ||
%label.form-check-label{ for: 'roles' } | ||
It's suitable for people looking for Internships and Junior roles that will enable them to build up their career | ||
%li.form-check.mb-3 | ||
%input.form-check-input.mt-1#reliable_source{ type: 'checkbox' } | ||
%label.form-check-label{ for: 'reliable_source' } | ||
It was posted by someone you know or a reliable source | ||
%li.form-check.mb-3 | ||
%input.form-check-input.mt-1#payment{ type: 'checkbox' } | ||
%label.form-check-label{ for: 'payment' } | ||
Payment confirmation was posted in Slack | ||
%li.form-check | ||
%input.form-check-input.mt-1#to-the-point{ type: 'checkbox' } | ||
%label.form-check-label{ for: 'to-the-point' } | ||
The post is short and to the point | ||
|
||
- else | ||
=t('admin.jobs.info.request_changes_html', name: @job&.created_by&.full_name, | ||
email: mail_to(@job.created_by.email, @job.created_by.email, | ||
subject: "Regarding job listing #{@job.title}")) | ||
%br | ||
%br | ||
=link_to 'Approve', admin_job_approve_path(@job.id), | ||
class: 'button', | ||
'data-confirm': t('admin.jobs.messages.confirm_approval') | ||
%h2 Preview | ||
%hr | ||
.col-12.mb-4 | ||
- if @job.expired? | ||
%P= t('admin.jobs.info.request_changes_html', name: @job&.created_by&.full_name, | ||
email: mail_to(@job.created_by.email, @job.created_by.email, | ||
subject: "Regarding job listing #{@job.title}")) | ||
- elsif @job.published? | ||
%P= t('admin.jobs.info.approved_by', name: @job&.approved_by&.full_name, | ||
date: @job.published_on) | ||
|
||
= render partial: 'jobs/show', locals: { admin: true, preview: false } | ||
- else | ||
%p= t('admin.jobs.info.request_changes_html', name: @job&.created_by&.full_name, | ||
email: mail_to(@job.created_by.email, @job.created_by.email, | ||
subject: "Regarding job listing #{@job.title}")) | ||
|
||
= link_to 'Approve', admin_job_approve_path(@job.id), | ||
class: 'btn btn-primary', | ||
'data-confirm': t('admin.jobs.messages.confirm_approval') | ||
|
||
.col-12.mb-2 | ||
%h2 Preview | ||
|
||
= render partial: 'jobs/show', locals: { admin: true, preview: false } |