Damn checkboxes
This commit is contained in:
@@ -43,19 +43,19 @@
|
||||
%ul.inputs-list
|
||||
%li
|
||||
%label{ :for => "show_album" }
|
||||
%input#show_album{ :name => "show[album]", :type => "checkbox", :checked => "checked" }
|
||||
%input#show_album{ :name => "show[album]", :type => "checkbox", :checked => @user.music.include?(:album) }
|
||||
%span= I18n.t 'settings.music.albums'
|
||||
%li
|
||||
%label{ :for => "show_single" }
|
||||
%input#show_single{ :name => "show[single]", :type => "checkbox" }
|
||||
%input#show_single{ :name => "show[single]", :type => "checkbox", :checked => @user.music.include?(:single) }
|
||||
%span= I18n.t 'settings.music.singles'
|
||||
%li
|
||||
%label.disabled{ :for => "show_live" }
|
||||
%input#show_live{ :name => "show[live]", :type => "checkbox", :disabled => "disabled" }
|
||||
%input#show_live{ :name => "show[live]", :type => "checkbox", :disabled => "disabled", :checked => @user.music.include?(:live) }
|
||||
%span= I18n.t 'settings.music.live'
|
||||
%li
|
||||
%label.disabled{ :for => "show_bootleg" }
|
||||
%input#show_bootleg{ :name => "show[bootleg]", :type => "checkbox", :disabled => "disabled" }
|
||||
%input#show_bootleg{ :name => "show[bootleg]", :type => "checkbox", :disabled => "disabled", :checked => @user.music.include?(:bootleg) }
|
||||
%span= I18n.t 'settings.music.bootlegs'
|
||||
.actions
|
||||
%input.btn.primary{ :type => "submit", :value => I18n.t('settings.save') }
|
||||
|
||||
Reference in New Issue
Block a user