You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
2.1 KiB

  1. .modallayer#modal-editor-image
  2. .modallayer-content
  3. .columns
  4. .column
  5. h3 Insert Image
  6. .column.is-narrow.editor-modal-load(v-bind:class="{ 'is-active': isLoading }")
  7. span {{ isLoadingText }}
  8. i
  9. .column.is-narrow
  10. .control.is-grouped
  11. p.control
  12. a.button.is-dark.is-outlined(v-on:click="newFolder")
  13. span.icon.is-small: i.fa.fa-folder
  14. span New Folder
  15. .control.has-addons
  16. a.button.is-info.is-outlined(v-on:click="uploadImage")
  17. span.icon.is-small: i.fa.fa-upload
  18. span Upload Image
  19. a.button.is-info.is-outlined(v-on:click="fetchFromUrl")
  20. span.icon.is-small: i.fa.fa-download
  21. span Fetch from URL
  22. .column.is-narrow
  23. .control.is-grouped
  24. p.control
  25. a.button.is-warning.is-outlined(v-on:click="cancel") Cancel
  26. p.control
  27. a.button.is-primary.is-outlined(v-on:click="insertImage") Insert Image
  28. .columns
  29. .column.is-one-quarter(style={'max-width':'350px'})
  30. .box(style={'max-height': '400px', overflow: 'auto', 'overflow-x': 'hidden'})
  31. aside.menu
  32. p.menu-label
  33. | Folders
  34. ul.menu-list
  35. li
  36. a(v-on:click="selectFolder('')", v-bind:class="{ 'is-active': currentFolder === '' }")
  37. span.icon.is-small: i.fa.fa-folder-o
  38. span /
  39. li(v-for="fld in folders")
  40. a(v-on:click="selectFolder(fld)", v-bind:class="{ 'is-active': currentFolder === fld }")
  41. span.icon.is-small: i.fa.fa-folder
  42. span / {{ fld }}
  43. .column
  44. figure.image.is-128x128
  45. img(src='http://placehold.it/128x128')
  46. .modal(v-bind:class="{ 'is-active': newFolderShow }")
  47. .modal-background
  48. .modal-container
  49. .modal-content
  50. .card.is-fullwidth
  51. header.card-header
  52. p.card-header-title New Folder
  53. .card-content
  54. .content
  55. label.label Enter the new folder name:
  56. p.control
  57. input.input(type='text', placeholder='folder name', v-model='newFolderName')
  58. span.help.is-danger.is-hidden This folder name is invalid!
  59. footer.card-footer
  60. a.card-footer-item(v-on:click="newFolderDiscard") Discard
  61. a.card-footer-item(v-on:click="newFolderCreate") Create