2022-04-19 09:08:55 +00:00
= gitlab_ui_form_for @application_setting, url: preferences_admin_application_settings_path(anchor: 'js-localization-settings'), html: { class: 'fieldset-form' } do |f|
2022-06-15 18:08:44 +00:00
= form_errors(@application_setting, pajamas_alert: true)
2018-11-06 21:16:49 +00:00
%fieldset
.form-group
2019-01-10 21:06:42 +00:00
= 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'
2018-11-06 21:16:49 +00:00
.form-text.text-muted
2018-11-13 18:38:26 +00:00
= _('Default first day of the week in calendars and date pickers.')
2021-12-23 03:10:23 +00:00
= 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'
2018-11-06 21:16:49 +00:00
2019-06-11 09:48:42 +00:00
.form-group
2019-06-11 10:40:01 +00:00
= f.label :time_tracking, _('Time tracking'), class: 'label-bold'
2022-04-19 09:08:55 +00:00
- 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-06-11 09:48:42 +00:00
2021-03-09 15:08:59 +00:00
= f.submit _('Save changes'), class: "gl-button btn btn-confirm"
2021-07-06 12:07:43 +00:00