LoginForm.vue 1.03 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<template>
  <div>
    <form v-bind:action='returnUrl' method="post">
      <h5 class="card-title">{{ $t('login_form_headline') }}</h5>
      <div class="row">
        <input data-val="true" data-val-required="$t('login_form_id_required')" id="userId" name="UserId" type="text" value="" class="form-control">
      </div>
      <div class="row">
        <input type="Submit" v-bind:value="$t('login_form_submit')" class="submit btn btn-primary w-100">
      </div>
      <div class="row">
        <button class="btn btn-secondary w-100" name="back" @click.prevent="clickBack">{{ $t('back') }}</button>
      </div>
      <input type="hidden" name="wa" value="wsignin1.0">
    </form>
  </div>
</template>

<script lang='ts'>
import Vue from 'vue';

export default Vue.extend({
  name: 'LoginForm',
  data() {
    return {
      form: {
      },
    };
  },
  props: {
    returnUrl: String,
  },
  methods: {
    clickBack() {
      this.$emit('back');
    },
  },
});
</script>

<style scoped>
  .form-control {
      margin: 0em 0.35em;
  }
</style>