2020-07-28 23:09:34 +05:30
= form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-default-branch-name'), html: { class: 'fieldset-form' } do |f|
= form_errors(@application_setting)
2021-06-08 01:23:25 +05:30
- fallback_branch_name = "<code>#{Gitlab::DefaultBranch.value}</code>"
2020-07-28 23:09:34 +05:30
%fieldset
.form-group
= f.label :default_branch_name, _('Default initial branch name'), class: 'label-light'
2021-06-08 01:23:25 +05:30
= f.text_field :default_branch_name, placeholder: Gitlab::DefaultBranch.value, class: 'form-control gl-form-input'
2020-07-28 23:09:34 +05:30
%span.form-text.text-muted
= (_("Changes affect new repositories only. If not specified, Git's default name %{branch_name_default} will be used.") % { branch_name_default: fallback_branch_name } ).html_safe
2020-10-24 23:57:45 +05:30
2021-04-17 20:07:23 +05:30
= f.submit _('Save changes'), class: 'gl-button btn-confirm'