<template lang="pug">
main.view--login
    article.pa12
        form
            w-input.mb4(
                inner-icon-left='icon-envelope'
                label='User E-mail'
                outline
                tile
                v-model='form.email'
            )
            w-input(
                inner-icon-left='icon-eye'
                label='Password'
                outline
                tile
                v-model='form.password'
            )

            //- Emit up an event so we can sync App pid with currentProfile.id
            w-button.xs12.mt12(
                @click.prevent.stop='$emit("updatePid", form)'
                type='submit'
            ) submit
</template>

<script>
export default {
    data: () => ({
        form: {
            email: null,
            password: null,
        },
    }),
}
</script>
