Skip to content

Commit

Permalink
add preview button for userfile edit and upload (#1734)
Browse files Browse the repository at this point in the history
fix #1617
  • Loading branch information
vadosnaprimer authored Jan 4, 2024
1 parent 44e04e3 commit 3866a11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions TASVideos/Pages/UserFiles/Edit.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,14 @@
</row>
<fullrow class="text-center">
@await Component.RenderWiki(SystemWiki.WikiEditNote)
<button type="button" class="btn btn-secondary" id="preview-button">Preview</button>
<submit-button class="btn btn-primary"><i class="fa fa-save"></i> Save</submit-button>
<a href="@cancelUrl" class="btn btn-secondary"><i class="fa fa-times"></i> Cancel</a>
</fullrow>
</form>

<partial name="_PreviewWindow" model="@(Html.IdFor(m => m.UserFile.Description), "/Wiki/Preview")" />

@section Scripts {
<partial name="_ValidationScriptsPartial" />
<script src="/js/userfile.js"></script>
Expand Down
3 changes: 3 additions & 0 deletions TASVideos/Pages/UserFiles/Upload.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,14 @@
</row>
<fullrow class="text-center">
@await Component.RenderWiki(SystemWiki.WikiEditNote)
<button type="button" class="btn btn-secondary" id="preview-button">Preview</button>
<submit-button class="btn btn-primary"><i class="fa fa-upload"></i> Upload</submit-button>
<a href="/Profile/UserFiles" class="btn btn-secondary"><i class="fa fa-times"></i> Cancel</a>
</fullrow>
</form>

<partial name="_PreviewWindow" model="@(Html.IdFor(m => m.UserFile.Description), "/Wiki/Preview")" />

@section Scripts {
<partial name="_ValidationScriptsPartial" />
<script src="/js/userfile.js"></script>
Expand Down

0 comments on commit 3866a11

Please sign in to comment.