1
0

show.html.haml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. - content_for :page_title do
  2. = t('privacy.title')
  3. - content_for :heading do
  4. %h2= t('settings.profile')
  5. = render partial: 'settings/shared/profile_navigation'
  6. = simple_form_for @account, url: settings_privacy_path, html: { method: :put } do |f|
  7. = render 'shared/error_messages', object: @account
  8. %p.lead= t('privacy.hint_html')
  9. %h4= t('privacy.reach')
  10. %p.lead= t('privacy.reach_hint_html')
  11. .fields-group
  12. = f.input :discoverable, as: :boolean, wrapper: :with_label, recommended: true
  13. .fields-group
  14. = f.input :unlocked, as: :boolean, wrapper: :with_label
  15. %h4= t('privacy.search')
  16. %p.lead= t('privacy.search_hint_html')
  17. .fields-group
  18. = f.input :indexable, as: :boolean, wrapper: :with_label
  19. = f.simple_fields_for :settings, current_user.settings do |ff|
  20. .fields-group
  21. = ff.input :indexable, wrapper: :with_label
  22. %h4= t('privacy.privacy')
  23. %p.lead= t('privacy.privacy_hint_html')
  24. .fields-group
  25. = f.input :show_collections, as: :boolean, wrapper: :with_label
  26. = f.simple_fields_for :settings, current_user.settings do |ff|
  27. .fields-group
  28. = ff.input :show_application, wrapper: :with_label
  29. .actions
  30. = f.button :button, t('generic.save_changes'), type: :submit