2022-06-21 17:19:12 +05:30
= gitlab_ui_form_for @application_setting, url: preferences_admin_application_settings_path(anchor: 'js-localization-settings'), html: { class: 'fieldset-form' } do |f|
2022-10-11 01:57:18 +05:30
= form_errors(@application_setting)
2019-03-02 22:35:43 +05:30
%fieldset
.form-group
= f.label :first_day_of_week, _('Default first day of the week'), class: 'label-bold'
= f.select :first_day_of_week, first_day_of_week_choices, {}, class: 'form-control'
.form-text.text-muted
= _('Default first day of the week in calendars and date pickers.')
2022-03-02 08:16:31 +05:30
= link_to _('Learn more.'), help_page_path('user/admin_area/settings/index.md', anchor: 'default-first-day-of-the-week'), target: '_blank', rel: 'noopener noreferrer'
2019-03-02 22:35:43 +05:30
2019-09-30 21:07:59 +05:30
.form-group
= f.label :time_tracking, _('Time tracking'), class: 'label-bold'
2022-06-21 17:19:12 +05:30
- time_tracking_help_link = help_page_path('user/project/time_tracking.md')
- time_tracking_help_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: time_tracking_help_link }
= f.gitlab_ui_checkbox_component :time_tracking_limit_to_hours, _('Limit display of time tracking units to hours.'), help_text: _('Display time tracking in issues in total hours only. %{link_start}What is time tracking?%{link_end}').html_safe % { link_start: time_tracking_help_link_start, link_end: '</a>'.html_safe }
2019-09-30 21:07:59 +05:30
2023-03-04 22:38:38 +05:30
.form-group
= f.label :default_preferred_language, class: 'label-bold' do
= _('Default language')
= f.select :default_preferred_language, default_preferred_language_choices, {}, class: 'gl-form-select custom-select'
.form-text.text-muted
2023-07-09 08:55:56 +05:30
= _('Default language for users who are not logged in.')
2023-03-04 22:38:38 +05:30
2022-11-25 23:54:43 +05:30
= f.submit _('Save changes'), pajamas_button: true
2021-09-30 23:02:18 +05:30