Form submit ability

This commit is contained in:
magnolia-fan
2011-09-14 23:51:51 +04:00
parent 442995dbc9
commit 2f31a6fd65
8 changed files with 47 additions and 65 deletions
+9 -11
View File
@@ -11,7 +11,7 @@
.forms#settings-forms
.form.account
%form
%form{ :action => "/", :method => 'post' }
%fieldset
.clearfix
%label{ :for => "name" }= I18n.t 'settings.username'
@@ -42,20 +42,20 @@
.input
%ul.inputs-list
%li
%label.disabled
%input{ :name => "show_album", :type => "checkbox", :checked => "checked", :disabled => "disabled" }
%label{ :for => "show_album" }
%input#show_album{ :name => "show[album]", :type => "checkbox", :checked => "checked" }
%span= I18n.t 'settings.music.albums'
%li
%label
%input{ :name => "show_single", :type => "checkbox", :disabled => "disabled" }
%label{ :for => "show_single" }
%input#show_single{ :name => "show[single]", :type => "checkbox" }
%span= I18n.t 'settings.music.singles'
%li
%label
%input{ :name => "show_live", :type => "checkbox", :disabled => "disabled" }
%label.disabled{ :for => "show_live" }
%input#show_live{ :name => "show[live]", :type => "checkbox", :disabled => "disabled" }
%span= I18n.t 'settings.music.live'
%li
%label
%input{ :name => "show_bootleg", :type => "checkbox", :disabled => "disabled" }
%label.disabled{ :for => "show_bootleg" }
%input#show_bootleg{ :name => "show[bootleg]", :type => "checkbox", :disabled => "disabled" }
%span= I18n.t 'settings.music.bootlegs'
.actions
%input.btn.primary{ :type => "submit", :value => I18n.t('settings.save') }
@@ -68,5 +68,3 @@
%input.borderless#lastfm_username{ :type => "text", :readonly => "readonly", :value => (@user.lastfm_username || I18n.t('settings.not_connected')) }
%span.help-inline
%input.btn{ :type => "submit", :value => I18n.t('settings.connect') }
.actions
%input.btn.primary{ :type => "submit", :value => I18n.t('settings.save') }