form_ghost_template.html 2.1 KB

123456789101112131415161718192021222324252627282930313233
  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. <bx_if:set_thumb>
  14. <span class="bx-base-general-use-as-thumb">
  15. <input type="checkbox" name="__name_thumb__[]" value="{file_id}" onclick="bx_base_general_select_thumb(this)" id="__name_thumb__-{file_id}" />
  16. <label for="__name_thumb__-{file_id}">__txt_pict_use_as_thumb__</label>
  17. </span>
  18. </bx_if:set_thumb>
  19. </span>
  20. </div>
  21. <script>
  22. if ('object' == typeof(tinymce))
  23. $('#bx-base-general-intert-to-post-link-{file_id}').show();
  24. $('#bx-uploader-file-{storage_object}-{file_id} .bx-base-general-use-as-thumb input[value="__thumb_id__"]').attr('checked', true);
  25. // disable images drag&drop, because resized images address can be reset after some time
  26. $(".bx-base-general-icon-{file_id}").bind('dragstart', function(){
  27. return false;
  28. });
  29. </script>