Fix markup
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
linuxct 2020-07-14 12:46:11 +02:00
parent 917792c4a4
commit 94a58b988a
2 changed files with 5 additions and 7 deletions

View File

@ -1,3 +1,4 @@
using System.ComponentModel.DataAnnotations;
using System.IO; using System.IO;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.FileProviders; using Microsoft.Extensions.FileProviders;
@ -6,6 +7,7 @@ namespace OD.WebApplication.Models
{ {
public class HomeViewModel public class HomeViewModel
{ {
[Required]
public IFormFile FileAttach { get; set; } public IFormFile FileAttach { get; set; }
} }
} }

View File

@ -5,16 +5,12 @@
} }
<div class="text-center"> <div class="text-center">
<h4>Escoge el CSV a parsear</h4>
<br/>
@using (Html.BeginForm("UploadCSV", "Home", FormMethod.Post, new {id = "loginForm", enctype = "multipart/form-data"})) @using (Html.BeginForm("UploadCSV", "Home", FormMethod.Post, new {id = "loginForm", enctype = "multipart/form-data"}))
{ {
@Html.AntiForgeryToken() @Html.AntiForgeryToken()
<div class="form-group"> <label asp-for="@Model.FileAttach">Escoge el CSV a convertir</label><br/>
<label asp-for="@Model.FileAttach"></label> <input asp-for="@Model.FileAttach" type="file">
<input asp-for="@Model.FileAttach" type="file"> <br/>
<span asp-validation-for="@Model.FileAttach"></span>
</div>
<input class="btn btn-outline-primary" type="submit"/> <input class="btn btn-outline-primary" type="submit"/>
} }