Skip to content

Commit

Permalink
Move API token field first in the configuration panel
Browse files Browse the repository at this point in the history
  • Loading branch information
ioannis-papikas committed Jun 13, 2019
1 parent b6350ea commit 448fff8
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions esatisfaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,24 @@ public function displayForm()
);

$fields_form[3]['form'] = array(
'legend' => array(
'title' => $this->l('API Authentication Token'),
),
'input' => array(
array(
'type' => 'text',
'label' => $this->l('Token'),
'name' => 'ESATISFACTION_AUTH',
'size' => 45,
),
),
'submit' => array(
'title' => $this->l('Save'),
'class' => 'btn btn-default',
),
);

$fields_form[4]['form'] = array(
'legend' => array(
'title' => $this->l('After Delivery Questionnaire'),
),
Expand Down Expand Up @@ -292,7 +310,7 @@ public function displayForm()
'class' => 'btn btn-default',
),
);
$fields_form[4]['form'] = array(
$fields_form[5]['form'] = array(
'legend' => array(
'title' => $this->l('Store Pick Up Questionnaire'),
),
Expand Down Expand Up @@ -346,24 +364,6 @@ public function displayForm()
),
);

$fields_form[5]['form'] = array(
'legend' => array(
'title' => $this->l('API Authentication Token'),
),
'input' => array(
array(
'type' => 'text',
'label' => $this->l('Token'),
'name' => 'ESATISFACTION_AUTH',
'size' => 45,
),
),
'submit' => array(
'title' => $this->l('Save'),
'class' => 'btn btn-default',
),
);

$helper = new HelperForm();

// Module, token and currentIndex
Expand Down

0 comments on commit 448fff8

Please sign in to comment.