The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. @model Teknik.Areas.Paste.ViewModels.PasteCreateViewModel
  2. @using Teknik.Helpers
  3. @Styles.Render("~/Content/paste")
  4. @Scripts.Render("~/bundles/paste")
  5. <div class="container">
  6. <div class="row">
  7. <div class="col-sm-12">
  8. <form class="form-horizontal" name="editor" method="post" action="@Url.SubRouteUrl("paste", "Paste.Action", new { action = "Paste" })">
  9. @Html.AntiForgeryToken()
  10. <div class="form-group">
  11. <div class="col-sm-10 col-sm-offset-1">
  12. <textarea class="form-control" name="Content" id="content" rows="20"></textarea>
  13. </div>
  14. </div>
  15. <div class="form-group">
  16. <label for="title" class="col-sm-2 col-sm-offset-1 control-label">Title</label>
  17. <div class="col-sm-4">
  18. <input type="text" class="form-control" name="Title" id="title" placeholder="My Awesome Paste">
  19. </div>
  20. <div class="col-sm-1 col-sm-offset-2">
  21. <button type="submit" class="btn btn-primary" id="pasteSubmit">Submit Paste</button>
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label for="syntax" class="col-sm-2 col-sm-offset-1 control-label">Syntax</label>
  26. <div class="col-sm-4">
  27. <select class="form-control" name="Syntax" id="syntax">
  28. <option value="auto-select">Auto Select</option>
  29. @foreach (KeyValuePair<string, string> format in Constants.HIGHLIGHTFORMATS)
  30. {
  31. <option value="@format.Value">@format.Key</option>
  32. }
  33. </select>
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label for="syntax" class="col-sm-2 col-sm-offset-1 control-label">Expires</label>
  38. <div class="col-sm-2">
  39. <input type="number" min="1" step="1" class="form-control" name="ExpireLength" id="expirelength" placeholder="1">
  40. </div>
  41. <div class="col-sm-2">
  42. <select class="form-control" name="ExpireUnit" id="expireunit">
  43. <option value="never">Never</option>
  44. <option value="view">Views</option>
  45. <option value="minute">Minutes</option>
  46. <option value="hour">Hours</option>
  47. <option value="day">Days</option>
  48. <option value="month">Months</option>
  49. <option value="year">Years</option>
  50. </select>
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. <label for="password" class="col-sm-2 col-sm-offset-1 control-label">Password</label>
  55. <div class="col-sm-4">
  56. <input type="password" class="form-control" name="Password" id="password" placeholder="Secret">
  57. </div>
  58. </div>
  59. <div class="form-group">
  60. <div class="col-sm-offset-3 col-sm-6">
  61. <div class="checkbox">
  62. <label>
  63. <input type="checkbox" name="Hide" id="hide" value="true"> Hide from Public List
  64. </label>
  65. </div>
  66. </div>
  67. </div>
  68. </form>
  69. </div>
  70. </div>
  71. </div>