diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-27 06:08:00 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-27 06:08:00 +0300 |
commit | c5008f037f371a6218cf2aec7cf5d0f503265fd6 (patch) | |
tree | 8c2cb1728abf7c8a118edb44bd298728762814c5 /app/views/projects/branches | |
parent | b116caf58d035f265c7645226c93846f729dd8d6 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/views/projects/branches')
-rw-r--r-- | app/views/projects/branches/new.html.haml | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/app/views/projects/branches/new.html.haml b/app/views/projects/branches/new.html.haml index 91efd5ef048..86bed956bc4 100644 --- a/app/views/projects/branches/new.html.haml +++ b/app/views/projects/branches/new.html.haml @@ -7,22 +7,18 @@ = @error %h1.page-title.gl-font-size-h-display = _('New Branch') -%hr = form_tag namespace_project_branches_path, method: :post, id: "new-branch-form", class: "js-create-branch-form js-requires-input" do - .form-group.row - = label_tag :branch_name, _('Branch name'), class: 'col-form-label col-sm-2' - .col-sm-10 - = text_field_tag :branch_name, params[:branch_name], required: true, autofocus: true, class: 'form-control js-branch-name monospace' - .form-text.text-muted.text-danger.js-branch-name-error - .form-group.row - = label_tag :ref, _('Create from'), class: 'col-form-label col-sm-2' - .col-sm-auto.create-from - .js-new-branch-ref-selector{ data: { project_id: @project.id, default_branch_name: default_ref, hidden_input_name: 'ref' } } - .form-text.text-muted - = _('Existing branch name, tag, or commit SHA') - .form-actions - = render Pajamas::ButtonComponent.new(variant: :confirm, button_options: { type: 'submit', class: 'gl-mr-3' }) do - = _('Create branch') - = link_to _('Cancel'), project_branches_path(@project), class: 'gl-button btn btn-default btn-cancel' + .form-group.gl-max-w-80 + = label_tag :branch_name, _('Branch name') + = text_field_tag :branch_name, params[:branch_name], required: true, autofocus: true, class: 'form-control js-branch-name monospace' + .form-text.text-muted.text-danger.js-branch-name-error{ 'aria-live': 'assertive' } + .form-group.gl-max-w-80 + = label_tag :ref, _('Create from') + .js-new-branch-ref-selector{ data: { project_id: @project.id, default_branch_name: default_ref, hidden_input_name: 'ref' } } + .form-text.text-muted + = _('Existing branch name, tag, or commit SHA') + = render Pajamas::ButtonComponent.new(variant: :confirm, button_options: { type: 'submit', class: 'gl-mr-3' }) do + = _('Create branch') + = link_to _('Cancel'), project_branches_path(@project), class: 'gl-button btn btn-default btn-cancel' |