7754189187
Didn't bother with files in db/, config/, or features/
42 lines
1,007 B
Plaintext
42 lines
1,007 B
Plaintext
= form_for @user, url: profile_update_path, remote: true, method: :put do |f|
|
|
%div
|
|
%h3 Application theme
|
|
%hr
|
|
.clearfix
|
|
= label_tag do
|
|
= f.radio_button :theme_id, 1
|
|
Default
|
|
|
|
= label_tag do
|
|
= f.radio_button :theme_id, 2
|
|
Classic
|
|
|
|
= label_tag do
|
|
= f.radio_button :theme_id, 3
|
|
Modern
|
|
%br
|
|
%h3 Code review
|
|
%hr
|
|
.row
|
|
%label.span3{for: "user_dark_scheme_false"}
|
|
.thumbnail
|
|
= image_tag "white.png", width: 260, class: "styled_image"
|
|
.caption
|
|
%h5
|
|
= f.radio_button :dark_scheme, false
|
|
White code preview
|
|
%label.span3{for: "user_dark_scheme_true"}
|
|
.thumbnail
|
|
= image_tag "dark.png", width: 260, class: "styled_image"
|
|
.caption
|
|
%h5
|
|
= f.radio_button :dark_scheme, true
|
|
Dark code preview
|
|
|
|
:javascript
|
|
$(function(){
|
|
$(".edit_user input").bind("click", function() {
|
|
$(".edit_user").submit();
|
|
});
|
|
})
|