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.0KB

12345678910111213141516171819202122232425262728293031
  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 username = '@Model.Username';
  7. </script>
  8. @Scripts.Render("~/bundles/UserInfo")
  9. <div class="container">
  10. <div class="row">
  11. <div class="col-sm-10 col-sm-offset-1">
  12. <a href="@Url.SubRouteUrl("user", "User.ViewProfile", new { username = Model.Username })">@Model.Username</a>
  13. </div>
  14. </div>
  15. <div class="row">
  16. <div class="col-sm-4 col-sm-offset-1">Account Type:
  17. <select class="userAccountType">
  18. @{
  19. foreach (AccountType value in Enum.GetValues(typeof(AccountType)))
  20. {
  21. <option @(value == Model.AccountType ? "selected" : string.Empty)>@value.ToString()</option>
  22. }
  23. }
  24. </select>
  25. </div>
  26. </div>
  27. </div>