Upload ruck
This commit is contained in:
1
RecordMyRuck/Views/Home/Index.cshtml
Normal file
1
RecordMyRuck/Views/Home/Index.cshtml
Normal file
@ -0,0 +1 @@
|
||||
<p>Hello world!</p>
|
13
RecordMyRuck/Views/Ruck/Edit.cshtml
Normal file
13
RecordMyRuck/Views/Ruck/Edit.cshtml
Normal 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>
|
5
RecordMyRuck/Views/Ruck/Index.cshtml
Normal file
5
RecordMyRuck/Views/Ruck/Index.cshtml
Normal file
@ -0,0 +1,5 @@
|
||||
@*
|
||||
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
|
||||
*@
|
||||
@{
|
||||
}
|
21
RecordMyRuck/Views/Ruck/New.cshtml
Normal file
21
RecordMyRuck/Views/Ruck/New.cshtml
Normal 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>
|
22
RecordMyRuck/Views/Shared/_Layout.cshtml
Normal file
22
RecordMyRuck/Views/Shared/_Layout.cshtml
Normal 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>
|
3
RecordMyRuck/Views/_ViewImports.cshtml
Normal file
3
RecordMyRuck/Views/_ViewImports.cshtml
Normal file
@ -0,0 +1,3 @@
|
||||
@using RecordMyRuck.Models
|
||||
|
||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
3
RecordMyRuck/Views/_ViewStart.cshtml
Normal file
3
RecordMyRuck/Views/_ViewStart.cshtml
Normal file
@ -0,0 +1,3 @@
|
||||
@{
|
||||
Layout = "_Layout";
|
||||
}
|
Reference in New Issue
Block a user