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.

104 lines
4.4 KiB

  1. .modal#modal-editor-image
  2. .modal-background
  3. .modal-container
  4. .modal-content.is-expanded
  5. header.is-green
  6. span Insert Image
  7. p.modal-notify(v-bind:class='{ "is-active": isLoading }')
  8. span {{ isLoadingText }}
  9. i
  10. .modal-toolbar.is-green
  11. a.button(v-on:click='newFolder')
  12. i.fa.fa-folder
  13. span New Folder
  14. a.button#btn-editor-image-upload
  15. i.fa.fa-upload
  16. span Upload Image
  17. label
  18. input(type='file', multiple)
  19. a.button(v-on:click='fetchFromUrl')
  20. i.fa.fa-download
  21. span Fetch from URL
  22. section.is-gapless
  23. .columns.is-stretched
  24. .column.is-one-quarter.modal-sidebar.is-green(style={'max-width':'350px'})
  25. .model-sidebar-header Folders
  26. ul.model-sidebar-list
  27. li(v-for='fld in folders')
  28. a(v-on:click='selectFolder(fld)', v-bind:class='{ "is-active": currentFolder === fld }')
  29. i.icon-folder2
  30. span / {{ fld }}
  31. .model-sidebar-header Alignment
  32. .model-sidebar-content
  33. p.control.is-fullwidth
  34. select(v-model='currentAlign')
  35. option(value='left') Left (default)
  36. option(value='center') Centered
  37. option(value='right') Right
  38. option(value='logo') Page Logo
  39. .column.editor-modal-image-choices
  40. figure(v-for='img in images', v-bind:class='{ "is-active": currentImage === img._id }', v-on:click='selectImage(img._id)', v-bind:data-uid='img._id')
  41. img(v-bind:src='"/uploads/t/" + img._id + ".png"')
  42. span: strong {{ img.basename }}
  43. span {{ img.filesize | filesize }}
  44. em(v-show='images.length < 1')
  45. i.icon-marquee-minus
  46. | This folder is empty.
  47. footer
  48. a.button.is-grey.is-outlined(v-on:click='cancel') Discard
  49. a.button.is-green(v-on:click='insertImage') Insert Image
  50. .modal.is-superimposed(v-bind:class='{ "is-active": newFolderShow }')
  51. .modal-background
  52. .modal-container
  53. .modal-content
  54. header.is-light-blue New Folder
  55. section
  56. label.label Enter the new folder name:
  57. p.control.is-fullwidth
  58. input.input#txt-editor-image-newfoldername(type='text', placeholder='folder name', v-model='newFolderName', v-on:keyup.enter='newFolderCreate', v-on:keyup.esc='newFolderDiscard')
  59. span.help.is-danger(v-show='newFolderError') This folder name is invalid!
  60. footer
  61. a.button.is-grey.is-outlined(v-on:click='newFolderDiscard') Discard
  62. a.button.is-light-blue(v-on:click='newFolderCreate') Create
  63. .modal.is-superimposed(v-bind:class='{ "is-active": fetchFromUrlShow }')
  64. .modal-background
  65. .modal-container
  66. .modal-content
  67. header.is-light-blue Fetch Image from URL
  68. section
  69. label.label Enter full URL path to the image:
  70. p.control.is-fullwidth
  71. input.input#txt-editor-image-fetchurl(type='text', placeholder='http://www.example.com/some-image.png', v-model='fetchFromUrlURL')
  72. span.help.is-danger.is-hidden This URL path is invalid!
  73. footer
  74. a.button.is-grey.is-outlined(v-on:click='fetchFromUrlDiscard') Discard
  75. a.button.is-light-blue(v-on:click='fetchFromUrlGo') Fetch
  76. .modal.is-superimposed(v-bind:class='{ "is-active": renameImageShow }')
  77. .modal-background
  78. .modal-container
  79. .modal-content
  80. header.is-indigo Rename Image
  81. section
  82. label.label Enter the new filename (without the extension) of the image:
  83. p.control.is-fullwidth
  84. input.input#txt-editor-image-rename(type='text', placeholder='filename', v-model='renameImageFilename')
  85. span.help.is-danger.is-hidden This filename is invalid!
  86. footer
  87. a.button.is-grey.is-outlined(v-on:click='renameImageDiscard') Discard
  88. a.button.is-light-blue(v-on:click='renameImageGo') Rename
  89. .modal.is-superimposed(v-bind:class='{ "is-active": deleteImageShow }')
  90. .modal-background
  91. .modal-container
  92. .modal-content
  93. header.is-red Delete image?
  94. section
  95. span Are you sure you want to delete #[strong {{deleteImageFilename}}]?
  96. footer
  97. a.button.is-grey.is-outlined(v-on:click='deleteImageWarn(false)') Discard
  98. a.button.is-red(v-on:click='deleteImageGo') Delete