disable config validation (closes foodcoops#313)

This commit is contained in:
wvengen 2014-09-30 15:09:47 +02:00
parent 8e04074cd3
commit a594dffed2
3 changed files with 3 additions and 7 deletions

View File

@ -1,6 +1,7 @@
- title t('admin.configs.tabs.title'), false
= simple_form_for :config, method: :patch do |f|
-# disable validations, because browsers can't handle inputs hidden in another tab
= simple_form_for :config, method: :patch, html: {novalidate: true} do |f|
= render 'tabs', url: nil

View File

@ -225,6 +225,7 @@ class FoodsoftConfig
currency_unit: '€',
currency_space: true,
foodsoft_url: 'https://github.com/foodcoops/foodsoft',
contact: {}, # avoid errors when undefined
# The following keys cannot, by default, be set by foodcoops themselves.
protected: {
multi_coop_install: true,

View File

@ -8,13 +8,7 @@ default: &defaults
multi_coop_install: false
default_scope: 'f'
name: FC Minimal
contact:
email: fc@minimal.test
# required by configuration form (but otherwise not)
homepage: http://www.minimal.test/
# true by default to keep compat with older installations, but test with false here
use_nick: false