Skip to content

Commit

Permalink
A new format output for adding new fields (#3747)
Browse files Browse the repository at this point in the history
* A new format output for adding new fields

* Replace info with comment
  • Loading branch information
LOBsTerr authored and jmolivas committed Jan 26, 2018
1 parent 0b6f4c4 commit 4573260
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Command/Shared/FormTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,16 @@ public function formQuestion()
}
sort($input_types);

$this->getIo()->writeln(sprintf(
$this->trans('commands.common.messages.available-field-types'), implode(', ', $input_types)
));
$this->getIo()->newLine();

$inputs = [];
$fieldSets = [];
while (true) {
$this->getIo()->comment($this->trans('commands.common.questions.inputs.new-field'));
$this->getIo()->newLine();
$input_type = $this->getIo()->choiceNoList(
$this->trans('commands.common.questions.inputs.type'),
$input_types,
Expand Down Expand Up @@ -174,6 +181,8 @@ public function formQuestion()
'fieldset' => $inputFieldSet,
]
);

$this->getIo()->newLine();
}

return $inputs;
Expand Down

0 comments on commit 4573260

Please sign in to comment.