summaryrefslogtreecommitdiff
path: root/app/views/admin/application_settings/_localization.html.haml
blob: d0bb6a78ed623f294a1c84b26e2fe11ec613c29a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
= form_for @application_setting, url: preferences_admin_application_settings_path(anchor: 'js-localization-settings'), html: { class: 'fieldset-form' } do |f|
  = form_errors(@application_setting)

  %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.')
        = 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'

    .form-group
      = f.label :time_tracking, _('Time tracking'), class: 'label-bold'
      .form-check
        = f.check_box :time_tracking_limit_to_hours, class: 'form-check-input'
        = f.label :time_tracking_limit_to_hours, class: 'form-check-label' do
          = _('Limit display of time tracking units to hours.')
        .form-text.text-muted
          = _('Display time tracking in issues in total hours only.')
          = link_to _('What is time tracking?'), help_page_path('user/project/time_tracking.md'), target: '_blank', rel: 'noopener noreferrer'

  = f.submit _('Save changes'), class: "gl-button btn btn-confirm"