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.

58 lines
3.2 KiB

  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. <div id="admin-wrapper">
  4. <div id="setting-wrapper" class="main-wrapper">
  5. <div id="admin-setting" class="container clear">
  6. {{template "admin/nav" .}}
  7. <div class="grid-4-5 left">
  8. <div class="setting-content">
  9. {{template "ng/base/alert" .}}
  10. <div id="setting-content">
  11. <div class="panel panel-radius">
  12. <div class="panel-header">
  13. <strong>{{.i18n.Tr "admin.auths.auth_manage_panel"}}</strong>
  14. </div>
  15. <div class="panel-body admin-panel">
  16. <a class="btn-blue btn-medium btn-link btn-radius" href="{{AppSubUrl}}/admin/auths/new">{{.i18n.Tr "admin.auths.new"}}</a>
  17. <div class="admin-table">
  18. <table class="table table-striped">
  19. <thead>
  20. <tr>
  21. <th>Id</th>
  22. <th>{{.i18n.Tr "admin.auths.name"}}</th>
  23. <th>{{.i18n.Tr "admin.auths.type"}}</th>
  24. <th>{{.i18n.Tr "admin.auths.enabled"}}</th>
  25. <th>{{.i18n.Tr "admin.auths.updated"}}</th>
  26. <th>{{.i18n.Tr "admin.users.created"}}</th>
  27. <th>{{.i18n.Tr "admin.users.edit"}}</th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. {{range .Sources}}
  32. <tr>
  33. <td>{{.Id}}</td>
  34. <td><a href="{{AppSubUrl}}/admin/auths/{{.Id}}">{{.Name}}</a></td>
  35. <td>{{.TypeString}}</td>
  36. <td><i class="fa fa{{if .IsActived}}-check{{end}}-square-o"></i></td>
  37. <td><span title="{{DateFormat .Updated "r"}}">{{DateFormat .Updated "M d, Y"}}</span></td>
  38. <td><span title="{{DateFormat .Created "r"}}">{{DateFormat .Created "M d, Y"}}</span></td>
  39. <td><a href="{{AppSubUrl}}/admin/auths/{{.Id}}"><i class="fa fa-pencil-square-o"></i></a></td>
  40. </tr>
  41. {{end}}
  42. </tbody>
  43. </table>
  44. {{if or .LastPageNum .NextPageNum}}
  45. <ul class="pagination">
  46. {{if .LastPageNum}}<li><a class="btn btn-medium btn-gray btn-radius" href="{{AppSubUrl}}/admin/auths?p={{.LastPageNum}}">&laquo; Prev.</a></li>{{end}}
  47. {{if .NextPageNum}}<li><a class="btn btn-medium btn-gray btn-radius" href="{{AppSubUrl}}/admin/auths?p={{.NextPageNum}}">&raquo; Next</a></li>{{end}}
  48. </ul>
  49. {{end}}
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. {{template "ng/base/footer" .}}