-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#110: edit as profile, use find_coach for admin accessibility of coac…
…h profile
- Loading branch information
1 parent
dea5b17
commit e548a9b
Showing
4 changed files
with
56 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<h1>Your coach account</h1> | ||
<%= link_to("View Public Profile", coach_path(@coach)) %> | ||
<%= form_for(@coach, html: {class: "grey"}, method: :put) do |f| %> | ||
<%= render 'shared/coachform', :f => f %> | ||
<div class='button'> | ||
<%= f.submit "Submit", class: 'commit', type: 'submit' %> | ||
</div> | ||
<% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
<h1>Your coach account</h1> | ||
<%= form_for @coach, html: {class: "grey"} do |f| %> | ||
<%= render 'shared/coachform', :f => f %> | ||
<% end %> | ||
<h1>Coach <%= @coach.name %></h1> | ||
<table> | ||
<tr> | ||
<td>Female</td> | ||
<td><%= @coach.female %></td> | ||
</tr> | ||
<tr> | ||
<td>gives talks in German</td> | ||
<td><%= @coach.language_de %></td> | ||
</tr> | ||
<tr> | ||
<td>gives talks in English</td> | ||
<td><%= @coach.language_en %></td> | ||
</tr> | ||
</table> |
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