22 if (
$profile_id) redirect(
"data_import_field_mapping?import_profile_id=$profile_id");
31 redirect(
"data_import_field_mapping");
60 $form->hide(
"class",
"import_profile_id");
66 $form->readonly(
"client_field");
67 $form->getRenderer(
"client_field")->template =
"prettify";
73 $spreadsheet->button(
"Clear Field Mapping",
"/action/data_sync/clear_mapping?import_profile_id={$profile_id}");
93 <script type=
"text/javascript" src=
"/components/data_sync/js/data_sync_profile_manager.js"></script>
94 <script type=
"text/javascript">
96 var importProfileManager;
99 window.addEvent(
'load',
function()
101 importProfileManager =
new DataImportProfileManager(
"{$class}", {
$profile_id});
109 <div
class=
"tab_border">
114 <p
class=
'warning'><i
class=
'fa-fw fas fa-exclamation-triangle'></i> You need
to set the <b>Matching</b> flag
for at least one
field.</p>
121 <label
for=
"import_profile_id">Select Import Profile: </label><select name=
"import_profile_id" onchange=
'go("?import_profile_id=" + this.value);'>
128 </select>&
nbsp;<a href=
'#' class=
'button' onclick=
'importProfileManager.createProfileDialog(); return false;'>Create New Profile</a>
if($method=="POST") $script
static fieldMappingHasMatchField($fieldMappings)
static getImportColumns($class, $file="", $format=null)
static getAdminImportTabs()
static getFieldMappings($class, $profile_id=0)
static usingFeature()
Uses the specified framework feature(s).
static using()
Import the datamodels, views and manifest for the specified component(s).
static getValue($component, $name)
Retrieve the value of the specified Setting.
$method
Pull out a simple reference to the request method.