1
0
Fork 0
oldhaven/app/views/user/_settings.html.haml

65 lines
2.4 KiB
Plaintext

%h1 Settings
%ul.tabs#settings-tabs
%li.active
%a{ :href => "#", :'data-tab' => 'account' } Account
%li
%a{ :href => "#", :'data-tab' => 'site' } Site
%li
%a{ :href => "#", :'data-tab' => 'music' } Music
%li
%a{ :href => "#", :'data-tab' => 'lastfm' } Last.fm
.forms#settings-forms
.form.account
%form
%fieldset
.clearfix
%label{ :for => "name" } Username
.input
%input.xlarge#name{ :name => "name", :size => 30, :type => "text", :value => @user.name }
.clearfix
%label{ :for => "email" } Email
.input
%input.xlarge#email{ :name => "email", :size => 30, :type => "text", :value => @user.email }
.form.site
%form
%fieldset
.clearfix
%label{ :for => "lang" } Language
.input
%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 => "album_types" } Show
.input
%ul.inputs-list
%li
%label.disabled
%input{ :name => "show_album", :type => "checkbox", :checked => "checked", :disabled => "disabled" }
%span Albums
%li
%label
%input{ :name => "show_single", :type => "checkbox", :disabled => "disabled" }
%span Singles
%li
%label
%input{ :name => "show_live", :type => "checkbox", :disabled => "disabled" }
%span Live shows
%li
%label
%input{ :name => "show_bootleg", :type => "checkbox", :disabled => "disabled" }
%span Bootlegs
.form.lastfm
%form
%fieldset
.clearfix
%label{ :for => "lastfm_username" } 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?) }