new_user_map.html.haml 1.93 KB
Newer Older
1 2
- page_title _('User map'), _('FogBugz import')
- header_title _("Projects"), root_path
Jared Szechy's avatar
Jared Szechy committed
3 4
%h3.page-title
  %i.fa.fa-bug
5
  = _('Import projects from FogBugz')
Jared Szechy's avatar
Jared Szechy committed
6 7
%hr

8
= form_tag create_user_map_import_fogbugz_path do
Jared Szechy's avatar
Jared Szechy committed
9
  %p
10
    = _("Customize how FogBugz email addresses and usernames are imported into GitLab. In the next step, you'll be able to select the projects you want to import.")
Jared Szechy's avatar
Jared Szechy committed
11
  %p
12
    = _("The user map is a mapping of the FogBugz users that participated on your projects to the way their email address and usernames will be imported into GitLab. You can change this by populating the table below.")
Jared Szechy's avatar
Jared Szechy committed
13 14
  %ul
    %li
15
      %strong= _("Default: Map a FogBugz account ID to a full name")
Jared Szechy's avatar
Jared Szechy committed
16
      %p
17
        = _("An empty GitLab User field will add the FogBugz user's full name (e.g. \"By John Smith\") in the description of all issues and comments. It will also associate and/or assign these issues and comments with the project creator.")
Jared Szechy's avatar
Jared Szechy committed
18
    %li
19
      %strong= _("Map a FogBugz account ID to a GitLab user")
Jared Szechy's avatar
Jared Szechy committed
20
      %p
21
        = _('Selecting a GitLab user will add a link to the GitLab user in the descriptions of issues and comments (e.g. "By <a href="#">@johnsmith</a>"). It will also associate and/or assign these issues and comments with the selected user.').html_safe
Jared Szechy's avatar
Jared Szechy committed
22

Douwe Maan's avatar
Douwe Maan committed
23 24 25
  .table-holder
    %table.table
      %thead
Jared Szechy's avatar
Jared Szechy committed
26
        %tr
27 28 29 30
          %th= _("ID")
          %th= _("Name")
          %th= _("Email")
          %th= _("GitLab User")
Douwe Maan's avatar
Douwe Maan committed
31 32 33
      %tbody
        - @user_map.each do |id, user|
          %tr
34
            %td= (id)
Douwe Maan's avatar
Douwe Maan committed
35 36 37 38 39
            %td= text_field_tag "users[#{id}][name]", user[:name], class: 'form-control'
            %td= text_field_tag "users[#{id}][email]", user[:email], class: 'form-control'
            %td
              = users_select_tag("users[#{id}][gitlab_user]", class: 'custom-form-control',
                scope: :all, email_user: true, selected: user[:gitlab_user])
Jared Szechy's avatar
Jared Szechy committed
40 41

  .form-actions
42
    = submit_tag _('Continue to the next step'), class: 'btn btn-create'