Last minute updates
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 30 Jun 2017 13:00:24 +0000 (09:00 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 30 Jun 2017 13:00:24 +0000 (09:00 -0400)
correct wording for not clearing member data.

models/admin/import/index.php
views/admin/import/header.html
views/admin/import/validate.html

index 35ceb2b..350fac7 100644 (file)
@@ -251,6 +251,13 @@ class GlmMembersAdmin_import_index
         if ( isset( $_REQUEST['filesProcessed'] ) ) {
             $this->filesProcessed = filter_var( $_REQUEST['filesProcessed'], FILTER_VALIDATE_INT );
         }
+        // Setup which additional plugins will be doing imports
+        $addOnTabsAllowed = array(
+            'contacts',
+            'social',
+        );
+        //echo '<pre>$this->config: ' . print_r( $this->config, true ) . '</pre>';
+
         // $fileData - The main files needed for the member import
         // - field:    input field name
         // - name:     file name
@@ -720,6 +727,7 @@ class GlmMembersAdmin_import_index
 
         // Setup the template data array
         $templateData = array(
+            //'addOnTabs'       => $addOnTabs,
             'fileExists'      => $fileExists,
             'option'          => $option,
             'errors'          => $this->errors,
index 4e38c07..0de87f7 100644 (file)
             href="{$thisUrl}?page={$thisPage}&glm_action=index&option=files"
             class="nav-tab{if $option==files or $option===filesValidate} nav-tab-active{/if}">Import Files</a>
         {/if}
+
+        {foreach $addOnTabs as $a}
+            <a href="{$thisUrl}?page={$thisPage}&glm_action={$a.action}{if isset($a.option)}&option={$a.option}{/if}" class="nav-tab{if $thisAction==$a.action} nav-tab-active{/if}">{$a.text}</a>
+        {/foreach}
     </h2>
     <div id="glm-admin-content-container">
 
index 8672dd6..2719ae7 100644 (file)
@@ -29,7 +29,7 @@
         {else}
         <tr>
             <td colspan="2">
-                No Member Data will be cleared before importing any files. No attempts will be made to prevent duplication of members.
+                No Member Data will not be cleared before importing any files. No attempts will be made to prevent duplication of members.
             </td>
         </tr>
         {/if}