forked from bradtraversy/storybooks
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Brad Traversy
authored and
Brad Traversy
committed
Jun 19, 2020
1 parent
16b778e
commit b3e0f8d
Showing
4 changed files
with
120 additions
and
1 deletion.
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,36 @@ | ||
<h3>Edit Story</h3> | ||
<div class="row"> | ||
<form action="/stories/{{story._id}}" method="POST" class="col s12"> | ||
<input type="hidden" name="_method" value="PUT"> | ||
<div class="row"> | ||
<div class="input-field"> | ||
<input type="text" id="title" name="title" value="{{story.title}}"> | ||
<label for="title">Title</label> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="input-field"> | ||
<select id="status" name="status"> | ||
{{#select story.status}} | ||
<option value="public" selected>Public</option> | ||
<option value="private">Private</option> | ||
{{/select}} | ||
</select> | ||
<label for="status">Status</label> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="input-field"> | ||
<h5>Tell Us Your Story:</h5> | ||
<textarea id="body" name="body">{{story.body}}</textarea> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<input type="submit" value="Save" class="btn"> | ||
<a href="/dashboard" class="btn orange">Cancel</a> | ||
</div> | ||
</form> | ||
</div> |