The next generation of the Teknik Services. Written in ASP.NET. Fork for blog tags.
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 1.0KB

12345678910111213141516171819202122232425262728
  1. @model Teknik.Areas.Shortener.ViewModels.ShortenViewModel
  2. @Scripts.Render("~/bundles/shortener")
  3. <div class="container">
  4. <div class="row">
  5. <div class="col-sm-12 text-center">
  6. <h1>Shorten a Url</h1>
  7. </div>
  8. </div>
  9. <br />
  10. <br />
  11. <div class="row">
  12. <div class="col-sm-12 text-center">
  13. <form class="form-horizontal" name="shortenerForm" id="shortenerForm" method="post" action="@Url.SubRouteUrl("shorten", "Shortener.Action", new { action = "ShortenUrl" })">
  14. <div class="form-group">
  15. <div class="col-sm-10 col-sm-offset-1">
  16. <input type="text" class="form-control input-lg" name="Url" id="url" placeholder="https://www.example.com/really/long/url" style="text-align:center;">
  17. </div>
  18. </div>
  19. <div class="form-group">
  20. <button type="submit" class="btn btn-primary" id="shortenSubmit">Shorten</button>
  21. </div>
  22. </form>
  23. </div>
  24. </div>
  25. </div>