maestrano/mno-enterprise-angular

View on GitHub
src/app/views/onboarding/step3.html

Summary

Maintainability
Test Coverage
<div id="step3">
  <div class="row">
    <div class="col-lg-10 col-lg-offset-1">
      <div class="content-panel clearfix">
        <div class="text-center">
          <h1 translate>mno_enterprise.templates.onboarding.connect_apps.connect_applications</h1>
        </div>

        <div ng-show="vm.isFetchingAppInstances" class="text-center top-buffer-3">
          <i class="fa fa-refresh fa-spin fa-3x apps-loader"></i>
        </div>

        <div class="apps-wrapper">
          <div class="app-card" ng-repeat="appInstance in vm.appInstances track by appInstance.id">
            <img ng-src="{{appInstance.logo}}" alt="{{appInstance.name}}">
            <h4>{{appInstance.name}}</h4>
            <mno-app-onboarding-btn app-instance="appInstance" class="top-buffer-1"></mno-app-onboarding-btn>
          </div>
        </div>

        <div class="text-center next-button-wrapper">
          <div class="top-buffer-2" ng-show="vm.nbAppsToConnect > 0" translate translate-value-nb="{{vm.nbAppsToConnect}}">
            mno_enterprise.templates.onboarding.connect_apps.apps_to_connect_now
          </div>
          <div ng-show="vm.nbAppsToConnect > 0" class="text-muted" translate>
            mno_enterprise.templates.onboarding.connect_apps.apps_to_connect_later
          </div>
          <button id="ob3-btn1" ng-show="vm.nbAppsToConnect > 0" class="btn btn-primary next-button" ui-sref="home.impac">
            <span translate>mno_enterprise.templates.onboarding.connect_apps.skip</span>
          </button>
          <button id="ob3-btn2" ng-show="vm.nbAppsToConnect === 0" class="btn btn-primary next-button" ui-sref="home.impac">
            <span translate>mno_enterprise.templates.onboarding.connect_apps.go_to_dashboard</span>
          </button>
        </div>
      </div>
    </div>
  </div>
</div>