form_ghost_template_file.html 1.3 KB

123456789101112131415161718192021222324
  1. <div id="bx-uploader-file-{storage_object}-{file_id}" class="bx-uploader-ghost flex items-start mt-2">
  2. <div class="bx-uploader-ghost-cnt">
  3. <div class="bx-base-general-icon-wrapper">
  4. <input type="hidden" name="__name__[]" value="{file_id}" />
  5. <img src="{file_icon}" class="bx-base-general-icon bx-base-general-icon-{file_id} rounded" />
  6. </div>
  7. <span class="bx-base-general-uploader-ghost">
  8. <a class="bx-btn bx-btn-small mr-2" href="javascript:void(0);" title="<bx_text:_sys_txt_form_entry_input_picture_delete />" onclick="bx_base_general_delete_ghost('{file_id}', '{file_url}', '{file_icon}', ['__editor_id__'], {js_instance_name});">
  9. <bx_image_auto:times />
  10. </a>
  11. <a class="bx-btn bx-btn-small mr-2" href="javascript:void(0);" title="<bx_text:_sys_txt_form_entry_input_picture_copy />" onclick="bx_copy_to_clipboard('{file_url}');">
  12. <bx_image_auto:copy />
  13. </a>
  14. </span>
  15. </div>
  16. </div>
  17. <script>
  18. $('#bx-base-general-intert-to-post-link-{file_id}').show();
  19. // disable images drag&drop, because resized images address can be reset after some time
  20. $(".bx-base-general-icon-{file_id}").bind('dragstart', function(){
  21. return false;
  22. });
  23. </script>