Guest User

Untitled

a guest
Apr 11th, 2013
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.83 KB | None | 0 0
  1. @using (Html.BeginForm("UploadAd", "Upload", FormMethod.Post, new { enctype = "multipart/form-data" }))
  2. {
  3.     @Html.ValidationSummary(true)
  4.  
  5.     <fieldset>
  6.         <legend>Ad</legend>
  7.  
  8.         <div class="editor-label">
  9.             @Html.LabelFor(model => model.Name)
  10.         </div>
  11.         <div class="editor-field">
  12.             @Html.EditorFor(model => model.Name)
  13.             @Html.ValidationMessageFor(model => model.Name)
  14.         </div>
  15.  
  16.         <div class="editor-label">
  17.             @Html.LabelFor(model => model.Sport)
  18.         </div>
  19.         <div class="editor-field">
  20.             @Html.EditorFor(model => model.Sport)
  21.             @Html.ValidationMessageFor(model => model.Sport)
  22.         </div>
  23.  
  24.         <div class="editor-label">
  25.             @Html.LabelFor(model => model.StartDate)
  26.         </div>
  27.         <div class="editor-field">
  28.             @Html.EditorFor(model => model.StartDate)
  29.             @Html.ValidationMessageFor(model => model.StartDate)
  30.         </div>
  31.  
  32.         <div class="editor-label">
  33.             @Html.LabelFor(model => model.EndDate)
  34.         </div>
  35.         <div class="editor-field">
  36.             @Html.EditorFor(model => model.EndDate)
  37.             @Html.ValidationMessageFor(model => model.EndDate)
  38.         </div>
  39.  
  40.         <div class="editor-label">
  41.             @Html.LabelFor(model => model.Company)
  42.         </div>
  43.         <div class="editor-field">
  44.             @Html.EditorFor(model => model.Company)
  45.             @Html.ValidationMessageFor(model => model.Company)
  46.         </div>
  47.  
  48.         <div class="editor-label">
  49.             <p>Photo</p>
  50.         </div>
  51.    
  52.         <input required type="file" id="files" name="files[]" multiple/>
  53.         <br />
  54.         <output id="list"></output>
  55.         <br />
  56.         <br />
  57.         <input type="submit" value="Create" />
  58.     </fieldset>
  59. }
Advertisement
Add Comment
Please, Sign In to add comment