BigW Consortium Gitlab

design.html.haml 1.23 KB
Newer Older
1
%h3.page-title
2
  Design Settings
3
%p.light
4
  Appearance settings will be saved to your profile and made available across all devices.
5 6
%hr

7
= form_for @user, url: profile_path, remote: true, method: :put do |f|
8 9 10
  %fieldset.application-theme
    %legend
      Application theme
11
    .themes_opts
12
      = label_tag do
Dmitriy Zaporozhets committed
13
        .prev.default
randx committed
14 15
        = f.radio_button :theme_id, 1
        Default
16

17
      = label_tag do
Dmitriy Zaporozhets committed
18
        .prev.classic
randx committed
19 20
        = f.radio_button :theme_id, 2
        Classic
21 22

      = label_tag do
Dmitriy Zaporozhets committed
23
        .prev.modern
24 25
        = f.radio_button :theme_id, 3
        Modern
Dmitriy Zaporozhets committed
26 27 28 29

      = label_tag do
        .prev.gray
        = f.radio_button :theme_id, 4
30
        Gray
Dmitriy Zaporozhets committed
31 32 33 34 35

      = label_tag do
        .prev.violet
        = f.radio_button :theme_id, 5
        Violet
36 37 38 39 40

      = label_tag do
        .prev.blue
        = f.radio_button :theme_id, 6
        Blue
randx committed
41
    %br
42 43
    .clearfix

44 45 46
  %fieldset.code-preview-theme
    %legend
      Code preview theme
Dmitriy Zaporozhets committed
47
    .code_highlight_opts
48 49 50 51 52 53
      - color_schemes.each do |color_scheme_id, color_scheme|
        = label_tag do
          .prev
            = image_tag "#{color_scheme}-scheme-preview.png"
          = f.radio_button :color_scheme_id, color_scheme_id
          = color_scheme.gsub(/[-_]+/, ' ').humanize