-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* My profile page * code review changes * fix failing cucumber test * Code Review Changes * Further code review changes
- Loading branch information
1 parent
ed7ab29
commit ec4edb1
Showing
17 changed files
with
163 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.my-profile-info { | ||
left: 50%; | ||
transform: translateX(-50%); | ||
-webkit-transform: translateX(-50%); | ||
-ms-transform: translateX(-50%); | ||
} |
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 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 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 |
---|---|---|
|
@@ -43,4 +43,8 @@ def edit_profile? | |
update_profile? | ||
end | ||
|
||
def my_profile? | ||
user.is_agency_person? record.agency | ||
end | ||
|
||
end |
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 |
---|---|---|
|
@@ -10,6 +10,10 @@ def edit? | |
update? | ||
end | ||
|
||
def my_profile? | ||
user == record | ||
end | ||
|
||
def home? | ||
# account owner | ||
user == record | ||
|
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.row | ||
.col-md-4.my-profile-info | ||
%h1.my-profile-header Your Profile | ||
%table.table | ||
%tbody | ||
%tr | ||
%td | ||
%strong Full Name | ||
%td= @agency_person.first_name + ' ' + @agency_person.last_name | ||
%tr | ||
%td | ||
%strong Email | ||
%td= @agency_person.email | ||
%tr | ||
%td | ||
%strong Phone | ||
%td= @agency_person.phone | ||
= link_to "Edit", edit_profile_agency_person_path(@agency_person), class: "btn btn-lg edit-profile-btn" |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.row | ||
.col-md-4.my-profile-info | ||
%h1.my-profile-header Your Profile | ||
%table.table | ||
%tbody | ||
%tr | ||
%td | ||
%strong Title | ||
%td= @company_person.title | ||
%tr | ||
%td | ||
%strong Full Name | ||
%td= @company_person.first_name + ' ' + @company_person.last_name | ||
%tr | ||
%td | ||
%strong Email | ||
%td= @company_person.email | ||
%tr | ||
%td | ||
%strong Phone | ||
%td= @company_person.phone | ||
%tr | ||
%td | ||
%strong Address | ||
%td= @company_person.address.street + ', ' + @company_person.address.city + ', ' + @company_person.address.zipcode | ||
= link_to "Edit", edit_profile_company_person_path(@company_person), class: "btn btn-lg edit-profile-btn" |
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,6 +1,9 @@ | ||
%div{class:'row'} | ||
%div{class:'col-sm-8 col-sm-offset-2'} | ||
%h1 Edit JobSeeker Registration | ||
.row | ||
.col-sm-8.col-sm-offset-2 | ||
- if pets_user.is_a?(AgencyPerson) || pets_user.is_a?(CompanyPerson) | ||
%h1 Edit JobSeeker Registration | ||
- else | ||
%h1 Update Your Profile | ||
%br | ||
= render partial: 'form' | ||
%br |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
.row | ||
.col-md-8.my-profile-info | ||
%h1.my-profile-header Your Profile | ||
%table.table | ||
%tbody | ||
%tr | ||
%td | ||
%strong Full Name | ||
%td= @jobseeker.first_name + ' ' + @jobseeker.last_name | ||
%tr | ||
%td | ||
%strong Email | ||
%td= @jobseeker.email | ||
%tr | ||
%td | ||
%strong Phone | ||
%td= @jobseeker.phone | ||
%tr | ||
%td | ||
%strong Year Of Birth | ||
%td= @jobseeker.year_of_birth | ||
%tr | ||
%td | ||
%strong Resume | ||
%td | ||
- if @current_resume | ||
Your current resume is #{@current_resume.file_name} and was uploaded on | ||
%span.utc_to_local_time= @current_resume.updated_at | ||
- else | ||
You have no current resume | ||
- if @jobseeker.address.present? | ||
%tr | ||
%td | ||
%strong Address | ||
%td= @jobseeker.address.street + ', ' + @jobseeker.address.city + ', ' + @jobseeker.address.zipcode | ||
%tr | ||
%td | ||
%strong Status | ||
%td= @jobseeker.status.short_description | ||
= link_to "Edit", edit_job_seeker_path(@jobseeker), class: "btn btn-lg edit-profile-btn" |
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 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 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