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.

110 lines
4.6 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-uploadimage
  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
  24. .column.is-one-quarter.modal-sidebar.is-green(style={'max-width':'350px'})
  25. .box.editor-modal-folderlist
  26. aside.menu
  27. p.menu-label
  28. | Folders
  29. ul.menu-list
  30. li(v-for="fld in folders")
  31. a(v-on:click="selectFolder(fld)", v-bind:class="{ 'is-active': currentFolder === fld }")
  32. span.icon.is-small: i.fa.fa-folder
  33. span /{{ fld }}
  34. .box.editor-modal-imagealign
  35. .control.is-grouped
  36. .control
  37. span Alignment
  38. .control.has-addons
  39. a.button.is-primary(title="Left", v-on:click="selectAlignment('left')", v-bind:class="{ 'is-outlined': currentAlign !== 'left' }")
  40. span.icon.is-small: i.fa.fa-align-left
  41. a.button.is-primary(title="Center", v-on:click="selectAlignment('center')", v-bind:class="{ 'is-outlined': currentAlign !== 'center' }")
  42. span.icon.is-small: i.fa.fa-align-center
  43. a.button.is-primary(title="Right", v-on:click="selectAlignment('right')", v-bind:class="{ 'is-outlined': currentAlign !== 'right' }")
  44. span.icon.is-small: i.fa.fa-align-right
  45. .control
  46. a.button.is-primary(title="Page Logo", v-on:click="selectAlignment('logo')", v-bind:class="{ 'is-outlined': currentAlign !== 'logo' }")
  47. span.icon.is-small: i.fa.fa-external-link-square
  48. .column.editor-modal-imagechoices
  49. 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")
  50. img(v-bind:src="'/uploads/t/' + img._id + '.png'")
  51. span: strong {{ img.basename }}
  52. span {{ img.filesize | filesize }}
  53. em(v-show="images.length < 1") This folder is empty.
  54. footer
  55. a.button.is-grey.is-outlined(v-on:click="cancel") Discard
  56. a.button.is-green(v-on:click="insertImage") Insert Image
  57. .modal.is-superimposed(v-bind:class="{ 'is-active': newFolderShow }")
  58. .modal-background
  59. .modal-container
  60. .modal-content
  61. header.is-light-blue New Folder
  62. section
  63. label.label Enter the new folder name:
  64. p.control.is-fullwidth
  65. input.input#txt-editor-newfoldername(type='text', placeholder='folder name', v-model='newFolderName', v-on:keyup.enter="newFolderCreate", v-on:keyup.esc="newFolderDiscard")
  66. span.help.is-danger(v-show="newFolderError") This folder name is invalid!
  67. footer
  68. a.button.is-grey.is-outlined(v-on:click="newFolderDiscard") Discard
  69. a.button.is-light-blue(v-on:click="newFolderCreate") Create
  70. .modal.is-superimposed(v-bind:class="{ 'is-active': fetchFromUrlShow }")
  71. .modal-background
  72. .modal-container
  73. .modal-content
  74. header.is-light-blue Fetch Image from URL
  75. section
  76. label.label Enter full URL path to the image:
  77. p.control.is-fullwidth
  78. input.input#txt-editor-fetchimgurl(type='text', placeholder='http://www.example.com/some-image.png', v-model='fetchFromUrlURL')
  79. span.help.is-danger.is-hidden This URL path is invalid!
  80. footer
  81. a.button.is-grey.is-outlined(v-on:click="fetchFromUrlDiscard") Discard
  82. a.button.is-light-blue(v-on:click="fetchFromUrlGo") Fetch
  83. .modal.is-superimposed(v-bind:class="{ 'is-active': renameImageShow }")
  84. .modal-background
  85. .modal-container
  86. .modal-content
  87. header.is-indigo Rename Image
  88. section
  89. label.label Enter the new filename (without the extension) of the image:
  90. p.control.is-fullwidth
  91. input.input#txt-editor-renameimage(type='text', placeholder='filename', v-model='renameImageFilename')
  92. span.help.is-danger.is-hidden This filename is invalid!
  93. footer
  94. a.button.is-grey.is-outlined(v-on:click="renameImageDiscard") Discard
  95. a.button.is-light-blue(v-on:click="renameImageGo") Rename
  96. .modal.is-superimposed(v-bind:class="{ 'is-active': deleteImageShow }")
  97. .modal-background
  98. .modal-container
  99. .modal-content
  100. header.is-red Delete image?
  101. section
  102. span Are you sure you want to delete #[strong {{deleteImageFilename}}]?
  103. footer
  104. a.button.is-grey.is-outlined(v-on:click="deleteImageWarn(false)") Discard
  105. a.button.is-red(v-on:click="deleteImageGo") Delete