1
0
This repository has been archived on 2026-04-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
my-old-website/MyWebsite/MyWebsite/Areas/Admin/Views/Resume/Edit.cshtml
T
Michael Gordeev ad8b23f727 Updated project
2020-03-03 16:49:41 +03:00

50 lines
1.6 KiB
Plaintext

@model MyWebsite.Models.ResumeModel
@{
ViewData["Title"] = "Edit resume";
}
<header>
<p>&#xE760; <a asp-action="Index">Back to the list</a></p>
<h1>Edit resume</h1>
<p>
Language: @(new System.Globalization.CultureInfo(Model.Language).DisplayName)<br />
Previously updated on @Model.LastUpdate
</p>
</header>
<article>
<form asp-action="Edit">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<input type="text" asp-for="Language" hidden />
<div>
<textarea asp-for="Content" spellcheck="false"></textarea>
<a class="comment" onclick="CopyToClipboard()" href="#">// &#xE16D; Copy to clipboard</a>
<span style="display: none" id="copied"> - Done</span><br />
<span asp-validation-for="Content" class="text-danger"></span>
</div>
<br />
<input type="submit" value="Save" class=" btn" />
</form>
</article>
<link type="text/css" rel="stylesheet" href="~/css/Admin.css" />
<style type="text/css">
form {
max-width: initial;
}
textarea {
min-height: 500px;
}
</style>
<script type="text/javascript">
async function CopyToClipboard() {
text = document.getElementById("Content");
text.select();
document.execCommand("copy");
window.getSelection().removeAllRanges();
document.getElementById("copied").style.display = "initial";
await new Promise(res => setTimeout(res, 3000));
document.getElementById("copied").style.display = "none";
}
</script>