debian-mirror-gitlab/app/views/import/manifest/_form.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
1.3 KiB
Text
Raw Normal View History

2018-11-18 11:00:15 +05:30
= form_tag upload_import_manifest_path, multipart: true do
.form-group
= label_tag :group_id, nil, class: 'label-bold' do
= _('Group')
2023-03-04 22:38:38 +05:30
.input-group.gl-max-w-62
- namespace_id = namespace_id_from(params) || current_user.manageable_groups(include_groups_with_developer_maintainer_access: true)&.first&.id
- namespace_full_path = GroupFinder.new(current_user).execute(id: namespace_id)&.full_path
.js-vue-new-project-url-select{ data: { namespace_full_path: namespace_full_path,
namespace_id: namespace_id ,
input_id: 'group_id',
input_name: 'group_id',
root_url: root_url } }
2018-11-18 11:00:15 +05:30
.form-text.text-muted
= _('Choose the top-level group for your repository imports.')
.form-group
= label_tag :manifest, class: 'label-bold' do
= _('Manifest')
2019-12-26 22:10:19 +05:30
= file_field_tag :manifest, class: 'form-control-file w-auto', required: true
2018-11-18 11:00:15 +05:30
.form-text.text-muted
= _('Import multiple repositories by uploading a manifest file.')
2020-11-24 15:15:51 +05:30
= link_to sprite_icon('question-o'), help_page_path('user/project/import/manifest')
2018-11-18 11:00:15 +05:30
2020-10-24 23:57:45 +05:30
.gl-mb-3
2023-03-04 22:38:38 +05:30
= render Pajamas::ButtonComponent.new(type: :submit, variant: :confirm) do
= _('List available repositories')
= render Pajamas::ButtonComponent.new(href: new_project_path) do
= _('Cancel')