list.tmpl 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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.updated"}}</th>
  20. <th>{{.i18n.Tr "admin.users.created"}}</th>
  21. <th>{{.i18n.Tr "admin.users.edit"}}</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. {{range .Sources}}
  26. <tr>
  27. <td>{{.ID}}</td>
  28. <td><a href="{{AppSubURL}}/admin/auths/{{.ID}}">{{.Name}}</a></td>
  29. <td>{{.TypeName}}</td>
  30. <td><i class="fa fa{{if .IsActived}}-check{{end}}-square-o"></i></td>
  31. <td><span class="poping up" data-content="{{DateFmtLong .Updated}}" data-variation="tiny">{{DateFmtShort .Updated}}</span></td>
  32. <td>
  33. {{if .Created.IsZero}}
  34. N/A
  35. {{else}}
  36. <span class="poping up" data-content="{{DateFmtLong .Created}}" data-variation="tiny">{{DateFmtShort .Created}}</span>
  37. {{end}}
  38. </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. <tfoot class="full-width">
  44. <tr>
  45. <th></th>
  46. <th colspan="6">
  47. <div class="ui right">
  48. <a class="ui blue small button" href="{{AppSubURL}}/admin/auths/new">{{.i18n.Tr "admin.auths.new"}}</a>
  49. </div>
  50. </th>
  51. </tr>
  52. </tfoot>
  53. </table>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. {{template "base/footer" .}}