Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.72 KB | None | 0 0
  1. <div id="updateWrapper">
  2. @using (Ajax.BeginForm("Add", "FormLibrary", new AjaxOptions()
  3. {
  4. UpdateTargetId = "updateWrapper"
  5. }))
  6. {
  7. <div class="form-horizontal">
  8. @Html.ValidationSummary(true, "", new { @class = "text-danger" })
  9.  
  10. <div class="form-group">
  11. @Html.LabelFor(model => model.Name, htmlAttributes: new { @class = "control-label col-md-2" })
  12. <div class="col-md-10">
  13. @Html.EditorFor(model => model.Name, new { htmlAttributes = new { @class = "form-control" } })
  14. @Html.ValidationMessageFor(model => model.Name, "", new { @class = "text-danger" })
  15. </div>
  16. </div>
  17.  
  18. @*<div class="form-group">
  19. @Html.LabelFor(model => model.Description, htmlAttributes: new { @class = "control-label col-md-2" })
  20. <div class="col-md-10">
  21. @Html.EditorFor(model => model.Description, new { htmlAttributes = new { @class = "form-control" } })
  22. @Html.ValidationMessageFor(model => model.Description, "", new {@class = "text-danger"})
  23. </div>
  24. </div>*@
  25.  
  26. @*<div id="description">*@
  27. @(Html.EditorFieldFor(m => m.Description, tools: t => t.CreateLink()))
  28. @*</div>*@
  29.  
  30. <div class="form-group">
  31. @Html.LabelFor(model => model.Url, htmlAttributes: new { @class = "control-label col-md-2" })
  32. <div class="col-md-10">
  33. @Html.EditorFor(model => model.Url, new { htmlAttributes = new { @class = "form-control" } })
  34. @Html.ValidationMessageFor(model => model.Url, "", new { @class = "text-danger" })
  35. </div>
  36. </div>
  37.  
  38. <div class="form-group">
  39. @Html.LabelFor(model => model.FormCategoryId, htmlAttributes: new { @class = "control-label col-md-2" })
  40. <div class="col-md-10">
  41. @(Html.Kendo().DropDownListFor(model => model.FormCategoryId)
  42. .DataSource(x => x.Read(r => r.Action("GetCategories", "Catalog", new { catalog = CatalogType.FormCategory })))
  43. .Value(Model?.FormCategoryId)
  44. .DataValueField("Id")
  45. .DataTextField("Title")
  46. .OptionLabel(Resources.Document_SelectCategory_Title)
  47. .HtmlAttributes(new { @class = "form-control" })
  48. )
  49. @Html.ValidationMessageFor(model => model.FormCategoryId, "", new { @class = "text-danger" })
  50. </div>
  51. </div>
  52.  
  53.  
  54. <div class="form-group">
  55. <label class="col-md-2 control-label">@Resources.Document_AvailableFor_Title_Title</label>
  56. <div class="col-md-10">
  57. @(Html
  58. .Kendo()
  59. .MultiSelectFor(m => m.AvailableFor)
  60. .Placeholder("Available for clients")
  61. .DataSource(x => x.Read(r => r.Action("LoadAll", "Clients")))
  62. .DataValueField("Id")
  63. .DataTextField("ClientName")
  64. )
  65. </div>
  66. </div>
  67.  
  68. @*<div class="form-group">
  69. <div class="col-md-offset-9 col-md-3">
  70. <input type="submit" value="Add" class="btn btn-default" />
  71. </div>
  72. </div>*@
  73.  
  74. </div>
  75. }
  76.  
  77. @*@if (Model != null && ViewData.ModelState.IsValid)
  78. {
  79. <script>
  80. closePopup("#createPopup");
  81. </script>
  82. }*@
  83. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement