Skip to content

Commit

Permalink
Convert to radio and add translations
Browse files Browse the repository at this point in the history
  • Loading branch information
JoryHogeveen committed Dec 21, 2023
1 parent f94e539 commit 1be9997
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions vatchecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,20 +337,32 @@ protected function getConfigForm()
],
],
[
'type' => 'select',
'type' => 'radio',
'label' => $this->l( 'Offline validation' ),
'name' => 'VATCHECKER_ALLOW_OFFLINE',
'required' => false,
'desc' => $this->l( 'What logic should the module use when the VIES database is offline?' ),
'options' => [
'query' => [
['id'=>0,'name'=>"Always mark VAT as invalid"],
['id'=>1,'name'=>"Always mark VAT as valid"],
['id'=>2,'name'=>"Use previous validation value, if not previously validated mark VAT invalid"],
['id'=>3,'name'=>"Use previous validation value, if not previously validated mark VAT valid"]
'values' => [
[
'id' => 'invalid',
'value' => 0,
'label' => $this->l('Always mark VAT as invalid')
],
[
'id' => 'valid',
'value' => 1,
'label' => $this->l('Always mark VAT as valid')
],
[
'id' => 'exists_invalid',
'value' => 2,
'label' => $this->l('Use previous validation value, if not previously validated mark VAT as invalid')
],
'id' => 'id',
'name' => 'name',
[
'id' => 'exists_valid',
'value' => 3,
'label' => $this->l('Use previous validation value, if not previously validated mark VAT as valid')
]
],
],
[
Expand Down

0 comments on commit 1be9997

Please sign in to comment.