The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Index.cshtml 4.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. @model Teknik.Areas.Contact.ViewModels.ContactViewModel
  2. @using Teknik.Utilities
  3. @Scripts.Render("~/bundles/contact")
  4. <div class="container">
  5. <div class="row">
  6. <div class="col-sm-12 col-lg-12">
  7. <h1 class="h1">
  8. Contact us
  9. </h1>
  10. </div>
  11. </div>
  12. </div>
  13. <div class="container">
  14. <div class="row">
  15. <div class="col-md-8">
  16. <div class="well well-sm">
  17. <form role="form" id="contactForm" action="@Url.SubRouteUrl("contact", "Contact.Action", new { action = "Submit" })" method="post" accept-charset="UTF-8">
  18. @Html.ValidationSummary(true, "Message send failed.")
  19. <div class="row">
  20. <div class="col-md-6">
  21. <div class="form-group">
  22. @Html.ValidationMessageFor(u => u.Name)
  23. <label for="Name">
  24. Name
  25. </label>
  26. <input type="text" class="form-control" id="Name" name="Name" placeholder="Enter name" required="required" value="@((Request.IsAuthenticated) ? User.Identity.Name : string.Empty)" />
  27. </div>
  28. <div class="form-group">
  29. @Html.ValidationMessageFor(u => u.Email)
  30. <label for="Email">
  31. Email Address
  32. </label>
  33. <div class="input-group">
  34. <span class="input-group-addon">
  35. <span class="glyphicon glyphicon-envelope"></span>
  36. </span>
  37. <input type="email" class="form-control" id="Email" name="Email" placeholder="Enter email" required="required" value="@((Request.IsAuthenticated) ? User.Identity.Name + "@" + Model.Config.Host : string.Empty)" />
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. @Html.ValidationMessageFor(u => u.Subject)
  42. <label for="Subject">
  43. Subject
  44. </label>
  45. <input type="text" class="form-control" id="Subject" name="Subject" placeholder="Subject" required="required" />
  46. </div>
  47. </div>
  48. <div class="col-md-6">
  49. <div class="form-group">
  50. @Html.ValidationMessageFor(u => u.Message)
  51. <label for="Message">
  52. Message
  53. </label>
  54. <textarea id="Message" name="Message" class="form-control" rows="9" cols="25" required="required"
  55. placeholder="Message"></textarea>
  56. </div>
  57. </div>
  58. <div class="col-md-12">
  59. <button type="submit" class="btn btn-primary pull-right" id="contact_submit">
  60. Send Message
  61. </button>
  62. </div>
  63. </div>
  64. </form>
  65. </div>
  66. <div class="row">
  67. <div class="col-sm-10 col-sm-offset-1"><p>If you want to report abuse, follow the instructions at the <a href="@Url.SubRouteUrl("abuse", "Abuse.Index")">Abuse Prevention</a> page.</p></div>
  68. </div>
  69. </div>
  70. <div class="col-md-4">
  71. <form>
  72. <legend><span class="glyphicon glyphicon-globe"></span> Where to find us</legend>
  73. <address>
  74. <strong>Customer Support</strong><br>
  75. <a href="mailto:@Model.Config.SupportEmail">@Model.Config.SupportEmail</a>
  76. </address>
  77. <address>
  78. <strong>Teknik on Rizon IRC</strong><br>
  79. #Teknik (<a href="irc://irc.rizon.net" target="_blank">irc.rizon.net</a>)<br>
  80. </address>
  81. </form>
  82. </div>
  83. </div>
  84. </div>