summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Manage/UploadAvatar.cshtml
blob: 6224f8630be3639aca3e69bed8298d41e02b9ddf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@model Project_Unite.Models.UploadImageViewModel
@{
    ViewBag.Title = "Upload avatar";
}

<h2>Upload an avatar</h2>

<p>Let's put a face on your profile, shall we? Upload an image from your local computer and we'll display it as your avatar.</p>

@using (Html.BeginForm("UploadAvatar", "Manage", null, FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary()
    <p><strong>File to upload: </strong>@Html.TextBoxFor(Model=>Model.Image, new { @class = "form-control", type = "file" })</p>
    <input type="submit" class="form-control" value="Upload!" />
}