diff --git a/core/config.class.inc.php b/core/config.class.inc.php index a72c952b0..51ef33192 100644 --- a/core/config.class.inc.php +++ b/core/config.class.inc.php @@ -151,6 +151,39 @@ class Config 'source_of_value' => '', 'show_in_conf_sample' => false, ), + // Levels that trigger a confirmation in the CSV import/synchro wizard + 'csv_import_min_object_confirmation' => array( + 'type' => 'integer', + 'description' => 'Minimum number of objects to check for the confirmation percentages', + 'default' => 3, + 'value' => 3, + 'source_of_value' => '', + 'show_in_conf_sample' => false, + ), + 'csv_import_errors_percentage' => array( + 'type' => 'integer', + 'description' => 'Percentage of errors that trigger a confirmation in the CSV import', + 'default' => 50, + 'value' => 50, + 'source_of_value' => '', + 'show_in_conf_sample' => false, + ), + 'csv_import_modifications_percentage' => array( + 'type' => 'integer', + 'description' => 'Percentage of modifications that trigger a confirmation in the CSV import', + 'default' => 50, + 'value' => 50, + 'source_of_value' => '', + 'show_in_conf_sample' => false, + ), + 'csv_import_creations_percentage' => array( + 'type' => 'integer', + 'description' => 'Percentage of creations that trigger a confirmation in the CSV import', + 'default' => 50, + 'value' => 50, + 'source_of_value' => '', + 'show_in_conf_sample' => false, + ), ); public function IsProperty($sPropCode) diff --git a/dictionaries/dictionary.itop.ui.php b/dictionaries/dictionary.itop.ui.php index a213e742c..db93edd04 100644 --- a/dictionaries/dictionary.itop.ui.php +++ b/dictionaries/dictionary.itop.ui.php @@ -336,6 +336,7 @@ Dict::Add('EN US', 'English', 'English', array( 'UI:Button:Cancel' => 'Cancel', 'UI:Button:Apply' => 'Apply', 'UI:Button:Back' => ' << Back ', + 'UI:Button:Restart' => ' |<< Restart ', 'UI:Button:Next' => ' Next >> ', 'UI:Button:Finish' => ' Finish ', 'UI:Button:DoImport' => ' Run the Import ! ', diff --git a/dictionaries/fr.dictionary.itop.ui.php b/dictionaries/fr.dictionary.itop.ui.php index 3ce4c7df0..e189be551 100644 --- a/dictionaries/fr.dictionary.itop.ui.php +++ b/dictionaries/fr.dictionary.itop.ui.php @@ -338,6 +338,7 @@ Dict::Add('FR FR', 'French', 'Français', array( 'UI:Button:Cancel' => 'Annuler', 'UI:Button:Apply' => 'Appliquer', 'UI:Button:Back' => ' << Retour ', + 'UI:Button:Restart' => ' |<< Recommencer ', 'UI:Button:Next' => ' Suite >> ', 'UI:Button:Finish' => ' Terminer ', 'UI:Button:DoImport' => ' Lancer l\'import ! ', diff --git a/pages/csvimport.php b/pages/csvimport.php index 92a7409fd..d2ff49f00 100644 --- a/pages/csvimport.php +++ b/pages/csvimport.php @@ -524,6 +524,8 @@ try $sHtml .= "
'.$sMessage.'
'); + $oPage->add('Are you sure you want to do this ?
'); + $oPage->add(''); + $oPage->add(''); + $oPage->add('
'); + $oPage->add(' '); $oPage->add('
'); $oPage->add(''); $oPage->add(''); @@ -746,6 +898,13 @@ EOF } + function CSVRestart() + { + $('input[name=step]').val(1); + $('#wizForm').submit(); + + } + var ajax_request = null; function DoMapping()