Shimmy

Untitled

Apr 21st, 2013
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.84 KB | None | 0 0
  1. @using (Ajax.BeginForm("Save", new AjaxOptions { }))
  2. {
  3.   @Html.AntiForgeryToken()
  4.  
  5.   <fieldset>
  6.     <legend>Category</legend>
  7.  
  8.     @Html.HiddenFor(model => model.CategoryId)
  9.  
  10.     <p>@((Model.CategoryId > 0 ? "Edit" : "New") + " category")</p>
  11.  
  12.     <div class="editor-label">
  13.       @Html.LabelFor(model => Model.Title)
  14.     </div>
  15.     <div class="editor-field">
  16.       @Html.EditorFor(model => Model.Title)
  17.       @Html.ValidationMessageFor(model => Model.Title)
  18.     </div>
  19.  
  20.     <div class="editor-label">
  21.       @Html.LabelFor(model => Model.Description)
  22.     </div>
  23.     <div class="editor-field">
  24.       @Html.EditorFor(model => Model.Description)
  25.       @Html.ValidationMessageFor(model => Model.Description)
  26.     </div>
  27.  
  28.     <p>
  29.       <input type="submit" value="Save">
  30.       @Html.ValidationSummary(true)
  31.     </p>
  32.   </fieldset>
  33. }
Advertisement
Add Comment
Please, Sign In to add comment