-
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.
Add story preview when creating or editing
- Loading branch information
1 parent
e785417
commit 56be8ee
Showing
5 changed files
with
49 additions
and
23 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,19 @@ | ||
<div wire:ignore.self class="modal fade" id="previewStory" tabindex="-1" aria-labelledby="previewStory" aria-hidden="true"> | ||
<div class="modal-dialog modal-lg"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title" id="previewStoryLabel">Story Preview</h5> | ||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> | ||
</div> | ||
<div class="modal-body"> | ||
<h3 id="preview-story-subject">{{ $subject }}</h3> | ||
<div class="py-2 story-markdown" id="preview-story-summary">{{ $summary }}</div> | ||
<hr> | ||
<div id="preview-story-body" class="py-2 story-markdown">{{ $body }}</div> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" data-bs-dismiss="modal" class="btn btn-success text-light">OK</button> | ||
</div> | ||
</div> | ||
</div> | ||
</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
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,19 +1,19 @@ | ||
<div class="mb-3"> | ||
<label for="subject" class="form-label required">Subject</label> | ||
<input type="text" class="form-control @error('subject') border border-danger @enderror" id="subject" aria-describedby="subjectHelp" wire:model="subject"> | ||
<input type="text" class="form-control @error('subject') border border-danger @enderror" id="story-subject" aria-describedby="subjectHelp" wire:model="subject"> | ||
<div id="subjectHelp" class="form-text"></div> | ||
</div> | ||
|
||
<div class="mb-3"> | ||
<label for="summary" class="form-label">Summary</label> | ||
@error('summary') <span class="text-danger">{{ $message }}</span> @enderror | ||
<textarea class="form-control @error('summary') border border-danger @enderror" id="summary" aria-describedby="subjectHelp" rows="2" wire:model="summary"></textarea> | ||
<textarea class="form-control @error('summary') border border-danger @enderror" id="story-summary" aria-describedby="subjectHelp" rows="2" wire:model="summary"></textarea> | ||
<div id="summaryHelp" class="form-text"></div> | ||
</div> | ||
|
||
<div class="mb-3"> | ||
<label for="body" class="form-label">Blog Post</label> | ||
@error('body') <span class="text-danger">{{ $message }}</span> @enderror | ||
<textarea class="form-control @error('body') border border-danger @enderror" id="body" aria-describedby="bodyHelp" rows="10" wire:model="body"></textarea> | ||
<div id="bodyHelp" class="form-text"></div> | ||
<textarea class="form-control @error('body') border border-danger @enderror" id="story-body" aria-describedby="bodyHelp" rows="10" wire:model="body"></textarea> | ||
<div id="bodyHelp" class="small text-muted form-text">Markdown Supported</div> | ||
</div> |