Advertisement
Guest User

Untitled

a guest
May 25th, 2015
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.11 KB | None | 0 0
  1. @model Toets2.Models.Supporter
  2.  
  3. @{
  4.     Layout = null;
  5. }
  6.  
  7. <!DOCTYPE html>
  8.  
  9. <html>
  10. <head>
  11.     <meta name="viewport" content="width=device-width" />
  12.     <title>Create</title>
  13. </head>
  14. <body>
  15.     @using (Html.BeginForm())
  16.     {
  17.         @Html.AntiForgeryToken()
  18.        
  19.         <div class="form-horizontal">
  20.             <h4>Supporter</h4>
  21.             <hr />
  22.             @Html.ValidationSummary(true, "", new { @class = "text-danger" })
  23.             <div class="form-group">
  24.                 @Html.LabelFor(model => model.Aanspreking, htmlAttributes: new { @class = "control-label col-md-2" })
  25.                 <div class="col-md-10">
  26.                     @Html.EditorFor(model => model.Aanspreking, new { htmlAttributes = new { @class = "form-control" } })
  27.                     @Html.ValidationMessageFor(model => model.Aanspreking, "", new { @class = "text-danger" })
  28.                 </div>
  29.             </div>
  30.    
  31.             <div class="form-group">
  32.                 @Html.LabelFor(model => model.Name, htmlAttributes: new { @class = "control-label col-md-2" })
  33.                 <div class="col-md-10">
  34.                     @Html.EditorFor(model => model.Name, new { htmlAttributes = new { @class = "form-control" } })
  35.                     @Html.ValidationMessageFor(model => model.Name, "", new { @class = "text-danger" })
  36.                 </div>
  37.             </div>
  38.    
  39.             <div class="form-group">
  40.                 @Html.LabelFor(model => model.Email, htmlAttributes: new { @class = "control-label col-md-2" })
  41.                 <div class="col-md-10">
  42.                     @Html.EditorFor(model => model.Email, new { htmlAttributes = new { @class = "form-control" } })
  43.                     @Html.ValidationMessageFor(model => model.Email, "", new { @class = "text-danger" })
  44.                 </div>
  45.             </div>
  46.    
  47.             <div class="form-group">
  48.                 @Html.LabelFor(model => model.amountOfTrees, htmlAttributes: new { @class = "control-label col-md-2" })
  49.                 <div class="col-md-10">
  50.                     @Html.EditorFor(model => model.amountOfTrees, new { htmlAttributes = new { @class = "form-control" } })
  51.                     @Html.ValidationMessageFor(model => model.amountOfTrees, "", new { @class = "text-danger" })
  52.                 </div>
  53.             </div>
  54.    
  55.             <div class="form-group">
  56.                 @Html.LabelFor(model => model.donationAmount, htmlAttributes: new { @class = "control-label col-md-2" })
  57.                 <div class="col-md-10">
  58.                     @Html.EditorFor(model => model.donationAmount, new { htmlAttributes = new { @class = "form-control" } })
  59.                     @Html.ValidationMessageFor(model => model.donationAmount, "", new { @class = "text-danger" })
  60.                 </div>
  61.             </div>
  62.    
  63.             <div class="form-group">
  64.                 <div class="col-md-offset-2 col-md-10">
  65.                     <input type="submit" value="Create" class="btn btn-default" />
  66.                 </div>
  67.             </div>
  68.         </div>
  69.     }
  70.    
  71.     <div>
  72.         @Html.ActionLink("Back to List", "Index")
  73.     </div>
  74. </body>
  75. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement