{extends file='plugins/xgx_bare/templates/admin/partials/customization.html'}

{block name=custom_less_file}
<div class="option">
    <div class="form-group">
        <label for="custom-less-file">{txt key=TEXT_XGX_BARE_CUSTOM_LESS_FILE}</label>
        <p class="help-block">{txt key=TEXT_XGX_BARE_CUSTOM_LESS_FILE_BODY}</p>
        <div class="file-upload">
            <input id="custom-less-dest" name="files[custom_less_file][dest]" type="hidden" value="less">
            <input id="custom-less-dir" name="files[custom_less_file][dir]" type="hidden" value="/templates/xgx_artemis/less/custom/">
            {if !$smarty.const.CUSTOM_LESS_FILE}
            <input id="custom-less-file" name="custom_less_file" type="file">
            {else}
            <div class="uploaded">
                <div class="input-group">
                    <input class="form-control" name="special_properties[less][unlink_file][custom_less_file]" type="text" value="{$smarty.const.CUSTOM_LESS_FILE}" disabled>
                    <span class="input-group-btn">
                        <button class="btn btn-danger js-remove-image" type="button"> {txt key=BUTTON_DELETE}</button>
                    </span>
                </div>
            </div>
            {/if}
        </div>
    </div>
</div>
{/block}