選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

auths.tmpl 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. <div id="body" class="container" data-page="admin">
  4. {{template "admin/nav" .}}
  5. <div id="admin-container" class="col-md-10">
  6. <div class="panel panel-default">
  7. <div class="panel-heading">
  8. Authentication Management
  9. </div>
  10. <div class="panel-body">
  11. <a href="/admin/auths/new" class="btn btn-primary">New Auth Source</a>
  12. <table class="table table-striped">
  13. <thead>
  14. <tr>
  15. <th>Id</th>
  16. <th>Name</th>
  17. <th>Type</th>
  18. <th>Actived</th>
  19. <th>Updated</th>
  20. <th>Created</th>
  21. <th>Edit</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. {{range .Sources}}
  26. <tr>
  27. <td>{{.Id}}</td>
  28. <td><a href="/admin/auths/{{.Id}}">{{.Name}}</a></td>
  29. <td>{{.TypeString}}</td>
  30. <td><i class="fa fa{{if .IsActived}}-check{{end}}-square-o"></i></td>
  31. <td>{{DateFormat .Updated "M d, Y"}}</td>
  32. <td>{{DateFormat .Created "M d, Y"}}</td>
  33. <td><a href="/admin/auths/{{.Id}}"><i class="fa fa-pencil-square-o"></i></a></td>
  34. </tr>
  35. {{end}}
  36. </tbody>
  37. </table>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. {{template "base/footer" .}}