<!--
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
-->

<div class="box box-primary box-2px">
    <div class="box-header widget-header-blue widget-header-flat">
        <h4 class="box-title text-info">Cube Designer</h4>
    </div>
    <div class="box-body">
            <div>
                <ul class="wizard-steps">
                    <li ng-repeat="step in wizardSteps"
                        class="{{step==curStep?'active':''}} {{step.isComplete?'complete':''}}">
                        <span style="cursor:pointer;" ng-click="nextStep($index, goToStep)" class="step">{{step.step = ($index + 1)}}</span>
                        <span class="title">{{step.title}}</span>
                     </li>
                </ul>
            </div>
            <hr/>
            <div class="step-content pos-rel" id="step-container">
                <div ng-include src="curStep.src"></div>
            </div>
            <hr/>
            <div class="wizard-actions">
                <div class="row">
                    <div class="col-xs-8">
                        <div>
                        </div>
                    </div>
                    <div class="col-xs-4">
                        <button class="btn btn-prev" ng-click="preView()" ng-show="curStep.title!='Cube Info'">
                            <i class="ace-icon fa fa-arrow-left"></i>
                            Prev
                        </button>
                        <button id="nextButton" class="btn btn-success btn-next"  ng-click="nextStep($index, nextView)" ng-disabled="forms[curStep.form].$invalid"
                                ng-show="curStep.title!='Overview'">
                            Next
                            <i class="ace-icon fa fa-arrow-right icon-on-right"></i>
                        </button>
                        <button class="btn btn-primary" ng-click="prepareCube();saveCube()" ng-disabled="design_form.$invalid"
                                ng-if="curStep.title=='Overview' && state.mode=='edit'">
                            Save
                        </button>
                    </div>
                </div>
            </div>
    </div>
</div>
