2021-06-07 14:10:23 -04:00
|
|
|
- page_title _('Phabricator Server Import')
|
|
|
|
- header_title _("New project"), new_project_path
|
2021-09-21 11:12:11 -04:00
|
|
|
- add_to_breadcrumbs s_('ProjectsNew|Import project'), new_project_path(anchor: 'import_project')
|
2019-04-23 10:27:01 -04:00
|
|
|
|
2020-08-12 20:10:06 -04:00
|
|
|
%h3.page-title.d-flex
|
|
|
|
.gl-display-flex.gl-align-items-center.gl-justify-content-center
|
|
|
|
= sprite_icon('issues', css_class: 'gl-mr-2')
|
|
|
|
= _('Import tasks from Phabricator into issues')
|
2019-04-23 10:27:01 -04:00
|
|
|
|
|
|
|
= render 'import/shared/errors'
|
|
|
|
|
|
|
|
= form_tag import_phabricator_path, class: 'new_project', method: :post do
|
|
|
|
= render 'import/shared/new_project_form'
|
|
|
|
|
2020-05-21 14:08:27 -04:00
|
|
|
%h4.gl-mt-0= _('Enter in your Phabricator Server URL and personal access token below')
|
2019-04-23 10:27:01 -04:00
|
|
|
|
|
|
|
.form-group.row
|
|
|
|
= label_tag :phabricator_server_url, _('Phabricator Server URL'), class: 'col-form-label col-md-2'
|
|
|
|
.col-md-4
|
2021-04-27 14:10:02 -04:00
|
|
|
= text_field_tag :phabricator_server_url, params[:phabricator_server_url], class: 'form-control gl-form-input gl-mr-3', placeholder: 'https://your-phabricator-server', size: 40
|
2019-04-23 10:27:01 -04:00
|
|
|
.form-group.row
|
|
|
|
= label_tag :api_token, _('API Token'), class: 'col-form-label col-md-2'
|
|
|
|
.col-md-4
|
2021-04-27 14:10:02 -04:00
|
|
|
= password_field_tag :api_token, params[:api_token], class: 'form-control gl-form-input gl-mr-3', placeholder: _('Personal Access Token'), size: 40
|
2019-04-23 10:27:01 -04:00
|
|
|
.form-actions
|
2021-03-15 11:09:07 -04:00
|
|
|
= submit_tag _('Import tasks'), class: 'gl-button btn btn-confirm'
|