<div ng-controller="RestoreDirectController" >
    <div class="restore restore-direct" >
            <!-- .steps -->
            <div class="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 class="page-title">
                        <h2 translate>Backup location</h2>
                    </div>

                    <div ng-show="!connecting" class="card">
                        <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">                        
                        <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 class="buttons" ng-hide="connecting">
                        <input class="submit" type="button" id="connect" ng-click="doConnect()" value="{{'Connect' | translate}}" />
                        <input class="submit prev" type="button" id="prevStep2" ng-click="prevPage()" value="&lt; {{'Previous' | translate}}" />
                    </div> -->
                    <!-- <div ng-show="connecting">
                        {{ConnectionProgress}}
                    </div> -->

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