本站源代码
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

81 line
2.7KB

  1. {{template "base/head" .}}
  2. <div class="admin notice">
  3. {{template "admin/navbar" .}}
  4. <div class="ui container">
  5. {{template "base/alert" .}}
  6. <h4 class="ui top attached header">
  7. {{.i18n.Tr "admin.notices.system_notice_list"}} ({{.i18n.Tr "admin.total" .Total}})
  8. </h4>
  9. <div class="ui attached table segment">
  10. <table class="ui very basic select selectable table">
  11. <thead>
  12. <tr>
  13. <th></th>
  14. <th>ID</th>
  15. <th>{{.i18n.Tr "admin.notices.type"}}</th>
  16. <th>{{.i18n.Tr "admin.notices.desc"}}</th>
  17. <th width="100px">{{.i18n.Tr "admin.users.created"}}</th>
  18. <th>{{.i18n.Tr "admin.notices.op"}}</th>
  19. </tr>
  20. </thead>
  21. <tbody>
  22. {{range .Notices}}
  23. <tr>
  24. <td class="collapsing">
  25. <div class="ui fitted checkbox" data-id="{{.ID}}">
  26. <input type="checkbox"> <label></label>
  27. </div>
  28. </td>
  29. <td>{{.ID}}</td>
  30. <td>{{$.i18n.Tr .TrStr}}</td>
  31. <td>{{SubStr .Description 0 120}}...</td>
  32. <td><span class="poping up" data-content="{{.CreatedUnix.AsTime}}" data-variation="inverted tiny">{{.CreatedUnix.FormatShort}}</span></td>
  33. <td><a href="#"><i class="browser icon view-detail" data-content="{{.Description}}"></i></a></td>
  34. </tr>
  35. {{end}}
  36. </tbody>
  37. {{ if .Notices }}
  38. <tfoot class="full-width">
  39. <tr>
  40. <th></th>
  41. <th colspan="5">
  42. <div class="ui right">
  43. <a class="ui red small button" href="{{AppSubUrl}}/admin/notices/empty">{{.i18n.Tr "admin.notices.delete_all"}}</a>
  44. </div>
  45. <div class="ui floating upward dropdown small button">
  46. <span class="text">{{.i18n.Tr "admin.notices.actions"}}</span>
  47. <div class="menu">
  48. <div class="item select action" data-action="select-all">
  49. {{.i18n.Tr "admin.notices.select_all"}}
  50. </div>
  51. <div class="item select action" data-action="deselect-all">
  52. {{.i18n.Tr "admin.notices.deselect_all"}}
  53. </div>
  54. <div class="item select action" data-action="inverse">
  55. {{.i18n.Tr "admin.notices.inverse_selection"}}
  56. </div>
  57. </div>
  58. </div>
  59. <div class="ui small teal button" id="delete-selection" data-link="{{.Link}}/delete" data-redirect="{{.Link}}?page={{.Page.Paginater.Current}}">
  60. {{.i18n.Tr "admin.notices.delete_selected"}}
  61. </div>
  62. </th>
  63. </tr>
  64. </tfoot>
  65. {{ end }}
  66. </table>
  67. </div>
  68. {{ template "base/paginate" . }}
  69. </div>
  70. </div>
  71. <div class="ui modal" id="detail-modal">
  72. <i class="close icon"></i>
  73. <div class="header">{{$.i18n.Tr "admin.notices.view_detail_header"}}</div>
  74. <div class="content">
  75. <p></p>
  76. </div>
  77. </div>
  78. {{template "base/footer" .}}
上海开阖软件有限公司 沪ICP备12045867号-1