design.html.haml 1.13 KB
Newer Older
1
= form_for @user, url: profile_update_path, remote: true, method: :put do |f|
2 3 4 5 6 7
  %fieldset.application-theme
    %legend
      Application theme
      .update-feedback.hide
        %i.icon-ok
        Saved
8
    .themes_opts
9
      = label_tag do
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
10
        .prev.default
randx's avatar
randx committed
11 12
        = f.radio_button :theme_id, 1
        Default
13

14
      = label_tag do
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
15
        .prev.classic
randx's avatar
randx committed
16 17
        = f.radio_button :theme_id, 2
        Classic
18 19

      = label_tag do
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
20
        .prev.modern
21 22
        = f.radio_button :theme_id, 3
        Modern
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
23 24 25 26 27 28 29 30 31 32

      = label_tag do
        .prev.gray
        = f.radio_button :theme_id, 4
        SlateGray

      = label_tag do
        .prev.violet
        = f.radio_button :theme_id, 5
        Violet
randx's avatar
randx committed
33
    %br
34 35
    .clearfix

36 37 38 39 40 41
  %fieldset.code-preview-theme
    %legend
      Code preview theme
      .update-feedback.hide
        %i.icon-ok
        Saved
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
42
    .code_highlight_opts
43 44 45 46 47 48 49 50 51 52
      = label_tag do
        .prev
          = image_tag "white.png"
        = f.radio_button :dark_scheme, false
        White code preview
      = label_tag do
        .prev
          = image_tag "dark.png"
        = f.radio_button :dark_scheme, true
        Dark code preview