list.tmpl 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. Authentication Sources (Total: {{.Total}}) 🔑
  10. <div class="ui right">
  11. <a class="ui black tiny button" href="{{AppSubURL}}/admin/auths/new">Add New Source</a>
  12. </div>
  13. </h4>
  14. <div class="ui unstackable attached table segment">
  15. <table class="ui unstackable very basic striped table">
  16. <thead>
  17. <tr>
  18. <th>ID</th>
  19. <th>Name</th>
  20. <th>Type</th>
  21. <th>Enabled</th>
  22. <th>Default</th>
  23. <th>Updated</th>
  24. <th>Created</th>
  25. <th>Edit</th>
  26. </tr>
  27. </thead>
  28. <tbody>
  29. {{range .Sources}}
  30. <tr>
  31. <td>{{.ID}}</td>
  32. <td><a href="{{AppSubURL}}/admin/auths/{{.ID}}">{{.Name}}</a></td>
  33. <td>{{.TypeName}}</td>
  34. <td><i class="fa fa{{if .IsActived}}-check{{end}}-square-o"></i></td>
  35. <td><i class="fa fa{{if .IsDefault}}-check{{end}}-square-o"></i></td>
  36. <td><span class="poping up" data-content="{{DateFmtLong .Updated}}" data-variation="tiny">{{DateFmtShort .Updated}}</span></td>
  37. <td>
  38. {{if .Created.IsZero}}
  39. N/A
  40. {{else}}
  41. <span class="poping up" data-content="{{DateFmtLong .Created}}" data-variation="tiny">{{DateFmtShort .Created}}</span>
  42. {{end}}
  43. </td>
  44. <td><a href="{{AppSubURL}}/admin/auths/{{.ID}}"><i class="fa fa-pencil-square-o"></i></a></td>
  45. </tr>
  46. {{end}}
  47. </tbody>
  48. </table>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. {{template "base/footer" .}}