Work on settings

This commit is contained in:
magnolia-fan
2011-09-12 20:16:13 +04:00
parent 60cde9084f
commit 79f57959a8
6 changed files with 41 additions and 149 deletions
+23 -23
View File
@@ -1,65 +1,65 @@
%h1 Settings
%ul.tabs
%ul.tabs#settings-tabs
%li.active
%a{ :href => "#" } Account
%a{ :href => "#", :'data-tab' => 'account' } Account
%li
%a{ :href => "#" } Site
%a{ :href => "#", :'data-tab' => 'site' } Site
%li
%a{ :href => "#" } Music
%a{ :href => "#", :'data-tab' => 'music' } Music
%li
%a{ :href => "#" } Last.fm
%a{ :href => "#", :'data-tab' => 'lastfm' } Last.fm
.forms
.forms#settings-forms
.form.account
%form
%fieldset
.clearfix
%label{ :for => "input-username" } Username
%label{ :for => "name" } Username
.input
%input.xlarge#input-username{ :name => "input-username", :size => 30, :type => "text" }
%input.xlarge#name{ :name => "name", :size => 30, :type => "text", :value => @user.name }
.clearfix
%label{ :for => "input-email" } Email
%label{ :for => "email" } Email
.input
%input.xlarge#input-email{ :name => "input-email", :size => 30, :type => "text" }
%input.xlarge#email{ :name => "email", :size => 30, :type => "text", :value => @user.email }
.form.site
%form
%fieldset
.clearfix
%label{ :for => "select-lang" } Language
%label{ :for => "lang" } Language
.input
%select.medium#select-lang{ :name => "select-lang" }
%option English
%option Русский
%select.medium#lang{ :name => "lang" }
%option{ :value => "en", :selected => (@user.lang == 'en') } English
%option{ :value => "ru", :selected => (@user.lang == 'ru') } Русский
.form.music
%form
%fieldset
.clearfix
%label{ :for => "select-lang" } Show
%label{ :for => "album_types" } Show
.input
%ul.inputs-list
%li
%label.disabled
%input{ :name => "show-album", :type => "checkbox", :checked => "checked", :disabled => "disabled" }
%input{ :name => "show_album", :type => "checkbox", :checked => "checked", :disabled => "disabled" }
%span Albums
%li
%label
%input{ :name => "show-single", :type => "checkbox" }
%input{ :name => "show_single", :type => "checkbox", :disabled => "disabled" }
%span Singles
%li
%label
%input{ :name => "show-live", :type => "checkbox" }
%input{ :name => "show_live", :type => "checkbox", :disabled => "disabled" }
%span Live shows
%li
%label
%input{ :name => "show-bootleg", :type => "checkbox" }
%input{ :name => "show_bootleg", :type => "checkbox", :disabled => "disabled" }
%span Bootlegs
.form.lastfm
%form
%fieldset
.clearfix
%label{ :for => "input-username" } Username
%label{ :for => "lastfm_username" } Username
.input
.input-append
%input#input-username{ :name => "input-username", :type => "text", :size => 30 }
%label.add-on
%input{ :type => "checkbox" }
%input#lastfm_username{ :name => "lastfm_username", :type => "text", :disabled => "disabled", :value => @user.lastfm_username }
%label.add-on.disabled{ :class => ('active' unless @user.lastfm_key.nil?) }
%input{ :type => "checkbox", :disabled => "disabled", :checked => (!@user.lastfm_key.nil?) }