renaming visible field to active
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 21 Nov 2017 19:06:31 +0000 (14:06 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 21 Nov 2017 19:06:31 +0000 (14:06 -0500)
changing the visible field from the old data to active / pending

classes/data/dataForSale.php
models/admin/management/itemsImport.php
setup/databaseScripts/create_database_V0.0.2.sql
setup/databaseScripts/update_database_V0.0.2.sql
views/admin/forSale/edit.html

index ff679c1..6ae40f0 100644 (file)
@@ -149,14 +149,6 @@ class GlmDataForSale extends GlmDataAbstract
                     'force_list' => true,
                 'use' => 'a'
             ),
-            'status' => array (
-                'field' => 'status',
-                'type' => 'list',
-                    'list' => $this->config['status'],
-                    'default' => 'Pending',
-                    'force_list' => true,
-                'use' => 'a'
-            ),
             'title' => array (
                 'field' => 'title',
                 'type' => 'text',
@@ -197,8 +189,8 @@ class GlmDataForSale extends GlmDataAbstract
                 'type' => 'datetime',
                 'use' => 'lge'
             ),
-            'visible' => array (
-                'field' => 'visible',
+            'active' => array (
+                'field' => 'active',
                 'type' => 'checkbox',
                 'use' => 'a'
             ),
index 64293ab..e7cdb5c 100644 (file)
@@ -188,7 +188,7 @@ class GlmMembersAdmin_management_itemsImport
                                 'contact_email'     =>$value['contactemail'],
                                 'contact_name'      =>$value['contactname'],
                                 'contact_phone'     =>$value['contactphone'],
-                                'visible'           =>$value['visable'],
+                                'active'            =>$value['visable'],
                                 'company'           =>$value['company'],
                                 'terms'             =>$value['terms'],
                                 'post_date'         =>$value['ds'],
index 77adc14..c809193 100644 (file)
@@ -25,7 +25,7 @@ CREATE TABLE {prefix}items (
     contact_phone TINYTEXT NULL ,
     post_date DATETIME NULL,
     updated DATETIME NULL,
-    visible BOOL NULL,
+    active BOOL NULL,
     terms TEXT NULL,
     item_expiration INT NULL,
     image_1 TINYTEXT NULL ,
@@ -33,7 +33,6 @@ CREATE TABLE {prefix}items (
     image_3 TINYTEXT NULL ,
     member INT NULL,
     repost BOOL null,
-    status TINYINT null,
     PRIMARY KEY (id)
 );
 
index b8d6da7..de534fd 100644 (file)
@@ -8,4 +8,4 @@
 
 
 -- Add Status
-ALTER TABLE {prefix}items ADD COLUMN status TINYINT;
\ No newline at end of file
+ALTER TABLE {prefix}items CHANGE COLUMN visible active TINYINT;
\ No newline at end of file
index 8879187..d6e88a4 100644 (file)
        <!-- VISIBLE -->
         <div class="glm-item-row glm-row">
             <div class="glm-small-12 glm-medium-2 glm-columns admin-item-label">
-                    Visible
+                    Active
             </div>
             <div class="glm-small-12 glm-medium-5 glm-columns admin-item-input">
-                    <input id="item-visible" data-id="item-visible" type="checkbox" name="visible" class="visible-checkbox" {if $item.fieldData.visible.value} checked{/if}>
+                    <input id="item-active" data-id="item-active" type="checkbox" name="active" class="active-checkbox" {if $item.fieldData.active.value} checked{/if}>
             </div>
         </div>
         <!-- ITEM EXPIRATION-->