<div ng-controller="RestoreDirectController" >
    <div class="page-title">
        <h2 translate>Restore files</h2>
    </div>

    <div class="restore restore-direct" >
        <div class="steps-container">
             <!-- .steps -->
            <div class="card steps-legend">
                <ol >
                    <li ng-class="{active: CurrentStep == 0}" class="step1" ng-click="CurrentStep = 0" translate>Backup location</li>
                    <li disabled class="step3 not-clickable" translate>Select files</li>
                    <li disabled class="step4 not-clickable" translate>Restore location</li>
                    <li disabled translate>Restoring files</li>
                    <li disabled translate>Restore complete</li>
                </ol>
            </div>
            <!-- .steps-legend -->

            <div class="steps-boxes">
                <div class="step step1" ng-class="{active: CurrentStep == 0}">

                    <div ng-show="!connecting" class="card">
                        <h3 translate>Backup location</h3>
                        <restore-direct-step-one
                            uri="TargetURL"
                            folder-path-prefix="TargetFolderPathPrefix"
                            is-valid="Connected"
                            encryption-passphrase="EncryptionPassphrase"
                        ></restore-direct-step-one>
                    </div>
                    

                    <div class="card" ng-show="connecting == true && taskid == null">
                        {{ConnectionProgress}}
                        <div ng-show="serverstate.programState == 'Paused'">
                            {{'Server is currently paused,' | translate}} <a style="cursor: pointer" ng-click="ServerStatus.resume()" translate>resume now</a>
                        </div>
                    </div>
                    <div class="actions-container">                        
                        <div style="flex: 1;"></div>
                        <button type="button" class="ekup-button" ng-disabled="connecting || Connected != true" ng-click="doConnect()">
                            <span translate>Connect</span>
                            <i class="ic-log-in"></i>
                        </button>
                    </div>

                </div>
                <!-- .step2 -->
            </div>
            <!-- .steps-boxes -->
        </div>
    </div>
</div>
