Skip to content

Commit

Permalink
Merge 44e375c into 58ff880
Browse files Browse the repository at this point in the history
  • Loading branch information
matyikriszta committed Jul 1, 2022
2 parents 58ff880 + 44e375c commit 56bc702
Show file tree
Hide file tree
Showing 9 changed files with 93 additions and 109 deletions.
1 change: 0 additions & 1 deletion app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
@import "partials/events";
@import "partials/social_media";
@import "partials/attendances";
@import "partials/jobs";
@import "partials/star-rating";
@import "partials/event";

Expand Down
19 changes: 0 additions & 19 deletions app/assets/stylesheets/partials/_jobs.scss

This file was deleted.

2 changes: 1 addition & 1 deletion app/views/jobs/_show.html.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.container-fluid.stripe.reverse
.container.py-4.py-lg-5
- if @job.expired?
.row
.col-12
Expand Down
3 changes: 2 additions & 1 deletion app/views/jobs/index.html.haml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- title t('jobs.title')

.container-fluid.stripe.reverse
.container.py-4.py-lg-5
.row
.col
%h1= t('jobs.title')
Expand All @@ -11,6 +11,7 @@
= t('jobs.index.none')
%br
%small #{link_to('Click here', new_member_job_path)} if you would like to post a new job.

- if @jobs.any?
.row
.col.col-md-8
Expand Down
2 changes: 1 addition & 1 deletion app/views/jobs/show.html.haml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- title "#{@job.title} | #{t('jobs.title')}"

= render partial: 'jobs/show', locals: { admin: false, preview: true }
= render partial: 'jobs/show', locals: { admin: false, preview: false }

%script.jobref{type: 'application/ld+json'}
= raw(render partial: 'job.json.jbuilder', locals: { job: @job })
15 changes: 7 additions & 8 deletions app/views/member/jobs/edit.html.haml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
.job
.row.pt-4
.container.pt-4
.row
.col
%nav{'aria-label': 'breadcrumb'}
%ol.breadcrumb.ml-0
%ol.breadcrumb.ml-0.mb-0
%li.breadcrumb-item= link_to t('member.jobs.title'), member_jobs_path
%li.breadcrumb-item= link_to @job.title, member_job_path(@job.id)
%li.breadcrumb-item.active Edit

.stripe.reverse
.row
.col
= simple_form_for @job, url: member_job_path, method: :put do |f|
= render partial: 'form', locals: { f: f }
.row.py-4.py-lg-5
.col
= simple_form_for @job, url: member_job_path, method: :put do |f|
= render partial: 'form', locals: { f: f }
78 changes: 41 additions & 37 deletions app/views/member/jobs/index.html.haml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
.job
.row.pt-4
.container.pt-4
.row
.col
%nav{'aria-label': 'breadcrumb'}
%ol.breadcrumb.ml-0
%ol.breadcrumb.ml-0.mb-0
%li.breadcrumb-item.active= link_to t('member.jobs.title'), '#'

- if @jobs.any?
.stripe.reverse
.row
- if @jobs.any?
.container.py-4.py-lg-5
.row
.col
%table.table.table-striped
%thead
%tr
Expand All @@ -22,38 +23,41 @@
- @jobs.each do |job|
= render partial: 'member/jobs/job', locals: { job: job }

.row.mb-4
.col-12.col-md-6.text-left
= page_entries_info(@jobs, model: 'job')
.col-12.col-md-6.text-right
= will_paginate(@jobs)
.row.mb-4
.col-12.col-md-6.text-left
= page_entries_info(@jobs, model: 'job')
.col-12.col-md-6.text-right
= will_paginate(@jobs)

.row
.col.text-right
= link_to('Post a job', new_member_job_path, class: 'btn btn-primary')
- else
.stripe.reverse
.row.justify-content-center
.col.col-md-10.col-lg-8
%h1.h2= t('member.jobs.index.title', students_count: @students_count)
%p= t('member.jobs.index.description')
.card.mb-4.border-primary
.card-body
%p.mb-0
= raw t('member.jobs.index.offer.title')
%br
%span= t('member.jobs.index.offer.job_board')
%br
%span= t('member.jobs.index.offer.slack')
%br
%span= t('member.jobs.index.offer.twitter')
= link_to('Post a job', new_member_job_path, class: 'btn btn-primary')
.row
.col.text-right
= link_to('Post a job', new_member_job_path, class: 'btn btn-primary')

- else
.container.py-4.py-lg-5
.row.justify-content-center
.col.col-md-10.col-lg-8
%h1.h2= t('member.jobs.index.title', students_count: @students_count)
%p= t('member.jobs.index.description')
.card.mb-4.border-primary
.card-body
%p.mb-0
= raw t('member.jobs.index.offer.title')
%br
%span= t('member.jobs.index.offer.job_board')
%br
%span= t('member.jobs.index.offer.slack')
%br
%span= t('member.jobs.index.offer.twitter')
= link_to('Post a job', new_member_job_path, class: 'btn btn-primary')

.stripe.reverse
.py-4.py-lg-5.bg-light
.container
.row.justify-content-center
.col.col-md-10.col-lg-8
%blockquote
%p= t('member.jobs.index.testimonial')
%footer.clearfix
= image_tag('ok.png', size: '30', class: 'th radius left', alt: 'Bruno Girin')
%cite.left Bruno Girin, CTO, Imby
%figure
%blockquote.blockquote
%p= t('member.jobs.index.testimonial')
%figcaption.blockquote-footer.mt-0
= image_tag('ok.png', size: '30', class: 'rounded-circle', alt: 'Bruno Girin')
%cite Bruno Girin, CTO, Imby
73 changes: 36 additions & 37 deletions app/views/member/jobs/new.html.haml
Original file line number Diff line number Diff line change
@@ -1,42 +1,41 @@
.job
.row.pt-4
.container.pt-4
.row
.col
%nav{'aria-label': 'breadcrumb'}
%ol.breadcrumb.ml-0
%ol.breadcrumb.ml-0.mb-0
%li.breadcrumb-item=link_to t('member.jobs.title'), member_jobs_path
%li.breadcrumb-item.active=t('member.jobs.new.title')

.stripe.reverse
.row
.col-12.col-lg-5.order-lg-2
.card
.card-header
%h6.mb-0=t('member.jobs.new.rules_intro')
.card-body
%ul.list-unstyled.ml-0
%li.form-check.mb-3
%input.form-check-input.mt-1#roles{type: 'checkbox'}
%label.form-check-label{for: 'roles'}= t('member.jobs.new.suitability')
%li.form-check.mb-3
%input.form-check-input.mt-1#degree{type: 'checkbox'}
%label.form-check-label{for: 'degree'}= t('member.jobs.new.degree')
%li.form-check.mb-3
%input.form-check-input.mt-1#experience{type: 'checkbox'}
%label.form-check-label{for: 'experience'}= t('member.jobs.new.experience')
%li.form-check.mb-3
%input.form-check-input.mt-1#work-details{type: 'checkbox'}
%label.form-check-label{for: 'work-details'}= t('member.jobs.new.details')
%li.form-check.mb-3
%input.form-check-input.mt-1#short{type: 'checkbox'}
%label.form-check-label{for: 'short'}= t('member.jobs.new.short')
%li.form-check.mb-3
%input.form-check-input.mt-1#pay{type: 'checkbox'}
%label.form-check-label{for: 'pay'}= t('member.jobs.new.salary')
%li.form-check.mb-3
%input.form-check-input.mt-1#payment{type: 'checkbox'}
%label.form-check-label{for: 'payment'}= t('member.jobs.new.pay.html', link: new_payment_path)
%p.mb-0= raw t('member.jobs.new.newsletter')
%br
.col-12.col-lg-7.order-lg-1
= simple_form_for @job, url: member_jobs_path, method: :post do |f|
= render partial: 'form', locals: { f: f }
.row.py-4.py-lg-5
.col-12.col-lg-5.order-lg-2
.card
.card-header
%h6.mb-0=t('member.jobs.new.rules_intro')
.card-body
%ul.list-unstyled.ml-0
%li.form-check.mb-3
%input.form-check-input.mt-1#roles{type: 'checkbox'}
%label.form-check-label{for: 'roles'}= t('member.jobs.new.suitability')
%li.form-check.mb-3
%input.form-check-input.mt-1#degree{type: 'checkbox'}
%label.form-check-label{for: 'degree'}= t('member.jobs.new.degree')
%li.form-check.mb-3
%input.form-check-input.mt-1#experience{type: 'checkbox'}
%label.form-check-label{for: 'experience'}= t('member.jobs.new.experience')
%li.form-check.mb-3
%input.form-check-input.mt-1#work-details{type: 'checkbox'}
%label.form-check-label{for: 'work-details'}= t('member.jobs.new.details')
%li.form-check.mb-3
%input.form-check-input.mt-1#short{type: 'checkbox'}
%label.form-check-label{for: 'short'}= t('member.jobs.new.short')
%li.form-check.mb-3
%input.form-check-input.mt-1#pay{type: 'checkbox'}
%label.form-check-label{for: 'pay'}= t('member.jobs.new.salary')
%li.form-check.mb-3
%input.form-check-input.mt-1#payment{type: 'checkbox'}
%label.form-check-label{for: 'payment'}= t('member.jobs.new.pay.html', link: new_payment_path)
%p.mb-0= raw t('member.jobs.new.newsletter')
%br
.col-12.col-lg-7.order-lg-1
= simple_form_for @job, url: member_jobs_path, method: :post do |f|
= render partial: 'form', locals: { f: f }
9 changes: 5 additions & 4 deletions app/views/member/jobs/show.html.haml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.job
.container.pt-4
.row.pt-4.mb-4
.col
%nav{'aria-label': 'breadcrumb'}
%ol.breadcrumb.ml-0
%ol.breadcrumb.ml-0.mb-0
%li.breadcrumb-item= link_to t('member.jobs.title'), member_jobs_path
%li.breadcrumb-item.active= @job.title

.row.mb-5
.row.mb-4
.col-12
.alert.alert-info
= t("job.messages.#{@job.status}_html")
Expand All @@ -23,6 +23,7 @@
%br
%small= t('member.jobs.new.approval_info')
.row
%h1 Preview
%h1.mb-4 Preview

.bg-light
= render partial: 'jobs/show', locals: { admin: false, preview: true }

0 comments on commit 56bc702

Please sign in to comment.