new_user_map.html.haml 1.9 KB
Newer Older
J
Jared Szechy 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
- page_title 'User map', 'FogBugz import'
%h3.page-title
  %i.fa.fa-bug
  Import projects from FogBugz
%hr

= form_tag create_user_map_import_fogbugz_path, class: 'form-horizontal' do
  %p
    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.
  %p
    The user map is a mapping of the FogBugz users that participated on your projects to the way their email address and usernames wil be imported into GitLab. You can change this by populating the table below.
  %ul
    %li
      %strong Default: Map a FogBugz account ID to a full name
      %p
        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.
    %li
      %strong Map a FogBugz account ID to a GitLab user
      %p
        Selecting a GitLab user will add a link to the GitLab user in the descriptions
25
        of issues and comments (e.g. "By <a href="#">@johnsmith</a>"). It will also
J
Jared Szechy 已提交
26 27
        associate and/or assign these issues and comments with the selected user.

D
Douwe Maan 已提交
28 29 30
  .table-holder
    %table.table
      %thead
J
Jared Szechy 已提交
31
        %tr
D
Douwe Maan 已提交
32 33 34 35 36 37 38 39 40 41 42 43 44
          %th ID
          %th Name
          %th Email
          %th GitLab User
      %tbody
        - @user_map.each do |id, user|
          %tr
            %td= id
            %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])
J
Jared Szechy 已提交
45 46 47 48

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

49 50
:javascript
  new UsersSelect();