65 lines
2.7 KiB
Plaintext
65 lines
2.7 KiB
Plaintext
%h1 Settings
|
|
%ul.tabs#settings-tabs
|
|
%li.active
|
|
%a{ :href => "#", :'data-tab' => 'account' }= I18n.t 'settings.tab.account'
|
|
%li
|
|
%a{ :href => "#", :'data-tab' => 'site' }= I18n.t 'settings.tab.site'
|
|
%li
|
|
%a{ :href => "#", :'data-tab' => 'music' }= I18n.t 'settings.tab.music'
|
|
%li
|
|
%a{ :href => "#", :'data-tab' => 'lastfm' }= I18n.t 'settings.tab.lastfm'
|
|
|
|
.forms#settings-forms
|
|
.form.account
|
|
%form
|
|
%fieldset
|
|
.clearfix
|
|
%label{ :for => "name" }= I18n.t 'settings.username'
|
|
.input
|
|
%input.xlarge#name{ :name => "name", :size => 30, :type => "text", :value => @user.name }
|
|
.clearfix
|
|
%label{ :for => "email" }= I18n.t 'settings.email'
|
|
.input
|
|
%input.xlarge#email{ :name => "email", :size => 30, :type => "text", :value => @user.email }
|
|
.form.site
|
|
%form
|
|
%fieldset
|
|
.clearfix
|
|
%label{ :for => "lang" }= I18n.t 'settings.lang.title'
|
|
.input
|
|
%select.medium#lang{ :name => "lang" }
|
|
%option{ :value => "en", :selected => (@user.lang == 'en') }= I18n.t 'settings.lang.en'
|
|
%option{ :value => "ru", :selected => (@user.lang == 'ru') }= I18n.t 'settings.lang.ru'
|
|
.form.music
|
|
%form
|
|
%fieldset
|
|
.clearfix
|
|
%label{ :for => "album_types" }= I18n.t 'settings.show'
|
|
.input
|
|
%ul.inputs-list
|
|
%li
|
|
%label.disabled
|
|
%input{ :name => "show_album", :type => "checkbox", :checked => "checked", :disabled => "disabled" }
|
|
%span= I18n.t 'settings.music.albums'
|
|
%li
|
|
%label
|
|
%input{ :name => "show_single", :type => "checkbox", :disabled => "disabled" }
|
|
%span= I18n.t 'settings.music.singles'
|
|
%li
|
|
%label
|
|
%input{ :name => "show_live", :type => "checkbox", :disabled => "disabled" }
|
|
%span= I18n.t 'settings.music.live'
|
|
%li
|
|
%label
|
|
%input{ :name => "show_bootleg", :type => "checkbox", :disabled => "disabled" }
|
|
%span= I18n.t 'settings.music.bootlegs'
|
|
.form.lastfm
|
|
%form
|
|
%fieldset
|
|
.clearfix
|
|
%label{ :for => "lastfm_username" }= I18n.t 'settings.username'
|
|
.input
|
|
.input-append
|
|
%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?) } |