Settings template updated
This commit is contained in:
parent
567e2d90c6
commit
442995dbc9
@ -8,4 +8,15 @@
|
|||||||
.lastfm {
|
.lastfm {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
.borderless {
|
||||||
|
border: none !important;
|
||||||
|
background: transparent !important;
|
||||||
|
-webkit-transition: none !important;
|
||||||
|
-moz-transition: none !important;
|
||||||
|
transition: none !important;
|
||||||
|
-webkit-box-shadow: none !important;
|
||||||
|
-moz-box-shadow: none !important;
|
||||||
|
box-shadow: none !important;
|
||||||
|
margin-top: 2px !important;
|
||||||
|
}
|
||||||
}
|
}
|
@ -21,6 +21,8 @@
|
|||||||
%label{ :for => "email" }= I18n.t 'settings.email'
|
%label{ :for => "email" }= I18n.t 'settings.email'
|
||||||
.input
|
.input
|
||||||
%input.xlarge#email{ :name => "email", :size => 30, :type => "text", :value => @user.email }
|
%input.xlarge#email{ :name => "email", :size => 30, :type => "text", :value => @user.email }
|
||||||
|
.actions
|
||||||
|
%input.btn.primary{ :type => "submit", :value => I18n.t('settings.save') }
|
||||||
.form.site
|
.form.site
|
||||||
%form
|
%form
|
||||||
%fieldset
|
%fieldset
|
||||||
@ -30,11 +32,13 @@
|
|||||||
%select.medium#lang{ :name => "lang" }
|
%select.medium#lang{ :name => "lang" }
|
||||||
%option{ :value => "en", :selected => (@user.lang == 'en') }= I18n.t 'settings.lang.en'
|
%option{ :value => "en", :selected => (@user.lang == 'en') }= I18n.t 'settings.lang.en'
|
||||||
%option{ :value => "ru", :selected => (@user.lang == 'ru') }= I18n.t 'settings.lang.ru'
|
%option{ :value => "ru", :selected => (@user.lang == 'ru') }= I18n.t 'settings.lang.ru'
|
||||||
|
.actions
|
||||||
|
%input.btn.primary{ :type => "submit", :value => I18n.t('settings.save') }
|
||||||
.form.music
|
.form.music
|
||||||
%form
|
%form
|
||||||
%fieldset
|
%fieldset
|
||||||
.clearfix
|
.clearfix
|
||||||
%label{ :for => "album_types" }= I18n.t 'settings.show'
|
%label{ :for => "album_types" }= I18n.t 'settings.music.title'
|
||||||
.input
|
.input
|
||||||
%ul.inputs-list
|
%ul.inputs-list
|
||||||
%li
|
%li
|
||||||
@ -53,13 +57,16 @@
|
|||||||
%label
|
%label
|
||||||
%input{ :name => "show_bootleg", :type => "checkbox", :disabled => "disabled" }
|
%input{ :name => "show_bootleg", :type => "checkbox", :disabled => "disabled" }
|
||||||
%span= I18n.t 'settings.music.bootlegs'
|
%span= I18n.t 'settings.music.bootlegs'
|
||||||
|
.actions
|
||||||
|
%input.btn.primary{ :type => "submit", :value => I18n.t('settings.save') }
|
||||||
.form.lastfm
|
.form.lastfm
|
||||||
%form
|
%form
|
||||||
%fieldset
|
%fieldset
|
||||||
.clearfix
|
.clearfix
|
||||||
%label{ :for => "lastfm_username" }= I18n.t 'settings.username'
|
%label{ :for => "lastfm_username" }= I18n.t 'settings.username'
|
||||||
.input
|
.input
|
||||||
.input-append
|
%input.borderless#lastfm_username{ :type => "text", :readonly => "readonly", :value => (@user.lastfm_username || I18n.t('settings.not_connected')) }
|
||||||
%input#lastfm_username{ :name => "lastfm_username", :type => "text", :disabled => "disabled", :value => @user.lastfm_username }
|
%span.help-inline
|
||||||
%label.add-on.disabled{ :class => ('active' unless @user.lastfm_key.nil?) }
|
%input.btn{ :type => "submit", :value => I18n.t('settings.connect') }
|
||||||
%input{ :type => "checkbox", :disabled => "disabled", :checked => (!@user.lastfm_key.nil?) }
|
.actions
|
||||||
|
%input.btn.primary{ :type => "submit", :value => I18n.t('settings.save') }
|
@ -25,7 +25,11 @@ en:
|
|||||||
music: "Music"
|
music: "Music"
|
||||||
lastfm: "Last.fm"
|
lastfm: "Last.fm"
|
||||||
music:
|
music:
|
||||||
|
title: "Show"
|
||||||
albums: "Albums"
|
albums: "Albums"
|
||||||
|
singles: "Singles"
|
||||||
|
live: "Live"
|
||||||
|
bootlegs: "Bootlegs"
|
||||||
username: "Username"
|
username: "Username"
|
||||||
email: "Email"
|
email: "Email"
|
||||||
lang:
|
lang:
|
||||||
|
@ -25,7 +25,11 @@ ru:
|
|||||||
music: "Музыка"
|
music: "Музыка"
|
||||||
lastfm: "Last.fm"
|
lastfm: "Last.fm"
|
||||||
music:
|
music:
|
||||||
|
title: "Показывать"
|
||||||
albums: "Альбомы"
|
albums: "Альбомы"
|
||||||
|
singles: "Синглы"
|
||||||
|
live: "Живые выступления"
|
||||||
|
bootlegs: "Бутлеги"
|
||||||
username: "Имя"
|
username: "Имя"
|
||||||
email: "Почта"
|
email: "Почта"
|
||||||
lang:
|
lang:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user