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.

Register.cshtml 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. @model Teknik.Areas.Users.ViewModels.RegisterViewModel
  2. @if (Model.Config.UserConfig.RegistrationEnabled)
  3. {
  4. <div class="row">
  5. <div class="col-sm-12 text-center">
  6. <div id="registerStatus"></div>
  7. </div>
  8. </div>
  9. <form role="form" id="registrationForm" action="@Url.SubRouteUrl("user", "User.Register")" method="post" accept-charset="UTF-8">
  10. <input name="Register.ReturnUrl" id="registerReturnUrl" type="hidden" value="@Model.ReturnUrl" />
  11. <div class="form-group">
  12. <input type="text" class="form-control" id="registerUsername" value="" placeholder="Username" name="Register.Username" data-val-required="The Username field is required." data-val="true"/>
  13. </div>
  14. <div class="form-group">
  15. <input type="password" class="form-control" id="registerPassword" value="" placeholder="Password" name="Register.Password" data-val-required="The Password field is required." data-val="true"/>
  16. </div>
  17. <div class="form-group">
  18. <input type="password" class="form-control" id="registerConfirmPassword" value="" placeholder="Confirm Password" name="Register.ConfirmPassword" data-val-required="The Confirm Password field is required." data-val="true" />
  19. </div>
  20. <p class="text-center">
  21. <small>
  22. Username must meet the following requirements: <var>@Model.Config.UserConfig.UsernameFilterLabel</var><br />
  23. and the length must be greater than <b>@Model.Config.UserConfig.MinUsernameLength</b> and less than <b>@Model.Config.UserConfig.MaxUsernameLength</b> characters
  24. </small>
  25. </p>
  26. <p class="text-center">
  27. By registering for Teknik, you agree to the <a href="@Url.SubRouteUrl("tos", "TOS.Index")" target="_blank">Terms of Service</a>.
  28. </p>
  29. <div class="form-group text-center">
  30. <button class="btn btn-primary" id="registerSubmit" type="submit" name="Register.Submit">Sign Up</button>
  31. </div>
  32. </form>
  33. }
  34. else
  35. {
  36. <h3>Registration has been disabled</h3>
  37. }