list.tmpl 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {{template "base/head" .}}
  2. <div class="admin authentication">
  3. <div class="ui container">
  4. <div class="ui grid">
  5. {{template "admin/navbar" .}}
  6. <div class="twelve wide column content">
  7. {{template "base/alert" .}}
  8. <h4 class="ui top attached header">
  9. {{.i18n.Tr "admin.auths.auth_sources"}} ({{.i18n.Tr "admin.total" .Total}})
  10. </h4>
  11. <div class="ui unstackable attached table segment">
  12. <table class="ui unstackable very basic striped table">
  13. <thead>
  14. <tr>
  15. <th>ID</th>
  16. <th>{{.i18n.Tr "admin.auths.name"}}</th>
  17. <th>{{.i18n.Tr "admin.auths.type"}}</th>
  18. <th>{{.i18n.Tr "admin.auths.enabled"}}</th>
  19. <th>{{.i18n.Tr "admin.auths.default"}}</th>
  20. <th>{{.i18n.Tr "admin.auths.updated"}}</th>
  21. <th>{{.i18n.Tr "admin.users.created"}}</th>
  22. <th>{{.i18n.Tr "admin.users.edit"}}</th>
  23. </tr>
  24. </thead>
  25. <tbody>
  26. {{range .Sources}}
  27. <tr>
  28. <td>{{.ID}}</td>
  29. <td><a href="{{AppSubURL}}/admin/auths/{{.ID}}">{{.Name}}</a></td>
  30. <td>{{.TypeName}}</td>
  31. <td><i class="fa fa{{if .IsActived}}-check{{end}}-square-o"></i></td>
  32. <td><i class="fa fa{{if .IsDefault}}-check{{end}}-square-o"></i></td>
  33. <td><span class="poping up" data-content="{{DateFmtLong .Updated}}" data-variation="tiny">{{DateFmtShort .Updated}}</span></td>
  34. <td>
  35. {{if .Created.IsZero}}
  36. N/A
  37. {{else}}
  38. <span class="poping up" data-content="{{DateFmtLong .Created}}" data-variation="tiny">{{DateFmtShort .Created}}</span>
  39. {{end}}
  40. </td>
  41. <td><a href="{{AppSubURL}}/admin/auths/{{.ID}}"><i class="fa fa-pencil-square-o"></i></a></td>
  42. </tr>
  43. {{end}}
  44. </tbody>
  45. <tfoot class="full-width">
  46. <tr>
  47. <th></th>
  48. <th colspan="7">
  49. <div class="ui right">
  50. <a class="ui blue small button" href="{{AppSubURL}}/admin/auths/new">{{.i18n.Tr "admin.auths.new"}}</a>
  51. </div>
  52. </th>
  53. </tr>
  54. </tfoot>
  55. </table>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. {{template "base/footer" .}}