form_ghost_template_file.html 1.5 KB

12345678910111213141516171819202122
  1. <div id="bx-uploader-file-{storage_object}-{file_id}" class="bx-uploader-ghost bx-def-margin-sec-top bx-clearfix">
  2. <input type="hidden" name="__name__[]" value="{file_id}" />
  3. <div class="bx-base-general-icon-wrapper bx-def-margin-sec-right">
  4. <img src="{file_icon}" class="bx-def-round-corners bx-base-general-icon bx-base-general-icon-{file_id}" />
  5. </div>
  6. <span class="bx-base-general-uploader-ghost">
  7. <b><bx_text:_sys_txt_form_entry_input_picture_pic_url /></b><br />
  8. <input class="bx-def-font-inputs bx-form-input-text bx-def-margin-sec-bottom" type="text" value="{file_url}" readonly="1" /> <br />
  9. <span id="bx-base-general-intert-to-post-link-{file_id}" style="display:none;">
  10. <a class="bx-btn bx-btn-small bx-def-margin-sec-right" href="javascript:void(0);" onclick="bx_base_general_insert_to_post('{file_id}', '{file_url}', '__editor_id__');"><bx_text:_sys_txt_form_entry_input_picture_insert /></a>
  11. </span>
  12. <a class="bx-btn bx-btn-small bx-def-margin-sec-right" href="javascript:void(0);" onclick="bx_base_general_delete_ghost('{file_id}', '{file_url}', '{file_icon}', ['__editor_id__'], {js_instance_name});"><bx_text:_sys_txt_form_entry_input_picture_delete /></a>
  13. </span>
  14. </div>
  15. <script>
  16. $('#bx-base-general-intert-to-post-link-{file_id}').show();
  17. // disable images drag&drop, because resized images address can be reset after some time
  18. $(".bx-base-general-icon-{file_id}").bind('dragstart', function(){
  19. return false;
  20. });
  21. </script>