BigW Consortium Gitlab

design.html.haml 1.13 KB
Newer Older
1 2 3 4 5 6
%h3.page-title
  My appearance settings
%p.light
  Appearance settings saved to your profile and available across all devices
%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
randx committed
36
    %br
37 38
    .clearfix

39 40 41
  %fieldset.code-preview-theme
    %legend
      Code preview theme
Dmitriy Zaporozhets committed
42
    .code_highlight_opts
43 44 45 46 47 48
      - 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