<ion-view title="Signin" >
    <ion-content overflow-scroll="true" padding="true" class="has-header">
        <form class="list" novalidate="novalidate" on-valid-submit="doLogin()">
            <ion-list>
                <label class="item item-input" validated>
                    <span class="input-label">Username</span>
                    <input type="text"
                           ng-model="vm.login"

                           placeholder="Input your username"
                           required>
                </label>
                <label class="item item-input" validated>
                    <span class="input-label">Password</span>
                    <input
                      type="password"
                      ng-model="vm.password"
                      class="has-error"
                      placeholder="Input your password"
                      required
                    >
                </label>
            </ion-list>
            <button class="button button-positive button-block " ng-click="vm.signin()">Sign In</button>
            <button class="button button-balanced button-block " ng-click="vm.signup()">Sign Up</button>
        </form>
    </ion-content>
</ion-view>
