Fix markup
continuous-integration/drone/push Build is passing Details

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 Microsoft.AspNetCore.Http;
using Microsoft.Extensions.FileProviders;
@ -6,6 +7,7 @@ namespace OD.WebApplication.Models
{
public class HomeViewModel
{
[Required]
public IFormFile FileAttach { get; set; }
}
}

View File

@ -5,16 +5,12 @@
}
<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"}))
{
@Html.AntiForgeryToken()
<div class="form-group">
<label asp-for="@Model.FileAttach"></label>
<input asp-for="@Model.FileAttach" type="file">
<span asp-validation-for="@Model.FileAttach"></span>
</div>
<label asp-for="@Model.FileAttach">Escoge el CSV a convertir</label><br/>
<input asp-for="@Model.FileAttach" type="file">
<br/>
<input class="btn btn-outline-primary" type="submit"/>
}