new.html.haml 1.24 KB
Newer Older
Stan Hu's avatar
Stan Hu committed
1
- title = _('Bitbucket Server Import')
Stan Hu's avatar
Stan Hu committed
2 3 4 5 6
- page_title title
- breadcrumb_title title
- header_title "Projects", root_path

%h3.page-title
Stan Hu's avatar
Stan Hu committed
7
  = icon 'bitbucket-square', text: _('Import repositories from Bitbucket Server')
Stan Hu's avatar
Stan Hu committed
8 9 10 11

%p
  = _('Enter in your Bitbucket Server URL and personal access token below')

12 13 14 15
= form_tag configure_import_bitbucket_server_path, method: :post do
  .form-group.row
    = label_tag :bitbucket_server_url, 'Bitbucket Server URL', class: 'col-form-label col-md-2'
    .col-md-4
16
      = text_field_tag :bitbucket_server_url, '', class: 'form-control append-right-8', placeholder: _('https://your-bitbucket-server'), size: 40
17 18 19 20 21 22 23
  .form-group.row
    = label_tag :bitbucket_server_url, 'Username', class: 'col-form-label col-md-2'
    .col-md-4
      = text_field_tag :bitbucket_username, '', class: 'form-control append-right-8', placeholder: _('username'), size: 40
  .form-group.row
    = label_tag :personal_access_token, 'Password/Personal Access Token', class: 'col-form-label col-md-2'
    .col-md-4
24
      = password_field_tag :personal_access_token, '', class: 'form-control append-right-8', placeholder: _('Personal Access Token'), size: 40
25
  .form-actions
Stan Hu's avatar
Stan Hu committed
26
    = submit_tag _('List your Bitbucket Server repositories'), class: 'btn btn-success'