Upload ruck
This commit is contained in:
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>
|
Reference in New Issue
Block a user