Advertisement
mnyarar

PartialView

Aug 19th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.16 KB | None | 0 0
  1. @model namespace.SectorViewModel
  2. <!-- ko with: sectorcreate -->
  3. <div class="six wide column">
  4.     <div class="ui segments">
  5.         <div class="ui segment">
  6.             <h4 class="ui center aligned header">Create New Sector</h4>
  7.         </div>
  8.         <div class="ui secondary segment">
  9.             <form id="entity-create-form" class="ui form" action="#/sectorcreatepost" method="post" data-bind="submit: createEntity">
  10.                 <!-- I am not sure if I should include AntiForgeryToken for WebAPI call -->
  11.                 <!-- Html.AntiForgeryToken() -->
  12.                 <fieldset>
  13.                     <div class="field required">
  14.                         @Html.LabelFor(m => m.Name)
  15.                         @Html.TextBoxFor(m => m.Name, new { data_bind = "value: name" })
  16.                     </div>
  17.                     <div class="ui two buttons">
  18.                         <button class="ui positive button" type="submit">Create</button>
  19.                         <button class="ui button" type="button" id="operation-cancel">Cancel</button>
  20.                     </div>
  21.                 </fieldset>
  22.             </form>
  23.         </div>
  24.     </div>
  25. </div>
  26. <!-- /ko -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement