<h1><f:translate key="LLL:EXT:lang/locallang_core.xlf:file_replace.php.pagetitle" /></h1>
<div>
    <form action="{moduleUrlTceFile}" role="form" method="post" name="editform" enctype="multipart/form-data">
    <div class="form-group">
        <input type="checkbox" value="1" id="keepFilename" name="file[replace][1][keepFilename]">
        <label for="keepFilename"><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:file_replace.php.keepfiletitle" /></label>
    </div>

    <div class="form-group">
        <label for="file_replace"><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:file_replace.php.selectfile" /></label>
        <div class="input-group col-xs-6">
            <input type="text" name="fakefile" id="fakefile" class="form-control input-xlarge" readonly>
            <a class="input-group-addon btn btn-primary" onclick="$('#file_replace').click();">
                <f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:file_replace.php.browse" />
            </a>
        </div>
        <input class="form-control" type="file" id="file_replace" name="replace_1" style="visibility: hidden;" />
    </div>

    <script>
        $('#file_replace').change(function() {
            $('#fakefile').val($(this).val());
        });
    </script>

    <input type="hidden" name="overwriteExistingFiles" value="replace" />
    <input type="hidden" name="file[replace][1][data]" value="1" />
    <input type="hidden" name="file[replace][1][uid]" value="{uid}" />

    <div class="form-group">
        <input class="btn btn-primary" type="submit" value="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:file_replace.php.submit')}" />
        <input class="btn btn-danger" type="submit" value="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.cancel')}"
             onclick="backToList(); return false;" />
        <input type="hidden" name="redirect" value="{returnUrl}" />
    </div>
    </form>
</div>
