<div class="formArea">

<!-- BEGIN DYNAMIC BLOCK: target_windows -->
<fieldset><legend>[[migration__start__target__legend]]</legend><table class="formFields" cellspacing="0" width="100%">
    <tr id="row-target-login" {error-target-login}>
        <td class="name"><label for="fid-target-login">[[migration__start__target_login]]&nbsp;{REQ}</label></td>
        <td><input type="text" name="target-login" id="fid-target_login" value="{value-target-login}" size="30" >
        <div class="hint">[[migration__start__target_login_hint]]</div></td>
    </tr>
    
    <tr id="row-target-password" {error-target-password}>
        <td class="name"><label for="fid-target-password">[[migration__start__target_password]]&nbsp;{REQ}</label></td>
        <td>{TARGET_PASSWORD_INPUT}</td>
    </tr>
</table></fieldset>
<!-- END DYNAMIC BLOCK: target_windows -->

<fieldset><legend>[[migration__start__source__legend]]</legend><table class="formFields" cellspacing="0" width="100%">
<!-- BEGIN DYNAMIC BLOCK: source_host_unix -->
    <tr id="row-hostname" {error-hostname} {error-port}>
        <td class="name"><label for="fid-hostname">[[migration__start__hostname]]&nbsp;{REQ}</label></td>
        <td><input type="text" name="hostname" id="fid-hostname" size="30" value="{value-hostname}">:<input type="text" name="port" id="fid-port" size="5" value="{value-port}"></td>
    </tr>
<!-- END DYNAMIC BLOCK: source_host_unix -->
<!-- BEGIN DYNAMIC BLOCK: source_host_windows -->
    <tr id="row-hostname" {error-hostname}>
        <td class="name"><label for="fid-hostname">[[migration__start__hostname]]&nbsp;{REQ}</label></td>
        <td><input type="text" name="hostname" id="fid-hostname" size="30" value="{value-hostname}"></td>
    </tr>
<!-- END DYNAMIC BLOCK: source_host_windows -->

    <tr id="row-login" {error-login}>
        <td class="name"><label for="fid-login">[[migration__start__login]]&nbsp;{REQ}</label></td>
        <td><input type="text" name="login" id="fid-login" value="{value-login}" size="30" >
        <div class="hint">[[migration__start__login_hint]]</div></td>
    </tr>
    
    <tr id="row-password" {error-password}>
        <td class="name"><label for="fid-password">[[migration__start__password]]&nbsp;{REQ}</label></td>
        <td>{PASSWORD_INPUT}</td>
    </tr>

<!-- BEGIN DYNAMIC BLOCK: os_type -->
    <tr id="row-os-type" {error-os-type}>
        <td class="name"><label for="fid-sudo-password">[[migration__start__os_type]]</label></td>
        <td>{OS_TYPE_INPUT}</td>
    </tr>
<!-- END DYNAMIC BLOCK: os_type -->

<!-- BEGIN DYNAMIC BLOCK: source_session_dir -->
    <tr id="row-source-session-dir" {error-source-session-dir}>
        <td class="name"><label for="fid-source-session-dir">[[migration__start__source_session_dir]]&nbsp;</label></td>
        <td><input type="text" name="source-session-dir" id="fid-source-session-dir" value="{value-source-session-dir}" size="30" >
        <div class="hint">[[migration__start__source_session_dir_hint]]</div></td>
    </tr>
<!-- END DYNAMIC BLOCK: source_session_dir -->
</table></fieldset>

<fieldset><legend>[[migration__start__migration_settings__legend]]</legend><table class="formFields" cellspacing="0" width="100%">
    <tr id="fid-data-transfer-fields-import-all">
        <td class="name">
            <label>[[migration__start__data_import_type]]</label>
        </td>
        <td>
            <div class="indent-box">
                <input type="radio" class="radiobox" name="data-import-type" id="fid-data-import-type-all" value="all" {DATA_IMPORT_TYPE_ALL_CHECKED}>
                <div class="indent-box-content">
                    <label for="fid-data-import-type-all">[[migration__data_import_type__all]]</label>
                    <div class="indent-box">
                        <input type="checkbox" class="checkbox" name="timing-policy" id="fid-timing_policy_overwrite" value="overwrite" {DATA_IMPORT_TIMING_POLICY_OVERWRITE_CHECKED}>
                        <div class="indent-box-content">
                            <label for="fid-timing_policy_overwrite">[[migration__start__conflict_resolution_rules]]</label>
                        </div>
                    </div>
                </div>
            </div>
            <div class="indent-box">
                <input type="radio" class="radiobox" name="data-import-type" id="fid-data-import-type-selected" value="selected" {DATA_IMPORT_TYPE_SELECTED_CHECKED}>
                <div class="indent-box-content">
                    <label for="fid-data-import-type-selected">[[migration__data_import_type__selected]]</label>
                </div>
            </div>
            <input type="hidden" name="data-import-compress" value="true">
        </td>
    </tr>
    <tr id="fid-operability-check">
        <td class="name">
        </td>
        <td>
            <div class="indent-box">
                <input type="checkbox" class="checkbox" name="operability-check" id="fid-check-operability" value="true" {OPERABILITY_CHECK_CHECKED}>
                <div class="indent-box-content">
                    <label for="fid-check-operability">[[migration__check_operability]]</label>
                    <p class="hint">[[migration__check_operability_hint]]</p>
                </div>
            </div>
        </td>
    </tr>
</table></fieldset>
</div>
<script>
Jsw.onReady(function () {
    function dataImportTypeChanged() {
        if ($('fid-data-import-type-all').checked) {
            $('fid-timing_policy_overwrite').enable();
        } else {
            $('fid-timing_policy_overwrite').disable();
        }
    }

    $("fid-data-import-type-all").observe('click', dataImportTypeChanged);
    $("fid-data-import-type-selected").observe('click', dataImportTypeChanged);
    dataImportTypeChanged();
});
</script>
