45 lines
1,015 B
Plaintext
45 lines
1,015 B
Plaintext
= form_for @user, url: profile_update_path, remote: true, method: :put do |f|
|
|
%fieldset
|
|
%legend Application theme
|
|
.themes_opts
|
|
= label_tag do
|
|
.prev
|
|
= image_tag "gitlab_default.png"
|
|
= f.radio_button :theme_id, 1
|
|
Default
|
|
|
|
= label_tag do
|
|
.prev
|
|
= image_tag "gitlab_classic.png"
|
|
= f.radio_button :theme_id, 2
|
|
Classic
|
|
|
|
= label_tag do
|
|
.prev
|
|
= image_tag "gitlab_modern.png"
|
|
= f.radio_button :theme_id, 3
|
|
Modern
|
|
%br
|
|
.clearfix
|
|
|
|
%fieldset
|
|
%legend Code review
|
|
.themes_opts
|
|
= 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
|
|
|
|
:javascript
|
|
$(function(){
|
|
$(".edit_user input").bind("click", function() {
|
|
$(".edit_user").submit();
|
|
});
|
|
})
|