cleanup of profile layout
This commit is contained in:
parent
6569579c02
commit
c48ce138f3
3 changed files with 28 additions and 39 deletions
|
@ -6,37 +6,30 @@
|
|||
= f.input :password, :required => f.object.new_record?
|
||||
= f.input :password_confirmation
|
||||
|
||||
.settings
|
||||
%h4
|
||||
=t 'simple_form.labels.settings.settings_groups'
|
||||
= f.simple_fields_for :settings_attributes do |s|
|
||||
= f.simple_fields_for :settings_attributes do |s|
|
||||
= s.simple_fields_for :profile, defaults: { inline_label: true } do |profile|
|
||||
= profile.input 'language', as: :select, collection: available_locales, required: false, selected: f.object.settings.profile['language']
|
||||
|
||||
.settings
|
||||
.settings-group
|
||||
= s.simple_fields_for :profile, defaults: { inline_label: true } do |profile|
|
||||
|
||||
.settings-group
|
||||
%div{class: 'control-group h_wrapper'}
|
||||
%h5{class: 'control-label'}
|
||||
= t 'simple_form.labels.settings.settings_group.profile'
|
||||
%h5{class: 'controls'}
|
||||
= t 'simple_form.labels.settings.settings_group.privacy'
|
||||
= profile.input 'phone_is_public', as: :boolean, label: false, input_html: { checked: f.object.settings.profile['phone_is_public'] }
|
||||
= profile.input 'email_is_public', as: :boolean, label: false, input_html: { checked: f.object.settings.profile['email_is_public'] }
|
||||
= profile.input 'name_is_public', as: :boolean, label: false, input_html: { checked: f.object.settings.profile['name_is_public'] }
|
||||
|
||||
= s.simple_fields_for :profile, defaults: { inline_label: true } do |profile|
|
||||
= profile.input 'language', as: :select, collection: available_locales, required: false, selected: f.object.settings.profile['language']
|
||||
= profile.input 'phone_is_public', as: :boolean, label: false, input_html: { checked: f.object.settings.profile['phone_is_public'] }
|
||||
= profile.input 'email_is_public', as: :boolean, label: false, input_html: { checked: f.object.settings.profile['email_is_public'] }
|
||||
= profile.input 'name_is_public', as: :boolean, label: false, input_html: { checked: f.object.settings.profile['name_is_public'] }
|
||||
.settings-group
|
||||
%div{class: 'control-group'}
|
||||
%h5{class: 'controls'}
|
||||
= t 'simple_form.labels.settings.settings_group.messages'
|
||||
|
||||
.settings-group
|
||||
%div{class: 'control-group'}
|
||||
%h5{class: 'control-label'}
|
||||
=t 'simple_form.labels.settings.settings_group.messages'
|
||||
|
||||
= s.simple_fields_for :messages, defaults: { inline_label: true, label: false } do |messages|
|
||||
= messages.input 'send_as_email', as: :boolean, input_html: { checked: f.object.settings.messages['send_as_email'] }
|
||||
|
||||
.settings-group
|
||||
%div{class: 'control-group'}
|
||||
%h5{class: 'control-label'}
|
||||
= t 'simple_form.labels.settings.settings_group.notify'
|
||||
|
||||
= s.simple_fields_for :notify, defaults: { inline_label: true, label: false } do |notify|
|
||||
= notify.input 'order_finished', as: :boolean, input_html: { checked: f.object.settings.notify['order_finished'] }
|
||||
= notify.input 'negative_balance', as: :boolean, input_html: { checked: f.object.settings.notify['negative_balance'] }
|
||||
= notify.input 'upcoming_tasks', as: :boolean, input_html: { checked: f.object.settings.notify['upcoming_tasks'] }
|
||||
= s.simple_fields_for :messages, defaults: { inline_label: true, label: false } do |messages|
|
||||
= messages.input 'send_as_email', as: :boolean, input_html: { checked: f.object.settings.messages['send_as_email'] }
|
||||
= s.simple_fields_for :notify, defaults: { inline_label: true, label: false } do |notify|
|
||||
= notify.input 'order_finished', as: :boolean, input_html: { checked: f.object.settings.notify['order_finished'] }
|
||||
= notify.input 'negative_balance', as: :boolean, input_html: { checked: f.object.settings.notify['negative_balance'] }
|
||||
= notify.input 'upcoming_tasks', as: :boolean, input_html: { checked: f.object.settings.notify['upcoming_tasks'] }
|
||||
|
|
@ -1621,10 +1621,8 @@ de:
|
|||
one: Arbeitsgruppe
|
||||
other: Arbeitsgruppen
|
||||
settings:
|
||||
settings_groups: Einstellungen
|
||||
settings_group:
|
||||
profile: Porfil
|
||||
notify: Benachrichtigungen
|
||||
privacy:
|
||||
messages: Nachrichten
|
||||
profile:
|
||||
language: Sprache
|
||||
|
|
|
@ -1624,10 +1624,8 @@ en:
|
|||
one: Workgroup
|
||||
other: Workgroups
|
||||
settings:
|
||||
settings_groups: Preferences
|
||||
settings_group:
|
||||
profile: Porfile
|
||||
notify: Notifications
|
||||
privacy: Privacy
|
||||
messages: Messages
|
||||
profile:
|
||||
language: Language
|
||||
|
|
Loading…
Reference in a new issue