boards.pug 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. h1.title Boards
  2. .columns
  3. .column
  4. .card
  5. .card-header
  6. p.card-header-title Create or modify board
  7. .card-content
  8. .field
  9. label.label ID
  10. .control
  11. input.input(type="number" v-model="board.new_id" min="0", max="65535", step="1")
  12. .field
  13. label.label Key size
  14. .control
  15. .select
  16. select(v-model="board.new_keysize")
  17. option(:value="128") 128 bit
  18. option(:value="192") 192 bit
  19. option(:value="256") 256 bit
  20. .field
  21. label.label Key (in base16)
  22. .control
  23. input.input(type="text" v-model="admin.new_key")
  24. p.help Leave empty for random
  25. .field
  26. .control
  27. button.button.is-primary(@click="board_create") Submit
  28. .column
  29. table.table.is-striped.is-hoverable.is-fullwidth
  30. thead
  31. tr
  32. th ID
  33. th Key
  34. th Last Seen
  35. th Actions
  36. tbody
  37. tr(v-for="board in config.boards")
  38. td {{ board.ID }}
  39. td {{ board.KEY16 }}
  40. td {{ board.LastSeen | timeSince }}
  41. td
  42. a.button.is-danger(@click="board_delete(board.ID)") Delete