-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from codeunion/edit-content
Users can edit content of résumé
- Loading branch information
Showing
5 changed files
with
133 additions
and
2 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 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 |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<div class="resume"> | ||
<h3>Edit My Résumé</h3> | ||
|
||
<section class="profile"> | ||
<form name="edit_user" action="/users/edit" method="post" accept-charset="utf-8"> | ||
<input type="hidden" name="_method" value="put"> | ||
|
||
<label for="user[name]">Name</label> | ||
<input type="text" name="user[name]" value="<%= default_user.name %>"> | ||
<br> | ||
|
||
<label for="user[email]">Email</label> | ||
<input type="email" name="user[email]" value="<%= default_user.email %>"> | ||
<br> | ||
|
||
<label for="user[phone]">Phone</label> | ||
<input type="phone" name="user[phone]" value="<%= default_user.phone %>"> | ||
<br> | ||
|
||
<label for="user[website]">Website</label> | ||
<input type="url" name="user[website]" value="<%= default_user.website %>"> | ||
<br> | ||
|
||
<label for="user[bio]">Bio</label> | ||
<textarea name="user[bio]"><%= default_user.bio %></textarea> | ||
<br> | ||
|
||
<input type="submit" value="Update user"> | ||
</form> | ||
</section> | ||
|
||
<section class="jobs"> | ||
<h2>Jobs</h2> | ||
<ul> | ||
<% @jobs.each do |job| %> | ||
<li> | ||
<form name="edit_job" action="/jobs/edit" method="post" accept-charset="utf-8"> | ||
<input type="hidden" name="_method" value="put"> | ||
|
||
<input type="hidden" name="job[id]" value="<%= job.id %>"> | ||
|
||
<input type="text" name="job[job_title]" value="<%= job.job_title %>"> at | ||
<input type="text" name="job[company_name]" value="<%= job.company_name %>"> | ||
<br> | ||
|
||
<label for="job[job_description]">Job Description</label> | ||
<textarea name="job[job_description]"><%= job.job_description %></textarea> | ||
<br> | ||
|
||
<input type="submit" value="Update job"> | ||
</form> | ||
</li> | ||
<% end %> | ||
</ul> | ||
</section> | ||
|
||
<section class="skills"> | ||
<h2>Skills</h2> | ||
<ul> | ||
<% @skills.each do |skill| %> | ||
<li> | ||
<form name="edit_skill" action="/skills/edit" method="post" accept-charset="utf-8"> | ||
<input type="hidden" name="_method" value="put"> | ||
|
||
<input type="hidden" name="skill[id]" value="<%= skill.id %>"> | ||
|
||
<input type="text" name="skill[name]" value="<%= skill.name %>"> | ||
<br> | ||
|
||
<input type="submit" value="Update skill"> | ||
</form> | ||
</li> | ||
<% end %> | ||
</ul> | ||
</section> | ||
</div> |
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