Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
20 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
<img class="full-photo" src="<%= @picture_url %>"> | ||
|
||
<p><a href="/pictures.html">Return to album</a></p> | ||
|
||
<h2>Comments</h2> | ||
|
||
<form action="/add-comment" method="post" class="add-comment"> | ||
<input type="hidden" name="picture" value="<%= @picture %>"> | ||
<label for="author">Name</label> | ||
<br><input type="text" name="author"> | ||
<br><label for="message">Comment</label> | ||
<br><textarea type="text" name="message"></textarea> | ||
<br><button type="submit">Add Comment</button> | ||
</form> |