start of making nickname optional
This commit is contained in:
parent
a77c3b59b1
commit
e4f0a1e3ed
33 changed files with 92 additions and 48 deletions
|
|
@ -1,4 +1,5 @@
|
|||
= f.input :nick
|
||||
- unless FoodsoftConfig[:use_nick] == false
|
||||
= f.input :nick
|
||||
= f.input :first_name
|
||||
= f.input :last_name
|
||||
= f.input :email
|
||||
|
|
@ -19,7 +20,8 @@
|
|||
= 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'] }
|
||||
- if FoodsoftConfig[:use_nick]
|
||||
= 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'}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue