UNPKG

unserver-unify

Version:

123 lines (117 loc) 4.92 kB
<div class="home_adv" ng-controller="AdvHomeCtrl as ctrl" style="background-color:white;"> <div class="home_slider" ng-if="(Bigslides && Bigslides.length> 0) && (loginService.subDomain != 'enterprise' && loginService.subDomain != 'hed' && loginService.subDomain != 'design' && loginService.subDomain != 'healthcare')"> <div uib-carousel active="active" interval="myInterval"> <div uib-slide index="$index" ng-repeat="slide in Bigslides" ng-class="{'slider_type1':slide.style=='inline','slider_type2':slide.style=='float','slider_type3':slide.style=='text'}"> <img ng-src="{{ schoolUrl+slide.bimg }}" style="margin:auto;width:100%;height:100%;"/> <div class="text_content" ng-if="(slide.title || slide.brief) && slide.text"> <h1> {{slide.title}} </h1> <p> {{slide.brief}} </p> <a class="btn btn-warning" ui-sref="index.courses" ng-if="slide.style=='float'"> {{'View Course' | translate }} </a> </div> </div> </div> <div class="col-lg-3" ng-if="currentSchool.theme=='k12'" style="position: absolute; top:100px; right:15%;" ng-controller="LoginCtrl as ctrl"> <form action="#" id="sky-form2" class="sky-form" ng-submit="loginMe()"> <header>Login form</header> <fieldset> <section> <div class="row"> <label class="label col col-4">{{ 'Username' | translate }}" </label> <div class="col col-8"> <label class="input"> <i class="icon-append fa fa-user"></i> <input ng-model="login.name" type="text" name="email"> </label> </div> </div> </section> <section> <div class="row"> <label class="label col col-4">Password</label> <div class="col col-8"> <label class="input"> <i class="icon-append fa fa-lock"></i> <input type="password" ng-model="login.pass" name="password"> </label> <div class="note"><a ui-sref='index.request-reset-pwd' class="modal-opener">Forgot password?</a></div> </div> </div> </section> <section> <div class="row"> <div class="col col-4"></div> <div class="col col-8"> <label class="checkbox"><input type="checkbox" name="remember" checked><i></i>Keep me logged in</label> </div> </div> </section> </fieldset> <footer> <button type="submit" class="btn-u" ng-click="loginMe()">Log in</button> <a ui-sref="index.mobile.register" class="btn-u btn-u-default">Register</a> </footer> </form> </div> </div> <img ng-if="currentSchool && (!Bigslides || Bigslides.length == 0) && (loginService.subDomain != 'enterprise' && loginService.subDomain != 'hed' && loginService.subDomain != 'healthcare' && loginService.subDomain != 'design')" ng-src="{{ currentSchool.bar ? schoolUrl+currentSchool.bar : 'assets/images/default_banner.jpg' }}" style="width:100%;"/> <div ng-switch="loginService.subDomain"> <div ng-switch-when="enterprise"> <div ng-include="'app/home/adventerprise.html'"> </div> </div> <div ng-switch-when="hed"> <div ng-include="'app/home/advhed.html'"> </div> </div> <div ng-switch-when="design"> <div ng-include="'app/home/advhed.html'"> </div> </div> <div ng-switch-when="healthcare"> <div ng-include="'app/home/advhed.html'"> </div> </div> <div ng-switch-when="sgk12"> <div ng-include="'app/home/adv_k12.html'"> </div> </div> <div ng-switch-when="k12"> <div ng-include="'app/home/adv2_k12.html'"> </div> </div> <div ng-switch-when="kidshealthabc"> <div ng-include="'app/home/adv2_k12.html'"> </div> </div> <div ng-switch-when="bim"> <div ng-include="'app/home/adv_asia.html'"> </div> </div> <div ng-switch-when="bamboo"> <div ng-include="'app/home/advbamboo.html'"> </div> </div> <div ng-switch-default=""> <div ng-if="loginService.school.homepage=='jobs'"> <div ng-include="'app/home/advjobs.html'" style="background:#f5f5f5;"> </div> </div> <div ng-if="loginService.school.homepage!='jobs'"> <div ng-if="currentSchool.theme=='k12'"> <div ng-include="'app/home/adv_k12.html'"> </div> </div> <div ng-if="currentSchool.theme!='k12'"> <div ng-include="'app/home/advnormal.html'"> </div> </div> </div> </div> </div> </div>