LoginForm.vue 1.09 KB
Newer Older
1
2
<template>
  <div>
Benedikt Heinrichs's avatar
Benedikt Heinrichs committed
3
    <form :action="returnUrl" method="post">
4
5
      <h5 class="card-title">{{ $t('login_form_headline') }}</h5>
      <div class="row">
6
7
8
        <input data-val="true" data-val-required="$t('login_form_id_required')" id="userId" placeholder="User ID" name="UserId" type="text" value="" class="form-control" />
      </div>
      <div style="height: 5.5px;">
9
10
      </div>
      <div class="row">
Benedikt Heinrichs's avatar
Benedikt Heinrichs committed
11
        <input type="Submit" :value="$t('login_form_submit')" class="submit btn btn-primary w-100" />
12
13
14
15
      </div>
      <div class="row">
        <button class="btn btn-secondary w-100" name="back" @click.prevent="clickBack">{{ $t('back') }}</button>
      </div>
Benedikt Heinrichs's avatar
Benedikt Heinrichs committed
16
      <input type="hidden" name="wa" value="wsignin1.0" />
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
46
47
    </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>