Commit 3a2d621e by Mai Hoang Thai Ha

fix code style

parent bcc62012
- provide(:title, 'User Jobs') - provide(:title, 'User Apply Jobs')
.container.py-5 .container.py-5
h1.text-center.my-job-label My Job h1.text-center.my-job-label My Job
......
/ = form_with(model: @favorite_job, url: favorite_jobs_path(job_id: job_id, format: :js), id: "favorite-#{job_id}", remote: true) do |f|
/ = f.submit 'Favorite', class: 'btn btn-primary btn-height'
div id="favorite-#{job_id}" div id="favorite-#{job_id}"
= link_to favorite_jobs_path(job_id: job_id, format: :js), = link_to favorite_jobs_path(job_id: job_id, format: :js),
method: :post, method: :post,
......
/ = form_with(model: @favorite_job, url: favorite_job_path(current_user, job_id: job_id, format: :js), id: "unfavorite-#{job_id}", method: :delete, remote: true) do |f|
/ = f.submit 'Un favorite', class: 'btn btn-secondary btn-height'
div id="unfavorite-#{job_id}" div id="unfavorite-#{job_id}"
= link_to favorite_job_path(current_user, job_id: job_id, format: :js), = link_to favorite_job_path(current_user, job_id: job_id, format: :js),
method: :delete, method: :delete,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment