disable config validation (closes foodcoops#313)
This commit is contained in:
parent
8e04074cd3
commit
a594dffed2
3 changed files with 3 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue