Wallet.razor 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. @page "/wallet"
  2. @using HyperCube.Models;
  3. @using Microsoft.AspNetCore.Identity;
  4. @inject AuthenticationStateProvider AuthenticationStateProvider
  5. @inject UserManager<IdentityUser> UserManager
  6. @attribute [Authorize]
  7. <div class="tabs__content">
  8. <div class="tabs__controls">
  9. @if (account.Roles.Contains(Role.Admin) || account.Roles.Contains(Role.Miner))
  10. {
  11. <a href="DocEdit" class="tabs__btn">Загрузка материалов</a>
  12. }
  13. @if (account.Roles.Contains(Role.Admin) || account.Roles.Contains(Role.Expert))
  14. {
  15. <a href="Verifying" class="tabs__btn">Верификация</a>
  16. }
  17. <a class="tabs__btn">Библиотеки</a>
  18. @if (account.Roles.Contains(Role.Admin) || account.Roles.Contains(Role.Customer))
  19. {
  20. <a class="tabs__btn">Заказы</a>
  21. }
  22. </div>
  23. <div class="upload">
  24. <h2 class="upload__title">Кошелек</h2>
  25. </div>
  26. <table class="table-bordered" cellspacing="5" cellpadding="5">
  27. <tbody>
  28. <tr>
  29. <td>UUID:</td>
  30. <td>@account.UUID</td>
  31. </tr>
  32. <tr>
  33. <td>Name:</td>
  34. <td>@account.Name</td>
  35. </tr>
  36. <tr>
  37. <td>Email:</td>
  38. <td>@account.Email</td>
  39. </tr>
  40. <tr>
  41. <td>ETH Address:</td>
  42. <td>@address)</td>
  43. </tr>
  44. <tr>
  45. <td>Balance:</td>
  46. <td>@myBalance WEI</td>
  47. </tr>
  48. <tr>
  49. <td>Администратор:</td>
  50. <td><input @bind="admin" type="checkbox" name="admin" /></td>
  51. </tr>
  52. <tr>
  53. <td>Инициатор:</td>
  54. <td><input @bind="initiator" type="checkbox" name="init" /></td>
  55. </tr>
  56. <tr>
  57. <td>Заказчик:</td>
  58. <td><input @bind="verifier" type="checkbox" name="request" /></td>
  59. </tr>
  60. <tr>
  61. <td>Верификатор:</td>
  62. <td><input @bind="requester" type="checkbox" name="vaerify" /></td>
  63. </tr>
  64. @*<p>
  65. @foreach (var role in account.Roles)
  66. @role
  67. <br />
  68. @admin
  69. </p>*@
  70. </tbody>
  71. </table>
  72. </div>