<ion-view view-title="Login"  hide-nav-bar="true">
    <ion-content class="padding login">
        <h1 class="logo"><i class="icon ion-model-s"></i></h1>
        <p class='signState' ng-if="!vm.hiddenState" ng-init="vm.hiddenState = false">{{vm.signUpState}}</p>
        <div class="list" style="margin-bottom: 9px;">
            <ion-md-input placeholder="Email" highlight-color="assertive" type="text" ng-keydown="vm.hiddenState = true" ng-model="vm.email"></ion-md-input>
            <ion-md-input placeholder="Heslo" highlight-color="assertive" type="password" ng-model="vm.password"></ion-md-input>
        </div> 
        <div class="button-bar">
            <button class="button button-assertive" type="submit" ng-disabled="!vm.email || !vm.password" ng-click="vm.signin()">
                Prihlásiť sa
            </button>
        </div>           
    </ion-content>
    <ion-footer-bar class="bar footer">
        <a href="#/signup">Ešte nemáte účet?<b> Zaregistrujte sa.</b></a>
    </ion-footer-bar>
</ion-view>
