|
|
@@ -1,52 +1,49 @@
|
|
|
-<div id="bx-uploader-file-{storage_object}-{file_id}" class="bx-uploader-ghost bx-def-margin-sec-top bx-clearfix">
|
|
|
- <input type="hidden" name="__name__" value="{file_id}" />
|
|
|
- <div class="bx-base-general-icon-wrapper bx-def-margin-sec-right">
|
|
|
- <img src="{file_icon}" class="bx-def-round-corners bx-base-general-icon bx-base-general-icon-{file_id}" />
|
|
|
+<div id="bx-uploader-file-{storage_object}-{file_id}" class="bx-uploader-ghost bx-market-uploader-ghost-file bx-def-margin-sec-top bx-clearfix">
|
|
|
+ <div class="bx-uploader-ghost-header bx-def-padding-thd-topbottom bx-def-padding-sec-leftright">
|
|
|
+ <a href="javascript:void(0)" onclick="javascript:bx_market_ghost_toggle(this);"><i class="sys-icon chevron-right"></i></a> {file_name}
|
|
|
+ </div>
|
|
|
+ <div class="bx-uploader-ghost-body bx-def-padding-thd-topbottom">
|
|
|
+ <input type="hidden" name="__name__" value="{file_id}" />
|
|
|
+ <div class="bx-base-general-icon-wrapper bx-def-margin-sec-right">
|
|
|
+ <img src="{file_icon}" class="bx-def-round-corners bx-base-general-icon bx-base-general-icon-{file_id}" />
|
|
|
+ </div>
|
|
|
+ <span class="bx-base-general-uploader-ghost">
|
|
|
+ <b><bx_text:_bx_market_form_entry_input_files_name /></b><br />
|
|
|
+ <input class="bx-def-font-inputs bx-form-input-text bx-def-margin-sec-bottom" type="text" value="{file_name}" readonly="1" /><br />
|
|
|
+
|
|
|
+ <b><bx_text:_bx_market_form_entry_input_files_type /></b><br />
|
|
|
+ <select class="bx-def-font-inputs bx-form-input-select bx-def-margin-sec-bottom" name="type-{file_id}" onchange="javascript:oBxMarketEntry.changeFileType(this);">
|
|
|
+ <option value="version"{file_type_version_selected}><bx_text:_bx_market_form_entry_input_files_type_version /></option>
|
|
|
+ <option value="update"{file_type_update_selected}><bx_text:_bx_market_form_entry_input_files_type_update /></option>
|
|
|
+ </select><br />
|
|
|
+
|
|
|
+ <span class="bx-uploader-ghost-type-rel bx-uploader-ghost-type-version"{file_type_version_elements}>
|
|
|
+ <b><bx_text:_bx_market_form_entry_input_files_version /></b><br />
|
|
|
+ <input class="bx-def-font-inputs bx-form-input-text bx-def-margin-sec-bottom" type="text" name="version-{file_id}" value="{file_version_attr}" /><br />
|
|
|
+ </span>
|
|
|
+
|
|
|
+ <span class="bx-uploader-ghost-type-rel bx-uploader-ghost-type-update"{file_type_update_elements}>
|
|
|
+ <b><bx_text:_bx_market_form_entry_input_files_version_from /></b><br />
|
|
|
+ <select class="bx-def-font-inputs bx-form-input-select bx-def-margin-sec-bottom" name="version-from-{file_id}">{file_version_from_options}</select><br />
|
|
|
+ <b><bx_text:_bx_market_form_entry_input_files_version_to /></b><br />
|
|
|
+ <select class="bx-def-font-inputs bx-form-input-select bx-def-margin-sec-bottom" name="version-to-{file_id}">{file_version_to_options}</select><br />
|
|
|
+ </span>
|
|
|
+
|
|
|
+ <span class="bx-base-general-intert-to-post-link" id="bx-base-general-intert-to-post-link-{file_id}" style="display:none;">
|
|
|
+ <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>
|
|
|
+ </span>
|
|
|
+ <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>
|
|
|
+
|
|
|
+ <bx_if:set_thumb>
|
|
|
+ <span class="bx-base-general-use-as-thumb bx-uploader-ghost-type-rel bx-uploader-ghost-type-version"{file_type_version_elements}>
|
|
|
+ <input type="checkbox" name="__name_thumb__[]" value="{file_id}" onclick="bx_base_general_select_thumb(this)" id="__name_thumb__-{file_id}" />
|
|
|
+ <label for="__name_thumb__-{file_id}"><bx_text:_bx_market_form_entry_input_files_use_as_main /></label>
|
|
|
+ </span>
|
|
|
+ </bx_if:set_thumb>
|
|
|
+
|
|
|
+ </span>
|
|
|
</div>
|
|
|
- <span class="bx-base-general-uploader-ghost">
|
|
|
- <b><bx_text:_bx_market_form_entry_input_files_name /></b><br />
|
|
|
- <input class="bx-def-font-inputs bx-form-input-text bx-def-margin-sec-bottom" type="text" value="{file_name}" readonly="1" /><br />
|
|
|
-
|
|
|
- <b><bx_text:_bx_market_form_entry_input_files_type /></b><br />
|
|
|
- <select class="bx-def-font-inputs bx-form-input-select bx-def-margin-sec-bottom" name="type-{file_id}" onchange="javascript:oBxMarketEntry.changeFileType(this);">
|
|
|
- <option value="version"{file_type_version_selected}><bx_text:_bx_market_form_entry_input_files_type_version /></option>
|
|
|
- <option value="update"{file_type_update_selected}><bx_text:_bx_market_form_entry_input_files_type_update /></option>
|
|
|
- </select><br />
|
|
|
-
|
|
|
- <span class="bx-uploader-ghost-type-rel bx-uploader-ghost-type-version"{file_type_version_elements}>
|
|
|
- <b><bx_text:_bx_market_form_entry_input_files_version /></b><br />
|
|
|
- <input class="bx-def-font-inputs bx-form-input-text bx-def-margin-sec-bottom" type="text" name="version-{file_id}" value="{file_version_attr}" /><br />
|
|
|
- </span>
|
|
|
-
|
|
|
- <span class="bx-uploader-ghost-type-rel bx-uploader-ghost-type-update"{file_type_update_elements}>
|
|
|
- <b><bx_text:_bx_market_form_entry_input_files_version_from /></b><br />
|
|
|
- <select class="bx-def-font-inputs bx-form-input-select bx-def-margin-sec-bottom" name="version-from-{file_id}">{file_version_from_options}</select><br />
|
|
|
- <b><bx_text:_bx_market_form_entry_input_files_version_to /></b><br />
|
|
|
- <select class="bx-def-font-inputs bx-form-input-select bx-def-margin-sec-bottom" name="version-to-{file_id}">{file_version_to_options}</select><br />
|
|
|
- </span>
|
|
|
-
|
|
|
- <span id="bx-base-general-intert-to-post-link-{file_id}" style="display:none;">
|
|
|
- <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>
|
|
|
- </span>
|
|
|
- <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>
|
|
|
-
|
|
|
- <bx_if:set_thumb>
|
|
|
- <span class="bx-base-general-use-as-thumb bx-uploader-ghost-type-rel bx-uploader-ghost-type-version"{file_type_version_elements}>
|
|
|
- <input type="checkbox" name="__name_thumb__[]" value="{file_id}" onclick="bx_base_general_select_thumb(this)" id="__name_thumb__-{file_id}" />
|
|
|
- <label for="__name_thumb__-{file_id}"><bx_text:_bx_market_form_entry_input_files_use_as_main /></label>
|
|
|
- </span>
|
|
|
- </bx_if:set_thumb>
|
|
|
-
|
|
|
- </span>
|
|
|
</div>
|
|
|
-<script>
|
|
|
- if ('object' == typeof(tinymce))
|
|
|
- $('#bx-base-general-intert-to-post-link-{file_id}').show();
|
|
|
-
|
|
|
- $('#bx-uploader-file-{storage_object}-{file_id} .bx-base-general-use-as-thumb input[value="__thumb_id__"]').attr('checked', true);
|
|
|
-
|
|
|
- // disable images drag&drop, because resized images address can be reset after some time
|
|
|
- $(".bx-base-general-icon-{file_id}").bind('dragstart', function(){
|
|
|
- return false;
|
|
|
- });
|
|
|
+<script type="text/javascript" language="javascript">
|
|
|
+ bx_market_ghost_init($('#bx-uploader-file-{storage_object}-{file_id}'), {file_id}, __thumb_id__);
|
|
|
</script>
|