diff options
author | Stan Hu <stanhu@gmail.com> | 2018-07-01 15:13:15 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-07-01 15:13:15 +0300 |
commit | 3735ce43fc5adfb82fb22730978ba0bca696c37d (patch) | |
tree | 94555c533d609fd1286b5e8056d0112caabd04bb /app/views/import | |
parent | 6b698a93bb87e5c4b236a55172b28cdb3a7fadd8 (diff) |
Add a Reconfigure button and improve layout of import screen
Diffstat (limited to 'app/views/import')
-rw-r--r-- | app/views/import/bitbucket_server/new.html.haml | 21 | ||||
-rw-r--r-- | app/views/import/bitbucket_server/status.html.haml | 18 |
2 files changed, 24 insertions, 15 deletions
diff --git a/app/views/import/bitbucket_server/new.html.haml b/app/views/import/bitbucket_server/new.html.haml index 3588cc48922..d9407dabf4a 100644 --- a/app/views/import/bitbucket_server/new.html.haml +++ b/app/views/import/bitbucket_server/new.html.haml @@ -9,11 +9,18 @@ %p = _('Enter in your Bitbucket Server URL and personal access token below') -= form_tag configure_import_bitbucket_server_path, method: :post, class: 'form-inline' do - .form-group - = text_field_tag :bitbucket_server_url, '', class: 'form-control append-right-8', placeholder: _('https://bitbucket-server'), size: 40 - - = text_field_tag :bitbucket_username, '', class: 'form-control append-right-8', placeholder: _('username'), size: 40 - - = text_field_tag :personal_access_token, '', class: 'form-control append-right-8', placeholder: _('Personal Access Token'), size: 40 += 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 + = text_field_tag :bitbucket_server_url, '', class: 'form-control append-right-8', placeholder: _('https://bitbucket-server'), size: 40 + .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 + = text_field_tag :personal_access_token, '', class: 'form-control append-right-8', placeholder: _('Personal Access Token'), size: 40 + .form-actions = submit_tag _('List your Bitbucket Server repositories'), class: 'btn btn-success' diff --git a/app/views/import/bitbucket_server/status.html.haml b/app/views/import/bitbucket_server/status.html.haml index 50cbc7d1653..e179502a923 100644 --- a/app/views/import/bitbucket_server/status.html.haml +++ b/app/views/import/bitbucket_server/status.html.haml @@ -4,20 +4,22 @@ %h3.page-title %i.fa.fa-bitbucket Import projects from Bitbucket Server + = link_to('Reconfigure', configure_import_bitbucket_server_path, class: 'btn btn-primary float-right', method: :post) - if @repos.any? %p.light Select projects you want to import. %hr %p - - if @incompatible_repos.any? - = button_tag class: 'btn btn-import btn-success js-import-all' do - Import all compatible projects - = icon('spinner spin', class: 'loading-icon') - - else - = button_tag class: 'btn btn-import btn-success js-import-all' do - Import all projects - = icon('spinner spin', class: 'loading-icon') + - if @incompatible_repos.any? + = button_tag class: 'btn btn-import btn-success js-import-all' do + Import all compatible projects + = icon('spinner spin', class: 'loading-icon') + - else + = button_tag class: 'btn btn-import btn-success js-import-all' do + Import all projects + = icon('spinner spin', class: 'loading-icon') + %p .table-responsive %table.table.import-jobs |