Skip to content

Commit

Permalink
CONTRIB-6117 - Done: CSV view import form layout change.
Browse files Browse the repository at this point in the history
  • Loading branch information
itamart committed Feb 3, 2016
1 parent 0424704 commit a5fc0a1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions view/csv/classes/importform.php
Expand Up @@ -45,17 +45,17 @@ public function definition() {
$view = $this->_view;
$mform = &$this->_form;

// Field settings.
$this->definition_field_settings();
// Csv content.
$this->definition_csv_content();

// Import options.
$this->definition_import_options();

// Csv settings.
$this->definition_csv_settings();

// Csv content.
$this->definition_csv_content();
// Field settings.
$this->definition_field_settings();

// Action buttons.
$this->add_action_buttons();
Expand Down Expand Up @@ -116,7 +116,6 @@ protected function definition_csv_settings() {
$view = $this->_view;

$mform->addElement('header', 'csvsettingshdr', get_string('csvsettings', 'dataformview_csv'));
$mform->setExpanded('csvsettingshdr');

// Delimiter.
$delimiters = csv_import_reader::get_delimiter_list();
Expand All @@ -140,7 +139,6 @@ protected function definition_csv_content() {

// CSV content header.
$mform->addElement('header', 'csvcontenthdr', get_string('csvcontent', 'dataformview_csv'));
$mform->setExpanded('csvcontenthdr');

// Upload file.
$mform->addElement('filepicker', 'importfile', get_string('uploadfile', 'dataformview_csv'));
Expand Down

0 comments on commit a5fc0a1

Please sign in to comment.