Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @using (Html.BeginForm("UploadAd", "Upload", FormMethod.Post, new { enctype = "multipart/form-data" }))
- {
- @Html.ValidationSummary(true)
- <fieldset>
- <legend>Ad</legend>
- <div class="editor-label">
- @Html.LabelFor(model => model.Name)
- </div>
- <div class="editor-field">
- @Html.EditorFor(model => model.Name)
- @Html.ValidationMessageFor(model => model.Name)
- </div>
- <div class="editor-label">
- @Html.LabelFor(model => model.Sport)
- </div>
- <div class="editor-field">
- @Html.EditorFor(model => model.Sport)
- @Html.ValidationMessageFor(model => model.Sport)
- </div>
- <div class="editor-label">
- @Html.LabelFor(model => model.StartDate)
- </div>
- <div class="editor-field">
- @Html.EditorFor(model => model.StartDate)
- @Html.ValidationMessageFor(model => model.StartDate)
- </div>
- <div class="editor-label">
- @Html.LabelFor(model => model.EndDate)
- </div>
- <div class="editor-field">
- @Html.EditorFor(model => model.EndDate)
- @Html.ValidationMessageFor(model => model.EndDate)
- </div>
- <div class="editor-label">
- @Html.LabelFor(model => model.Company)
- </div>
- <div class="editor-field">
- @Html.EditorFor(model => model.Company)
- @Html.ValidationMessageFor(model => model.Company)
- </div>
- <div class="editor-label">
- <p>Photo</p>
- </div>
- <input required type="file" id="files" name="files[]" multiple/>
- <br />
- <output id="list"></output>
- <br />
- <br />
- <input type="submit" value="Create" />
- </fieldset>
- }
Advertisement
Add Comment
Please, Sign In to add comment