2012-08-10 18:07:50 -04:00
|
|
|
= form_for @user, url: profile_update_path, remote: true, method: :put do |f|
|
2012-04-11 17:54:07 -04:00
|
|
|
%div
|
2012-04-10 01:51:08 -04:00
|
|
|
%h3 Application theme
|
|
|
|
%hr
|
|
|
|
.clearfix
|
2012-06-03 18:37:27 -04:00
|
|
|
= label_tag do
|
2012-04-10 01:51:08 -04:00
|
|
|
= f.radio_button :theme_id, 1
|
|
|
|
Default
|
2012-03-01 14:23:50 -05:00
|
|
|
|
2012-06-03 18:37:27 -04:00
|
|
|
= label_tag do
|
2012-04-10 01:51:08 -04:00
|
|
|
= f.radio_button :theme_id, 2
|
|
|
|
Classic
|
2012-06-11 13:52:32 -04:00
|
|
|
|
|
|
|
= label_tag do
|
|
|
|
= f.radio_button :theme_id, 3
|
|
|
|
Modern
|
2012-04-10 01:51:08 -04:00
|
|
|
%br
|
2012-03-01 14:23:50 -05:00
|
|
|
%h3 Code review
|
|
|
|
%hr
|
2012-01-29 16:59:12 -05:00
|
|
|
.row
|
2012-08-10 18:07:50 -04:00
|
|
|
%label.span3{for: "user_dark_scheme_false"}
|
2012-04-10 01:51:08 -04:00
|
|
|
.thumbnail
|
2012-08-10 18:07:50 -04:00
|
|
|
= image_tag "white.png", width: 260, class: "styled_image"
|
2012-04-10 01:51:08 -04:00
|
|
|
.caption
|
|
|
|
%h5
|
|
|
|
= f.radio_button :dark_scheme, false
|
|
|
|
White code preview
|
2012-08-10 18:07:50 -04:00
|
|
|
%label.span3{for: "user_dark_scheme_true"}
|
2012-04-10 01:51:08 -04:00
|
|
|
.thumbnail
|
2012-08-10 18:07:50 -04:00
|
|
|
= image_tag "dark.png", width: 260, class: "styled_image"
|
2012-04-10 01:51:08 -04:00
|
|
|
.caption
|
|
|
|
%h5
|
|
|
|
= f.radio_button :dark_scheme, true
|
|
|
|
Dark code preview
|
2011-12-20 15:47:09 -05:00
|
|
|
|
2012-06-03 18:37:27 -04:00
|
|
|
:javascript
|
|
|
|
$(function(){
|
2012-03-01 14:23:50 -05:00
|
|
|
$(".edit_user input").bind("click", function() {
|
|
|
|
$(".edit_user").submit();
|
|
|
|
});
|
|
|
|
})
|