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.

UserInfo.cshtml 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. @model Teknik.Areas.Admin.ViewModels.UserInfoViewModel
  2. @using Teknik.Utilities
  3. <script>
  4. // We need to define the action URLs for the script
  5. var editAccountType = '@Url.SubRouteUrl("admin", "Admin.Action", new { action = "EditUserAccountType" })';
  6. var editAccountStatus = '@Url.SubRouteUrl("admin", "Admin.Action", new { action = "EditUserAccountStatus" })';
  7. var username = '@Model.Username';
  8. </script>
  9. @Scripts.Render("~/bundles/UserInfo")
  10. <div class="container">
  11. <div class="row">
  12. <div class="col-sm-2 col-sm-offset-1">
  13. Username:
  14. </div>
  15. <div class="col-sm-8">
  16. <a href="@Url.SubRouteUrl("user", "User.ViewProfile", new { username = Model.Username })">@Model.Username</a>
  17. </div>
  18. </div>
  19. <br />
  20. <div class="row">
  21. <div class="col-sm-2 col-sm-offset-1">
  22. Account Type:
  23. </div>
  24. <div class="col-sm-8">
  25. <select class="userAccountType">
  26. @{
  27. foreach (AccountType value in Enum.GetValues(typeof(AccountType)))
  28. {
  29. <option @(value == Model.AccountType ? "selected" : string.Empty)>@value.ToString()</option>
  30. }
  31. }
  32. </select>
  33. </div>
  34. </div>
  35. <br />
  36. <div class="row">
  37. <div class="col-sm-2 col-sm-offset-1">
  38. Account Status:
  39. </div>
  40. <div class="col-sm-8">
  41. <select class="userAccountStatus">
  42. @{
  43. foreach (AccountStatus value in Enum.GetValues(typeof(AccountStatus)))
  44. {
  45. <option @(value == Model.AccountStatus ? "selected" : string.Empty)>@value.ToString()</option>
  46. }
  47. }
  48. </select>
  49. </div>
  50. </div>
  51. </div>