Advertisement
Guest User

Untitled

a guest
Apr 18th, 2016
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. @using (Html.BeginForm("SubmitRecipe", "Recipe", FormMethod.Post))
  2. {
  3. <div class="submit-recipe-form">
  4. @Html.LabelFor(model => model.Recipe.Title, "Recipe Title")
  5. @Html.EditorFor(model => model.Recipe.Title)
  6. @Html.ValidationMessageFor(model => model.Recipe.Title)
  7. <br />
  8. @Html.LabelFor(model => model.Recipe.Description, "Description")
  9. @Html.TextAreaFor(model => model.Recipe.Description)
  10. @Html.ValidationMessageFor(model => model.Recipe.Description)
  11. <br />
  12. @Html.LabelFor(model => model.Recipe.Image, "Upload Image")
  13. <input type="file" name="fileUpload" id="upload-image" />
  14. <div id="create-ingredient">
  15. @Html.Partial("_CreateIngredient", Model.addIngredient)
  16. </div>
  17. <br />
  18. <div id="add-ingredient">
  19. @Html.Partial("_AddIngredient")
  20. </div>
  21. <br />
  22. <div>
  23. @Html.LabelFor(model => model.Recipe.Preparation, "Preparation")
  24. @Html.TextAreaFor(model => model.Recipe.Preparation, "Preparation")
  25. @Html.ValidationMessageFor(model => model.Recipe.Preparation)
  26. </div>
  27. <br />
  28. <div class="text-center">
  29. <button type="submit" class="recipe-submit-btn">Submit Your Recipe</button>
  30. </div>
  31. </div>
  32. }
  33. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement