<template lang="pug">
main.view--login

    article.pa12
        form
            w-input.mb4(label="User E-mail" tile outline v-model="form.profileId" inner-icon-left='icon-envelope')
            w-input(label="Password" type="password" tile outline inner-icon-left='icon-eye')

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

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