2021-09-08 06:10:46 +00:00
= form_for @application_setting, url: repository_admin_application_settings_path(anchor: 'js-default-branch-name'), html: { class: 'fieldset-form' } do |f|
2020-07-13 15:09:08 +00:00
= form_errors(@application_setting)
2021-05-14 15:10:35 +00:00
- fallback_branch_name = "<code>#{Gitlab::DefaultBranch.value}</code>"
2020-07-13 15:09:08 +00:00
%fieldset
.form-group
= f.label :default_branch_name, _('Default initial branch name'), class: 'label-light'
2021-05-14 15:10:35 +00:00
= f.text_field :default_branch_name, placeholder: Gitlab::DefaultBranch.value, class: 'form-control gl-form-input'
2020-07-13 15:09:08 +00:00
%span.form-text.text-muted
2021-07-06 03:08:11 +00:00
= (s_("AdminSettings|If not specified at the group or instance level, the default is %{default_initial_branch_name}. Does not affect existing repositories.") % { default_initial_branch_name: fallback_branch_name } ).html_safe
2020-08-10 09:09:54 +00:00
2021-03-09 15:08:59 +00:00
= f.submit _('Save changes'), class: 'gl-button btn-confirm'