Upload ruck

This commit is contained in:
2024-05-16 22:30:18 -06:00
commit 50dd696a1b
24 changed files with 858 additions and 0 deletions

View File

@ -0,0 +1 @@
<p>Hello world!</p>

View File

@ -0,0 +1,13 @@
@model Ruck
<h2>Date/Time</h2>
@Model.DateTime
<h2>Weight</h2>
@Model.WeightPounds lb
<h2>Notes</h2>
<p>@Model.Notes</p>
<h2>GPX data</h2>
<pre>@Model.Route</pre>

View File

@ -0,0 +1,5 @@
@*
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
}

View File

@ -0,0 +1,21 @@
@model RuckUpload
<h2>Record new ruck</h2>
<div asp-validation-summary="All"></div>
<form method="post" enctype="multipart/form-data">
<div>
<label asp-for="DateTime"></label><input asp-for="DateTime" type="datetime-local" />
</div>
<div>
<label asp-for="Route"></label><input asp-for="Route" type="file" />
</div>
<div>
<label asp-for="WeightPounds"></label><input asp-for="WeightPounds" type="number" />
</div>
<div>
<label asp-for="Notes"></label><textarea asp-for="Notes" placeholder="Type notes here…"></textarea>
</div>
<input type="submit" value="Create" />
</form>

View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<title>Record My Ruck</title>
</head>
<body>
<header>
<h1>Record My Ruck</h1>
<nav>
<ul>
<li><a asp-controller="Home" asp-action="Index">Home</a></li>
<li><a asp-controller="Ruck" asp-action="New">Record ruck</a></li>
</ul>
</nav>
</header>
<hr />
<content>
@RenderBody()
</content>
</body>
</html>

View File

@ -0,0 +1,3 @@
@using RecordMyRuck.Models
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

View File

@ -0,0 +1,3 @@
@{
Layout = "_Layout";
}