summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/jira_import/components/jira_import_form.vue
blob: 4de04efe1b01a3c8e2fae8457be18380ea64b01c (plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<script>
import { GlAvatar, GlNewButton, GlFormGroup, GlFormSelect, GlLabel } from '@gitlab/ui';

export default {
  name: 'JiraImportForm',
  components: {
    GlAvatar,
    GlNewButton,
    GlFormGroup,
    GlFormSelect,
    GlLabel,
  },
  currentUserAvatarUrl: gon.current_user_avatar_url,
  currentUsername: gon.current_username,
};
</script>

<template>
  <div>
    <h3 class="page-title">{{ __('New Jira import') }}</h3>
    <hr />
    <form>
      <gl-form-group
        class="row align-items-center"
        :label="__('Import from')"
        label-cols-sm="2"
        label-for="jira-project-select"
      >
        <gl-form-select id="jira-project-select" class="mb-2" />
      </gl-form-group>

      <gl-form-group
        class="row align-items-center"
        :label="__('Issue label')"
        label-cols-sm="2"
        label-for="jira-project-label"
      >
        <gl-label
          id="jira-project-label"
          class="mb-2"
          background-color="#428BCA"
          title="jira-import::KEY-1"
          scoped
        />
      </gl-form-group>

      <hr />

      <p class="offset-md-1">
        {{
          __(
            "For each Jira issue successfully imported, we'll create a new GitLab issue with the following data:",
          )
        }}
      </p>

      <gl-form-group
        class="row align-items-center mb-1"
        :label="__('Title')"
        label-cols-sm="2"
        label-for="jira-project-title"
      >
        <p id="jira-project-title" class="mb-2">{{ __('jira.issue.summary') }}</p>
      </gl-form-group>
      <gl-form-group
        class="row align-items-center mb-1"
        :label="__('Reporter')"
        label-cols-sm="2"
        label-for="jira-project-reporter"
      >
        <gl-avatar
          id="jira-project-reporter"
          class="mb-2"
          :src="$options.currentUserAvatarUrl"
          :size="24"
          :aria-label="$options.currentUsername"
        />
      </gl-form-group>
      <gl-form-group
        class="row align-items-center mb-1"
        :label="__('Description')"
        label-cols-sm="2"
        label-for="jira-project-description"
      >
        <p id="jira-project-description" class="mb-2">{{ __('jira.issue.description.content') }}</p>
      </gl-form-group>

      <div class="footer-block row-content-block d-flex justify-content-between">
        <gl-new-button category="primary" variant="success">{{ __('Next') }}</gl-new-button>
        <gl-new-button>{{ __('Cancel') }}</gl-new-button>
      </div>
    </form>
  </div>
</template>