Commit 3a2d621e by Mai Hoang Thai Ha

fix code style

parent bcc62012
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
class Users::RegistrationsController < Devise::RegistrationsController class Users::RegistrationsController < Devise::RegistrationsController
# before_action :configure_sign_up_params, only: [:create] # before_action :configure_sign_up_params, only: [:create]
# before_action :configure_account_update_params, only: [:update] # before_action :configure_account_update_params, only: [:update]
def information def information
self.resource = resource_class.new self.resource = resource_class.new
signed_in_resource signed_in_resource
......
- 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
...@@ -12,4 +12,4 @@ ...@@ -12,4 +12,4 @@
.page-info.p-2 .page-info.p-2
= page_entries_info @jobs = page_entries_info @jobs
.page-info.p-2 .page-info.p-2
= paginate @jobs = paginate @jobs
\ No newline at end of file
/ = 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,
remote: true, remote: true,
class: 'btn btn-primary' class: 'btn btn-primary'
| Favorite | Favorite
\ No newline at end of file
...@@ -34,4 +34,4 @@ ...@@ -34,4 +34,4 @@
.page-info.p-2 .page-info.p-2
= page_entries_info jobs = page_entries_info jobs
.page-info.p-2 .page-info.p-2
= paginate jobs = paginate jobs
\ No newline at end of file
/ = 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,
remote: true, remote: true,
class: 'btn btn-secondary' class: 'btn btn-secondary'
| UnFavorite | UnFavorite
\ No newline at end of file
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