123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <div class="app-root" ng-controller="AppRootController" ng-class="isOpenMenu?'open-menu' : 'close-menu'" ng-init="load()">
- <div class="header-line">
- <!-- Fixed elements -->
- <nav-menu toggle-menu="toggleMenu()" ng-class="isOpenMenu?'open-menu' : 'close-menu'"></nav-menu>
- <div ng-click="toggleMenu()" class="overlay" ng-class="{'overlay-active': isOpenMenu}"></div>
- <div class="overlay2"></div>
- <selected-meals meals="meals"></selected-meals>
- <div class="preload-screen">
- <img src="content\images\preloader\Double Ring-1s-200px.gif">
- </div>
- <div ng-if="isUserSigned" class="selected-meals-btn" ng-click="openSelectedMeals()" ng-show="isShowMealsBtn()">
- <span>{{selectedNumber}}</span>
- <span class="selected-meals-tip">BAG</span>
- </div>
- <a ng-click="goToShoppingCart()" class="shopping-cart-icon">
- <span class="fa fa-shopping-cart"></span>
- </a>
- <div ng-if="!isUserSigned" class="login-btn" ng-click="openPopup()">
- <span class="fa fa-sign-in"></span>
- Login
- </div>
- <div ng-if="isUserSigned" class="sign-out-btn" ng-click="signOut()">
- <span class="fa fa-sign-in"></span>
- Sign out
- </div>
- <a ng-if="isUserSigned && !isModeratorSigned" href="#!/user-page" class="user-page-icon">
- <span class="fa fa-user"></span>
- </a>
- <div class="login-popup">
- <div class="cancel" ng-click="cancelPopup()">
- <span class="fa fa-times"></span>
- </div>
- <div class="popup-cansel-wrapper" ng-click="cancelPopup()">
- </div>
- <div class="login-popup-wrapper">
- <div class="btns">
- <button type="button" ng-class="{'btn-active': isLoginActive}" ng-click="isLoginActive = true">login</button>
- <button type="button" ng-class="{'btn-active': !isLoginActive}" ng-click="isLoginActive = false">register</button>
- </div>
- <div class="content">
- <div class="login" ng-if="isLoginActive">
- <form ng-submit="signInUser()" novalidate name="loginForm">
- <input type="email" placeholder="Email" ng-model="signInUserObj.email" ng-required="true" name="email">
- <span ng-if="loginForm.email.$invalid && loginForm.email.$touched">Enter a valid email</span>
- <input type="password" placeholder="Password" ng-model="signInUserObj.password" ng-required="true" name="password">
- <span>{{signInUserError}}</span>
- <input type="submit" value="login">
- </form>
- </div>
- <div class="register" ng-if="!isLoginActive">
- <form ng-submit="createNewUser()" novalidate name="registerForm">
- <input autocomplete="off" type="email" placeholder="Email" ng-model="newUserObj.email" ng-required="true" name="email">
- <span ng-if="registerForm.email.$invalid && registerForm.email.$touched">Enter a valid email</span>
- <input ng-class="{'input-invalid': registerForm.password.$touched && isShortPassword}" ng-change="onPasswordInput()" type="password" placeholder="Create a password" ng-model="newUserObj.password" name="password" ng-required="true">
- <span ng-if="registerForm.password.$touched && isShortPassword">Password should be at least 6 characters</span>
- <input ng-change="onConfirmPasswordInput()" ng-class="{'input-invalid': confirmPasswordIncorrect && registerForm.confirmPassword.$touched}" type="password" placeholder="Confirm your password" ng-required="true" ng-model="registerObject.confirmPassword" name="confirmPassword">
- <span ng-if="confirmPasswordIncorrect && registerForm.confirmPassword.$touched">The passwords don't match, please try again</span>
- <input type="text" placeholder="Your phone number" ng-required="true" ng-model="newUserDataObj.phoneNumber" name="phoneNumber">
- <input type="submit" value="register">
- </form>
- </div>
- </div>
- </div>
- </div>
- <div ng-if="isShowDeleteItemModeToggle()" ng-click="deleteItemModeToggle()" class="delete-item-mode-btn">
- Delete mode
- </div>
- <!-- Fixed elements -->
- <i class="fa fa-bars" ng-click="toggleMenu()"></i>
- <div class="logo">
- Master Kitchen
- </div>
- <div class="undefined-btn"></div>
- </div>
- <main ng-view></main>
- <scroll-top></scroll-top>
- </div>
|