latest updates
authorMark <mark@nirph.com>
Thu, 27 Oct 2016 11:16:18 +0000 (13:16 +0200)
committerMark <mark@nirph.com>
Thu, 27 Oct 2016 11:16:18 +0000 (13:16 +0200)
16 files changed:
module/Company/src/Company/Fixture/Company.php
module/Location/src/Location/Fixture/Town.php
module/User/src/User/Fixture/Profile.php
public/index.html
public/js/app/brochure-workspace/register.js
public/js/app/element-library.js
public/js/app/portal-workspace/auction.js
public/js/app/portal-workspace/bidview.js
public/js/app/router.js
public/js/app/workspace.js
public/templates/page/auction.html
public/templates/page/bidview.html
public/templates/page/contact_us.html
public/templates/page/forgot.html
public/templates/page/publiccontact_us.html
public/templates/page/register.js

index 0d0d423..5fa79c2 100644 (file)
@@ -43,7 +43,7 @@ class Company extends \Fixture\Service\Fixture
                                'Company.IndependantBuyer' => array(
                                                'name'  => 'IndependantBuyer',
                                                'region' => self::getReference('Region.Gauteng'),
                                'Company.IndependantBuyer' => array(
                                                'name'  => 'IndependantBuyer',
                                                'region' => self::getReference('Region.Gauteng'),
-                                               'city' => self::getReference('Town.Centurion'),
+                                               'city' => self::getReference('Town.Pretoria'),
                                                'postalCode'  => '0032',
                                                'street'  => 'Lenchen South',
                                                'dealerType' => \Company\Entity\Company::DEALERTYPE_TRADER,
                                                'postalCode'  => '0032',
                                                'street'  => 'Lenchen South',
                                                'dealerType' => \Company\Entity\Company::DEALERTYPE_TRADER,
@@ -58,7 +58,7 @@ class Company extends \Fixture\Service\Fixture
                                'Company.Dave' => array(
                                                'name'  => 'Dave\'s Dealership',
                                                'region' => self::getReference('Region.Gauteng'),
                                'Company.Dave' => array(
                                                'name'  => 'Dave\'s Dealership',
                                                'region' => self::getReference('Region.Gauteng'),
-                                               'city' => self::getReference('Town.Centurion'),
+                                               'city' => self::getReference('Town.Pretoria'),
                                                'contact' => self::getReference('Contact.Dave'),
                                                'postalCode'  => '0032',
                                                'street'  => 'Lenchen South',
                                                'contact' => self::getReference('Contact.Dave'),
                                                'postalCode'  => '0032',
                                                'street'  => 'Lenchen South',
@@ -74,7 +74,7 @@ class Company extends \Fixture\Service\Fixture
                                'Company.Byron' => array(
                                                'name'  => 'Trade Center Dealership',
                                                'region' => self::getReference('Region.Gauteng'),
                                'Company.Byron' => array(
                                                'name'  => 'Trade Center Dealership',
                                                'region' => self::getReference('Region.Gauteng'),
-                                               'city' => self::getReference('Town.Centurion'),
+                                               'city' => self::getReference('Town.Pretoria'),
                                                'contact' => self::getReference('Contact.Byron'),
                                                'postalCode'  => '0032',
                                                'street'  => 'Lenchen South',
                                                'contact' => self::getReference('Contact.Byron'),
                                                'postalCode'  => '0032',
                                                'street'  => 'Lenchen South',
index 3934c6e..a481099 100644 (file)
@@ -13,46 +13,6 @@ class Town extends \Fixture\Service\Fixture
                                                'region' => self::getReference('Region.Gauteng'),
                                                'name'   => 'Pretoria'
                                ),
                                                'region' => self::getReference('Region.Gauteng'),
                                                'name'   => 'Pretoria'
                                ),
-                               'Town.Centurion' => array(
-                                               'region' => self::getReference('Region.Gauteng'),
-                                               'name'   => 'Centurion'
-                               ),
-                               array(
-                                               'region' => self::getReference('Region.Gauteng'),
-                                               'name'   => 'Randburg'
-                               ),
-                               array(
-                                               'region' => self::getReference('Region.Natal'),
-                                               'name'   => 'Durban'
-                               ),
-                               array(
-                                               'region' => self::getReference('Region.Natal'),
-                                               'name'   => 'Port Elizabeth'
-                               ),
-                               array(
-                                               'region' => self::getReference('Region.Natal'),
-                                               'name'   => 'Balito'
-                               ),
-                               array(
-                                               'region' => self::getReference('Region.Eastern Cape'),
-                                               'name'   => 'Knysna'
-                               ),
-                               array(
-                                               'region' => self::getReference('Region.The South'),
-                                               'name'   => 'Middle of Nowhere'
-                               ),
-                               array(
-                                               'region' => self::getReference('Region.The South'),
-                                               'name'   => 'Close to Nowhere'
-                               ),
-                               array(
-                                               'region' => self::getReference('Region.The North'),
-                                               'name'   => 'Somewhere'
-                               ),
-                               array(
-                                               'region' => self::getReference('Region.The North'),
-                                               'name'   => 'Neverwhere'
-                               ),
                ));
        }
 
                ));
        }
 
index aefcccf..85f84e0 100644 (file)
@@ -131,7 +131,7 @@ class Profile extends \Fixture\Service\Fixture
                                                'permissions'  => self::getReference('Permissions.TradeCenterUser')
                                ),
                                'Profile.Admin' => array(
                                                'permissions'  => self::getReference('Permissions.TradeCenterUser')
                                ),
                                'Profile.Admin' => array(
-                                               'email'        => 'admin@admin.co.za',
+                                               'email'        => 'admin@bid4cars.co.za',
                                                'password'     => '123',
                                                'firstName'    => 'Full',
                                                'familyName'   => 'Administrator',
                                                'password'     => '123',
                                                'firstName'    => 'Full',
                                                'familyName'   => 'Administrator',
index 8dd3374..01849a4 100644 (file)
                                                                        <!-- <span class="notification">5</span> -->
                                                                        <a href="#/auction">ON AUCTION</a>
                                                                </li>
                                                                        <!-- <span class="notification">5</span> -->
                                                                        <a href="#/auction">ON AUCTION</a>
                                                                </li>
-                                                               <li class="hide b_stock">
-                                                                       <!-- <span class="notification">5</span> -->
-                                                                       <a href="#/stock">MY STOCK</a>
-                                                               </li>
-                                                               <li class="hide b_tcstock">
-                                                                       <!-- <span class="notification">5</span> -->
-                                                                       <a href="#/tcstock">TRADE STOCK</a>
-                                                               </li>
-                                                               <li class="hide b_valuations">
-                                                                       <!-- <span class="notification">5</span> -->
-                                                                       <a href="#/valuations">MY VALUATIONS</a>
-                                                               </li>
+                                                               <!--<li class="hide b_stock">-->
+                                                                       <!--&lt;!&ndash; <span class="notification">5</span> &ndash;&gt;-->
+                                                                       <!--<a href="#/stock">MY STOCK</a>-->
+                                                               <!--</li>-->
+                                                               <!--<li class="hide b_tcstock">-->
+                                                                       <!--&lt;!&ndash; <span class="notification">5</span> &ndash;&gt;-->
+                                                                       <!--<a href="#/tcstock">TRADE STOCK</a>-->
+                                                               <!--</li>-->
+                                                               <!--<li class="hide b_valuations">-->
+                                                                       <!--&lt;!&ndash; <span class="notification">5</span> &ndash;&gt;-->
+                                                                       <!--<a href="#/valuations">MY VALUATIONS</a>-->
+                                                               <!--</li>-->
                 <li class="hide b_historicaldata">
                                                                        <!-- <span class="notification">5</span> -->
                 <li class="hide b_historicaldata">
                                                                        <!-- <span class="notification">5</span> -->
-                                                                       <a href="#/historicaldata">HISTORICAL DATA</a>
-                                                               </li>
-                                                               <li class="hide b_settings"><a href="#/settings">MY SETTINGS</a></li>
+                                                                       <!--<a href="#/historicaldata">HISTORICAL DATA</a>-->
+                                                               <!--</li>-->
+                                                               <!--<li class="hide b_settings"><a href="#/settings">MY SETTINGS</a></li>-->
                                                                <li><a href="#/contact_us">CONTACT US</a></li>
                                                                <li><a href="#/contact_us">CONTACT US</a></li>
-                                                               <li class="hide b_priceGuide"><a href="#/priceguide">PRICE GUIDE</a></li>
+                                                               <!--<li class="hide b_priceGuide"><a href="#/priceguide">PRICE GUIDE</a></li>-->
 
                                                                <!-- Admin navigation -->
                                                                <li class="hide b_permissions">
 
                                                                <!-- Admin navigation -->
                                                                <li class="hide b_permissions">
index ad587c0..31cc8e3 100644 (file)
                                ? true
                                : false;
 
                                ? true
                                : false;
 
-                       App.DataStore.setData('companytypes', [
-                          {"value":"Limited", "label":"Limited"},
-                          {"value":"PTY Limited", "label":"PTY Limited"},
-                          {"value":"Closed Corporation", "label":"Closed Corporation"},
-                          {"value":"Sole Proprietor", "label":"Sole Proprietor"}
-                          ]);
-                       App.DataStore.setData('dealertypes', [
-                          {"value":"Dealer", "label":"Dealer"},
-                          {"value":"Wholesale / Trader", "label":"Wholesale / Trader"},
-                          {"value":"Trade Center", "label":"Trade Center"}
-                          ]);
-                       App.DataStore.setData('clienttypes', [
-                  {"value":"Buyer", "label":"Buyer"},
-                  {"value":"Buyer & Seller", "label":"Buyer & Seller"}
-                  ]);
-                       App.DataStore.setData('companyturnover', [
-                  {"value":"Turnover > R500,000", "label":"Turnover > R500,000"},
-                  {"value":"Turnover > R2,000,000", "label":"Turnover > R2,000,000"},
-                  {"value":"Turnover > R3,000,000", "label":"Turnover > R3,000,000"}
-                  ]);
+                       //App.DataStore.setData('companytypes', [
+                    //      {"value":"Limited", "label":"Limited"},
+                    //      {"value":"PTY Limited", "label":"PTY Limited"},
+                    //      {"value":"Closed Corporation", "label":"Closed Corporation"},
+                    //      {"value":"Sole Proprietor", "label":"Sole Proprietor"}
+                    //      ]);
+                       //App.DataStore.setData('dealertypes', [
+                    //      {"value":"Dealer", "label":"Dealer"},
+                    //      {"value":"Wholesale / Trader", "label":"Wholesale / Trader"},
+                    //      {"value":"Trade Center", "label":"Trade Center"}
+                    //      ]);
+                       //App.DataStore.setData('clienttypes', [
+             //     {"value":"Buyer", "label":"Buyer"},
+             //     {"value":"Buyer & Seller", "label":"Buyer & Seller"}
+             //     ]);
+                       //App.DataStore.setData('companyturnover', [
+             //     {"value":"Turnover > R500,000", "label":"Turnover > R500,000"},
+             //     {"value":"Turnover > R2,000,000", "label":"Turnover > R2,000,000"},
+             //     {"value":"Turnover > R3,000,000", "label":"Turnover > R3,000,000"}
+             //     ]);
                        App.DataStore.loadSelectListData('permissions', true, 'User', 'Permissions.SelectList');
                        App.DataStore.loadSelectListData('permissions', true, 'User', 'Permissions.SelectList');
-                       App.DataStore.loadSelectListData('countries', true, 'Location', 'Country.SelectList');
-                       App.DataStore.loadSelectListData('groups', true, 'Company', 'Group.SelectList');
-                       App.DataStore.loadSelectListData('foundmethods', true, 'Company', 'FoundMethod.SelectList');
+                       //App.DataStore.loadSelectListData('countries', true, 'Location', 'Country.SelectList');
+                       //App.DataStore.loadSelectListData('groups', true, 'Company', 'Group.SelectList');
+                       //App.DataStore.loadSelectListData('foundmethods', true, 'Company', 'FoundMethod.SelectList');
 
 
 
 
 
 
@@ -88,9 +88,9 @@
                                        type        : 'select',
                                        id          : 'permissions',
                                        title       : 'User type',
                                        type        : 'select',
                                        id          : 'permissions',
                                        title       : 'User type',
-                                       value       : 'Auction Buyer',
+                                       value       : '12',
                                        dataStoreId : 'permissions',
                                        dataStoreId : 'permissions',
-                                       readonly    :true
+                                       disabled    :true
                                },
                                'email' : {
                                        type  : 'input',
                                },
                                'email' : {
                                        type  : 'input',
                                },
 
                                // Dealership contact
                                },
 
                                // Dealership contact
-                               'contactFirstName' : {
-                                       type  : 'input',
-                                       id    : 'contactFirstName',
-                                       title : 'Name',
-                                       value : '',
-                                       maxlength : 50
-                               },
-                               'contactFamilyName' : {
-                                       type  : 'input',
-                                       id    : 'contactFamilyName',
-                                       title : 'Surname',
-                                       value : '',
-                                       maxlength : 50
-                               },
-                               'contactOffice' : {
-                                       type  : 'input',
-                                       id    : 'contactOffice',
-                                       title : 'Landline',
-                                       value : '',
-                                       maxlength : 20
-                               },
-                               'contactMobile' : {
-                                       type  : 'mobile',
-                                       id    : 'contactMobile',
-                                       title : 'Mobile number',
-                                       value : '',
-                                       maxlength : 20
-                               },
-                               'contactEmail' : {
-                                       type  : 'input',
-                                       id    : 'contactEmail',
-                                       title : 'Email',
-                                       value : '',
-                                       maxlength : 255
-                               },
-
-                               // Dealership details
-                               'dealerType' : {
-                                       type  : 'select',
-                                       id    : 'dealerType',
-                                       title : 'Registration type',
-                                       value : '',
-                                       dataStoreId : 'dealertypes'
-                               },
-                               'clientType' : {
-                                       type  : 'select',
-                                       id    : 'clientType',
-                                       title : 'Register as',
-                                       value : '',
-                                       dataStoreId : 'clienttypes'
-                               },
-                               'group' : {
-                                       type  : 'select',
-                                       id    : 'group',
-                                       title : 'Group Member',
-                                       value : '',
-                                       dataStoreId : 'groups',
-                                       onChange    : function () {
-                                               if (!App.DataStore.getItem('BuildSelect:group', false))
-                                               {
-                                                       var groupId = $('#group').val();
-                                                       App.DataStore.loadSelectListData(
-                                                                       'groupdivisions', false, 'Company', 'GroupDivision.SelectList',
-                                                                       null, {Filter: {group: groupId}}
-                                                                       );
-                                               }
-                                       }
-                               },
-                               'groupDivision' : {
-                                       type  : 'select',
-                                       id    : 'groupDivision',
-                                       title : 'Group Division',
-                                       value : '',
-                                       dataStoreId : 'groupdivisions'
-                               },
-                               'companyType' : {
-                                       type  : 'select',
-                                       id    : 'companyType',
-                                       title : 'Company type',
-                                       value : '',
-                                       dataStoreId : 'companytypes',
-                                       onChange    : function() {
-                                               if (!App.DataStore.getItem('BuildSelect:companyType', false))
-                                               {
-                                                       if ('Sole Proprietor' == $(this).val())
-                                                       {
-                                                               $('#' + _w.register.ti.tid + '_docCopyOfDirectorId').hide();
-                                                               $('#' + _w.register.ti.tid + '_docCompanyRegistration').hide();
-                                                               $('#' + _w.register.ti.tid + '_docStockCertificate').show();
-                                                               $('#' + _w.register.ti.tid + '_docCopyOfId').show();
-                                                               $('#' + _w.register.ti.tid + '_docAddressProof').show();
-                                                       }
-                                                       else
-                                                       {
-                                                               $('#' + _w.register.ti.tid + '_docStockCertificate').hide();
-                                                               $('#' + _w.register.ti.tid + '_docCopyOfId').hide();
-                                                               $('#' + _w.register.ti.tid + '_docAddressProof').show();
-                                                               $('#' + _w.register.ti.tid + '_docCopyOfDirectorId').show();
-                                                               $('#' + _w.register.ti.tid + '_docCompanyRegistration').show();
-                                                       }
-                                               }
-                                       }
-                               },
-                               'businessName' : {
-                                       type  : 'input',
-                                       id    : 'businessName',
-                                       title : 'Registered business name',
-                                       value : '',
-                                       maxlength : 100
-                               },
-                               'name' : {
-                                       type  : 'input',
-                                       id    : 'name',
-                                       title : 'Trading name',
-                                       value : '',
-                                       maxlength : 100
-                               },
-                               'companyRegistrationNumber' : {
-                                       type  : 'input',
-                                       id    : 'companyRegistrationNumber',
-                                       title : 'Company Reg no',
-                                       value : '',
-                                       mask  : '9999/999999/99',
-                                       maxlength : 14
-                               },
-                               'vatNumber' : {
-                                       type  : 'input',
-                                       id    : 'vatNumber',
-                                       title : 'Vat no',
-                                       value : '',
-                                       maxlength : 20
-                               },
-                               'turmiNumber' : {
-                                       type  : 'input',
-                                       id    : 'turmiNumber',
-                                       title : 'TransUnion membership no',
-                                       value : '',
-                                       maxlength : 50
-                               },
-                               'dealerStockNumber' : {
-                                       type  : 'input',
-                                       id    : 'dealerStockNumber',
-                                       title : 'Dealer stock no',
-                                       value : '',
-                                       maxlength : 50
-                               },
-                               'turnover' : {
-                                       type  : 'select',
-                                       id    : 'turnover',
-                                       title : 'Turnover',
-                                       value : '',
-                                       dataStoreId : 'companyturnover'
-                               },
-                               'foundMethod' : {
-                                       type  : 'select',
-                                       id    : 'foundMethod',
-                                       title : 'Where did you find us?',
-                                       value : '',
-                                       dataStoreId : 'foundmethods',
-                                       onChange    : function () {
-                                               if (!App.DataStore.getItem('BuildSelect:foundMethod', false))
-                                               {
-                                                       var foundId = $('#foundMethod').val();
-                                                       App.DataStore.loadSelectListData(
-                                                                       'foundmethoddetails', false, 'Company', 'FoundMethodDetail.SelectList',
-                                                                       null, {Filter: {foundMethod: foundId}}
-                                                                       );
-                                               }
-                                       }
-                               },
-                               'foundMethodDetail' : {
-                                       type  : 'select',
-                                       id    : 'foundMethodDetail',
-                                       title : 'Details',
-                                       value : '',
-                                       dataStoreId : 'foundmethoddetails'
-                               },
-
-
-                               // Adresses and billing contact
-                               'country' : {
-                                       type        : 'select',
-                                       id          : 'country',
-                                       title       : 'Country',
-                                       dataStoreId : 'countries',
-                                       value       : '',
-                                       onChange    : function () {
-                                               if (!App.DataStore.getItem('BuildSelect:country', false))
-                                               {
-                                                       App.DataStore.loadSelectListData(
-                                                                       'regions', false, 'Location', 'Region.SelectList', null,
-                                                                       {"Filter": {
-                                                                               "country" : $(this).val()
-                                                                               }}
-                                                                       );
-                                                       App.DataStore.setData('cities', []);
-                                                       if ($('#sameAsBusinessAddress').prop('checked'))
-                                                       {
-                                                               $('#billingCountry').selectpicker('val', $('#country').val());
-                                                       }
-                                               }
-                                       }
-                               },
-                               'region' : {
-                                       type        : 'select',
-                                       id          : 'region',
-                                       title       : 'Region',
-                                       dataStoreId : 'regions',
-                                       value       : '',
-                                       onChange    : function () {
-                                               if (!App.DataStore.getItem('BuildSelect:region', false))
-                                               {
-                                                       App.DataStore.loadSelectListData(
-                                                                       'cities', false, 'Location', 'Town.SelectList', null,
-                                                                       {"Filter": {
-                                                                               "region" : $(this).val()
-                                                                               }}
-                                                                       );
-                                                       if ($('#sameAsBusinessAddress').prop('checked'))
-                                                       {
-                                                               $('#billingRegion').selectpicker('val', $('#region').val());
-                                                       }
-                                               }
-                                       }
-                               },
-                               'city' : {
-                                       type        : 'select',
-                                       id          : 'city',
-                                       title       : 'Town',
-                                       dataStoreId : 'cities',
-                                       value       : ''
-                               },
-                               'street' : {
-                                       type  : 'input',
-                                       id    : 'street',
-                                       title : 'Street',
-                                       value : '',
-                                       maxlength : 75
-                               },
-                               'postalCode' : {
-                                       type  : 'input',
-                                       id    : 'postalCode',
-                                       title : 'Code',
-                                       value : '',
-                                       maxlength : 10
-                               },
-                               'sameAsBusinessAddress' : {
-                                       type  : 'checkbox',
-                                       id    : 'sameAsBusinessAddress',
-                                       title : 'Same as business address',
-                                       value : '',
-                                       onChange : function() {
-                                               if ($(this).prop('checked'))
-                                               {
-                                                       App.DataStore.setItem('BuildSelect:migrateCountry', true);
-                                                       $('#billingCountry').selectpicker('val', $('#country').val());
-                                                       App.DataStore.removeItem('BuildSelect:migrateCountry');
-                                                       App.DataStore.setItem('BuildSelect:migrateRegion', true);
-                                                       App.DataStore.loadSelectListData(
-                                                                       'billregions', false, 'Location', 'Region.SelectList', null,
-                                                                       {"Filter": {
-                                                                               "country" : $('#country').val()
-                                                                       }}, {}, function() {
-                                                                               $('#billingRegion').selectpicker('val', $('#region').val());
-                                                                               App.DataStore.removeItem('BuildSelect:migrateRegion');
-                                                                       }
-                                                       );
-                                                       App.DataStore.setItem('BuildSelect:migrateTown', true);
-                                                       App.DataStore.loadSelectListData(
-                                                                       'billcities', false, 'Location', 'Town.SelectList', null,
-                                                                       {"Filter": {
-                                                                               "region" : $('#region').val()
-                                                                       }}, {}, function() {
-                                                                               $('#billingCity').selectpicker('val', $('#city').val());
-                                                                       }
-                                                       );
-                                                       $('#billingStreet').val($('#street').val());
-                                                       $('#billingPostalCode').val($('#postalCode').val());
-                                               }
-                                               else
-                                               {
-                                                       $('#billingCountry').selectpicker('val', '');
-                                                       App.DataStore.setData('billregions', []);
-                                                       App.DataStore.setData('billcities', []);
-                                                       $('#billingStreet').val('');
-                                                       $('#billingPostalCode').val('');
-                                               }
-                                       }
-                               },
-                               'billingCountry' : {
-                                       type        : 'select',
-                                       id          : 'billingCountry',
-                                       title       : 'Country',
-                                       dataStoreId : 'countries',
-                                       value       : '',
-                                       onChange    : function () {
-                                               if (!App.DataStore.getItem('BuildSelect:billingCountry', false)
-                                                               && !App.DataStore.getItem('BuildSelect:migrateCountry', false))
-                                               {
-                                                       App.DataStore.loadSelectListData(
-                                                                       'billregions', false, 'Location', 'Region.SelectList', null,
-                                                                       {"Filter": {
-                                                                               "country" : $(this).val()
-                                                                               }}
-                                                                       );
-                                                       App.DataStore.setData('billcities', []);
-                                               }
-                                       }
-                               },
-                               'billingRegion' : {
-                                       type        : 'select',
-                                       id          : 'billingRegion',
-                                       title       : 'Region',
-                                       dataStoreId : 'billregions',
-                                       value       : '',
-                                       onChange    : function () {
-                                               if (!App.DataStore.getItem('BuildSelect:billingRegion', false)
-                                                               && !App.DataStore.getItem('BuildSelect:migrateRegion', false))
-                                               {
-                                                       App.DataStore.loadSelectListData(
-                                                                       'billcities', false, 'Location', 'Town.SelectList', null,
-                                                                       {"Filter": {
-                                                                               "region" : $(this).val()
-                                                                               }}
-                                                                       );
-                                               }
-                                       }
-                               },
-                               'billingCity' : {
-                                       type        : 'select',
-                                       id          : 'billingCity',
-                                       title       : 'Town',
-                                       dataStoreId : 'billcities',
-                                       value       : ''
-                               },
-                               'billingStreet' : {
-                                       type  : 'input',
-                                       id    : 'billingStreet',
-                                       title : 'Street',
-                                       value : '',
-                                       maxlength : 75
-                               },
-                               'billingPostalCode' : {
-                                       type  : 'input',
-                                       id    : 'billingPostalCode',
-                                       title : 'Code',
-                                       value : '',
-                                       maxlength : 10
-                               },
-
-                               'sameAsDealerContact' : {
-                                       type  : 'checkbox',
-                                       id    : 'sameAsDealerContact',
-                                       title : 'Same as dealership contact',
-                                       value : '',
-                                       onChange : function() {
-                                               if ($(this).prop('checked'))
-                                               {
-                                                       $('#billingFirstName').val($('#contactFirstName').val());
-                                                       $('#billingFamilyName').val($('#contactFamilyName').val());
-                                                       $('#billingOffice').val($('#contactOffice').val());
-                                                       $('#billingMobile').val($('#contactMobile').val());
-                                                       $('#billingEmail').val($('#contactEmail').val());
-                                               }
-                                               else
-                                               {
-                                                       $('#billingFirstName').val('');
-                                                       $('#billingFamilyName').val('');
-                                                       $('#billingOffice').val('');
-                                                       $('#billingMobile').val('');
-                                                       $('#billingEmail').val('');
-                                               }
-                                       }
-                               },
-                               'billingFirstName' : {
-                                       type  : 'input',
-                                       id    : 'billingFirstName',
-                                       title : 'Name',
-                                       value : '',
-                                       maxlength : 50
-                               },
-                               'billingFamilyName' : {
-                                       type  : 'input',
-                                       id    : 'billingFamilyName',
-                                       title : 'Surname',
-                                       value : '',
-                                       maxlength : 50
-                               },
-                               'billingOffice' : {
-                                       type  : 'input',
-                                       id    : 'billingOffice',
-                                       title : 'Landline',
-                                       value : '',
-                                       maxlength : 20
-                               },
-                               'billingMobile' : {
-                                       type  : 'mobile',
-                                       id    : 'billingMobile',
-                                       title : 'Mobile number',
-                                       value : '',
-                                       maxlength : 20
-                               },
-                               'billingEmail' : {
-                                       type  : 'input',
-                                       id    : 'billingEmail',
-                                       title : 'Email',
-                                       value : '',
-                                       maxlength : 255
-                               },
-
-                               // Owners
-                               'ownerFirstName' : {
-                                       type  : 'input',
-                                       id    : 'ownerFirstName',
-                                       title : 'Name',
-                                       value : '',
-                                       maxlength : 100
-                               },
-                               'ownerFamilyName' : {
-                                       type  : 'input',
-                                       id    : 'ownerFamilyName',
-                                       title : 'Surname',
-                                       value : '',
-                                       maxlength : 100
-                               },
-                               'ownerIdNumber' : {
-                                       type  : 'input',
-                                       id    : 'ownerIdNumber',
-                                       title : 'ID Number',
-                                       value : '',
-                                       maxlength : 13
-                               },
-                               'owners' : {
-                                       type  : 'collector',
-                                       id    : 'owners',
-                                       value : []
-                               },
-
-                               // Documents
-                               'docStockCertificate' : {
-                                       type  : 'document',
-                                       id    : 'docStockCertificate',
-                                       title : 'Dealer stock certificate',
-                                       value : null
-                               },
-                               'docAddressProof' : {
-                                       type  : 'document',
-                                       id    : 'docAddressProof',
-                                       title : 'Proof of business address',
-                                       value : null
-                               },
-                               'docCopyOfId' : {
-                                       type  : 'document',
-                                       id    : 'docCopyOfId',
-                                       title : 'Copy of ID document',
-                                       value : null
-                               },
-                               'docCopyOfDirectorId' : {
-                                       type  : 'document',
-                                       id    : 'docCopyOfDirectorId',
-                                       title : 'Copy of directors ID document',
-                                       value : null
-                               },
-                               'docCompanyRegistration' : {
-                                       type  : 'document',
-                                       id    : 'docCompanyRegistration',
-                                       title : 'Company registration document',
-                                       value : null
-                               },
+                               //'contactFirstName' : {
+                               //      type  : 'input',
+                               //      id    : 'contactFirstName',
+                               //      title : 'Name',
+                               //      value : '',
+                               //      maxlength : 50
+                               //},
+                               //'contactFamilyName' : {
+                               //      type  : 'input',
+                               //      id    : 'contactFamilyName',
+                               //      title : 'Surname',
+                               //      value : '',
+                               //      maxlength : 50
+                               //},
+                               //'contactOffice' : {
+                               //      type  : 'input',
+                               //      id    : 'contactOffice',
+                               //      title : 'Landline',
+                               //      value : '',
+                               //      maxlength : 20
+                               //},
+                               //'contactMobile' : {
+                               //      type  : 'mobile',
+                               //      id    : 'contactMobile',
+                               //      title : 'Mobile number',
+                               //      value : '',
+                               //      maxlength : 20
+                               //},
+                               //'contactEmail' : {
+                               //      type  : 'input',
+                               //      id    : 'contactEmail',
+                               //      title : 'Email',
+                               //      value : '',
+                               //      maxlength : 255
+                               //},
+                //
+                               //// Dealership details
+                               //'dealerType' : {
+                               //      type  : 'select',
+                               //      id    : 'dealerType',
+                               //      title : 'Registration type',
+                               //      value : '',
+                               //      dataStoreId : 'dealertypes'
+                               //},
+                               //'clientType' : {
+                               //      type  : 'select',
+                               //      id    : 'clientType',
+                               //      title : 'Register as',
+                               //      value : '',
+                               //      dataStoreId : 'clienttypes'
+                               //},
+                               //'group' : {
+                               //      type  : 'select',
+                               //      id    : 'group',
+                               //      title : 'Group Member',
+                               //      value : '',
+                               //      dataStoreId : 'groups',
+                               //      onChange    : function () {
+                               //              if (!App.DataStore.getItem('BuildSelect:group', false))
+                               //              {
+                               //                      var groupId = $('#group').val();
+                               //                      App.DataStore.loadSelectListData(
+                               //                                      'groupdivisions', false, 'Company', 'GroupDivision.SelectList',
+                               //                                      null, {Filter: {group: groupId}}
+                               //                                      );
+                               //              }
+                               //      }
+                               //},
+                               //'groupDivision' : {
+                               //      type  : 'select',
+                               //      id    : 'groupDivision',
+                               //      title : 'Group Division',
+                               //      value : '',
+                               //      dataStoreId : 'groupdivisions'
+                               //},
+                               //'companyType' : {
+                               //      type  : 'select',
+                               //      id    : 'companyType',
+                               //      title : 'Company type',
+                               //      value : '',
+                               //      dataStoreId : 'companytypes',
+                               //      onChange    : function() {
+                               //              if (!App.DataStore.getItem('BuildSelect:companyType', false))
+                               //              {
+                               //                      if ('Sole Proprietor' == $(this).val())
+                               //                      {
+                               //                              $('#' + _w.register.ti.tid + '_docCopyOfDirectorId').hide();
+                               //                              $('#' + _w.register.ti.tid + '_docCompanyRegistration').hide();
+                               //                              $('#' + _w.register.ti.tid + '_docStockCertificate').show();
+                               //                              $('#' + _w.register.ti.tid + '_docCopyOfId').show();
+                               //                              $('#' + _w.register.ti.tid + '_docAddressProof').show();
+                               //                      }
+                               //                      else
+                               //                      {
+                               //                              $('#' + _w.register.ti.tid + '_docStockCertificate').hide();
+                               //                              $('#' + _w.register.ti.tid + '_docCopyOfId').hide();
+                               //                              $('#' + _w.register.ti.tid + '_docAddressProof').show();
+                               //                              $('#' + _w.register.ti.tid + '_docCopyOfDirectorId').show();
+                               //                              $('#' + _w.register.ti.tid + '_docCompanyRegistration').show();
+                               //                      }
+                               //              }
+                               //      }
+                               //},
+                               //'businessName' : {
+                               //      type  : 'input',
+                               //      id    : 'businessName',
+                               //      title : 'Registered business name',
+                               //      value : '',
+                               //      maxlength : 100
+                               //},
+                               //'name' : {
+                               //      type  : 'input',
+                               //      id    : 'name',
+                               //      title : 'Trading name',
+                               //      value : '',
+                               //      maxlength : 100
+                               //},
+                               //'companyRegistrationNumber' : {
+                               //      type  : 'input',
+                               //      id    : 'companyRegistrationNumber',
+                               //      title : 'Company Reg no',
+                               //      value : '',
+                               //      mask  : '9999/999999/99',
+                               //      maxlength : 14
+                               //},
+                               //'vatNumber' : {
+                               //      type  : 'input',
+                               //      id    : 'vatNumber',
+                               //      title : 'Vat no',
+                               //      value : '',
+                               //      maxlength : 20
+                               //},
+                               //'turmiNumber' : {
+                               //      type  : 'input',
+                               //      id    : 'turmiNumber',
+                               //      title : 'TransUnion membership no',
+                               //      value : '',
+                               //      maxlength : 50
+                               //},
+                               //'dealerStockNumber' : {
+                               //      type  : 'input',
+                               //      id    : 'dealerStockNumber',
+                               //      title : 'Dealer stock no',
+                               //      value : '',
+                               //      maxlength : 50
+                               //},
+                               //'turnover' : {
+                               //      type  : 'select',
+                               //      id    : 'turnover',
+                               //      title : 'Turnover',
+                               //      value : '',
+                               //      dataStoreId : 'companyturnover'
+                               //},
+                               //'foundMethod' : {
+                               //      type  : 'select',
+                               //      id    : 'foundMethod',
+                               //      title : 'Where did you find us?',
+                               //      value : '',
+                               //      dataStoreId : 'foundmethods',
+                               //      onChange    : function () {
+                               //              if (!App.DataStore.getItem('BuildSelect:foundMethod', false))
+                               //              {
+                               //                      var foundId = $('#foundMethod').val();
+                               //                      App.DataStore.loadSelectListData(
+                               //                                      'foundmethoddetails', false, 'Company', 'FoundMethodDetail.SelectList',
+                               //                                      null, {Filter: {foundMethod: foundId}}
+                               //                                      );
+                               //              }
+                               //      }
+                               //},
+                               //'foundMethodDetail' : {
+                               //      type  : 'select',
+                               //      id    : 'foundMethodDetail',
+                               //      title : 'Details',
+                               //      value : '',
+                               //      dataStoreId : 'foundmethoddetails'
+                               //},
+                //
+                //
+                               //// Adresses and billing contact
+                               //'country' : {
+                               //      type        : 'select',
+                               //      id          : 'country',
+                               //      title       : 'Country',
+                               //      dataStoreId : 'countries',
+                               //      value       : '',
+                               //      onChange    : function () {
+                               //              if (!App.DataStore.getItem('BuildSelect:country', false))
+                               //              {
+                               //                      App.DataStore.loadSelectListData(
+                               //                                      'regions', false, 'Location', 'Region.SelectList', null,
+                               //                                      {"Filter": {
+                               //                                              "country" : $(this).val()
+                               //                                              }}
+                               //                                      );
+                               //                      App.DataStore.setData('cities', []);
+                               //                      if ($('#sameAsBusinessAddress').prop('checked'))
+                               //                      {
+                               //                              $('#billingCountry').selectpicker('val', $('#country').val());
+                               //                      }
+                               //              }
+                               //      }
+                               //},
+                               //'region' : {
+                               //      type        : 'select',
+                               //      id          : 'region',
+                               //      title       : 'Region',
+                               //      dataStoreId : 'regions',
+                               //      value       : '',
+                               //      onChange    : function () {
+                               //              if (!App.DataStore.getItem('BuildSelect:region', false))
+                               //              {
+                               //                      App.DataStore.loadSelectListData(
+                               //                                      'cities', false, 'Location', 'Town.SelectList', null,
+                               //                                      {"Filter": {
+                               //                                              "region" : $(this).val()
+                               //                                              }}
+                               //                                      );
+                               //                      if ($('#sameAsBusinessAddress').prop('checked'))
+                               //                      {
+                               //                              $('#billingRegion').selectpicker('val', $('#region').val());
+                               //                      }
+                               //              }
+                               //      }
+                               //},
+                               //'city' : {
+                               //      type        : 'select',
+                               //      id          : 'city',
+                               //      title       : 'Town',
+                               //      dataStoreId : 'cities',
+                               //      value       : ''
+                               //},
+                               //'street' : {
+                               //      type  : 'input',
+                               //      id    : 'street',
+                               //      title : 'Street',
+                               //      value : '',
+                               //      maxlength : 75
+                               //},
+                               //'postalCode' : {
+                               //      type  : 'input',
+                               //      id    : 'postalCode',
+                               //      title : 'Code',
+                               //      value : '',
+                               //      maxlength : 10
+                               //},
+                               //'sameAsBusinessAddress' : {
+                               //      type  : 'checkbox',
+                               //      id    : 'sameAsBusinessAddress',
+                               //      title : 'Same as business address',
+                               //      value : '',
+                               //      onChange : function() {
+                               //              if ($(this).prop('checked'))
+                               //              {
+                               //                      App.DataStore.setItem('BuildSelect:migrateCountry', true);
+                               //                      $('#billingCountry').selectpicker('val', $('#country').val());
+                               //                      App.DataStore.removeItem('BuildSelect:migrateCountry');
+                               //                      App.DataStore.setItem('BuildSelect:migrateRegion', true);
+                               //                      App.DataStore.loadSelectListData(
+                               //                                      'billregions', false, 'Location', 'Region.SelectList', null,
+                               //                                      {"Filter": {
+                               //                                              "country" : $('#country').val()
+                               //                                      }}, {}, function() {
+                               //                                              $('#billingRegion').selectpicker('val', $('#region').val());
+                               //                                              App.DataStore.removeItem('BuildSelect:migrateRegion');
+                               //                                      }
+                               //                      );
+                               //                      App.DataStore.setItem('BuildSelect:migrateTown', true);
+                               //                      App.DataStore.loadSelectListData(
+                               //                                      'billcities', false, 'Location', 'Town.SelectList', null,
+                               //                                      {"Filter": {
+                               //                                              "region" : $('#region').val()
+                               //                                      }}, {}, function() {
+                               //                                              $('#billingCity').selectpicker('val', $('#city').val());
+                               //                                      }
+                               //                      );
+                               //                      $('#billingStreet').val($('#street').val());
+                               //                      $('#billingPostalCode').val($('#postalCode').val());
+                               //              }
+                               //              else
+                               //              {
+                               //                      $('#billingCountry').selectpicker('val', '');
+                               //                      App.DataStore.setData('billregions', []);
+                               //                      App.DataStore.setData('billcities', []);
+                               //                      $('#billingStreet').val('');
+                               //                      $('#billingPostalCode').val('');
+                               //              }
+                               //      }
+                               //},
+                               //'billingCountry' : {
+                               //      type        : 'select',
+                               //      id          : 'billingCountry',
+                               //      title       : 'Country',
+                               //      dataStoreId : 'countries',
+                               //      value       : '',
+                               //      onChange    : function () {
+                               //              if (!App.DataStore.getItem('BuildSelect:billingCountry', false)
+                               //                              && !App.DataStore.getItem('BuildSelect:migrateCountry', false))
+                               //              {
+                               //                      App.DataStore.loadSelectListData(
+                               //                                      'billregions', false, 'Location', 'Region.SelectList', null,
+                               //                                      {"Filter": {
+                               //                                              "country" : $(this).val()
+                               //                                              }}
+                               //                                      );
+                               //                      App.DataStore.setData('billcities', []);
+                               //              }
+                               //      }
+                               //},
+                               //'billingRegion' : {
+                               //      type        : 'select',
+                               //      id          : 'billingRegion',
+                               //      title       : 'Region',
+                               //      dataStoreId : 'billregions',
+                               //      value       : '',
+                               //      onChange    : function () {
+                               //              if (!App.DataStore.getItem('BuildSelect:billingRegion', false)
+                               //                              && !App.DataStore.getItem('BuildSelect:migrateRegion', false))
+                               //              {
+                               //                      App.DataStore.loadSelectListData(
+                               //                                      'billcities', false, 'Location', 'Town.SelectList', null,
+                               //                                      {"Filter": {
+                               //                                              "region" : $(this).val()
+                               //                                              }}
+                               //                                      );
+                               //              }
+                               //      }
+                               //},
+                               //'billingCity' : {
+                               //      type        : 'select',
+                               //      id          : 'billingCity',
+                               //      title       : 'Town',
+                               //      dataStoreId : 'billcities',
+                               //      value       : ''
+                               //},
+                               //'billingStreet' : {
+                               //      type  : 'input',
+                               //      id    : 'billingStreet',
+                               //      title : 'Street',
+                               //      value : '',
+                               //      maxlength : 75
+                               //},
+                               //'billingPostalCode' : {
+                               //      type  : 'input',
+                               //      id    : 'billingPostalCode',
+                               //      title : 'Code',
+                               //      value : '',
+                               //      maxlength : 10
+                               //},
+                //
+                               //'sameAsDealerContact' : {
+                               //      type  : 'checkbox',
+                               //      id    : 'sameAsDealerContact',
+                               //      title : 'Same as dealership contact',
+                               //      value : '',
+                               //      onChange : function() {
+                               //              if ($(this).prop('checked'))
+                               //              {
+                               //                      $('#billingFirstName').val($('#contactFirstName').val());
+                               //                      $('#billingFamilyName').val($('#contactFamilyName').val());
+                               //                      $('#billingOffice').val($('#contactOffice').val());
+                               //                      $('#billingMobile').val($('#contactMobile').val());
+                               //                      $('#billingEmail').val($('#contactEmail').val());
+                               //              }
+                               //              else
+                               //              {
+                               //                      $('#billingFirstName').val('');
+                               //                      $('#billingFamilyName').val('');
+                               //                      $('#billingOffice').val('');
+                               //                      $('#billingMobile').val('');
+                               //                      $('#billingEmail').val('');
+                               //              }
+                               //      }
+                               //},
+                               //'billingFirstName' : {
+                               //      type  : 'input',
+                               //      id    : 'billingFirstName',
+                               //      title : 'Name',
+                               //      value : '',
+                               //      maxlength : 50
+                               //},
+                               //'billingFamilyName' : {
+                               //      type  : 'input',
+                               //      id    : 'billingFamilyName',
+                               //      title : 'Surname',
+                               //      value : '',
+                               //      maxlength : 50
+                               //},
+                               //'billingOffice' : {
+                               //      type  : 'input',
+                               //      id    : 'billingOffice',
+                               //      title : 'Landline',
+                               //      value : '',
+                               //      maxlength : 20
+                               //},
+                               //'billingMobile' : {
+                               //      type  : 'mobile',
+                               //      id    : 'billingMobile',
+                               //      title : 'Mobile number',
+                               //      value : '',
+                               //      maxlength : 20
+                               //},
+                               //'billingEmail' : {
+                               //      type  : 'input',
+                               //      id    : 'billingEmail',
+                               //      title : 'Email',
+                               //      value : '',
+                               //      maxlength : 255
+                               //},
+                //
+                               //// Owners
+                               //'ownerFirstName' : {
+                               //      type  : 'input',
+                               //      id    : 'ownerFirstName',
+                               //      title : 'Name',
+                               //      value : '',
+                               //      maxlength : 100
+                               //},
+                               //'ownerFamilyName' : {
+                               //      type  : 'input',
+                               //      id    : 'ownerFamilyName',
+                               //      title : 'Surname',
+                               //      value : '',
+                               //      maxlength : 100
+                               //},
+                               //'ownerIdNumber' : {
+                               //      type  : 'input',
+                               //      id    : 'ownerIdNumber',
+                               //      title : 'ID Number',
+                               //      value : '',
+                               //      maxlength : 13
+                               //},
+                               //'owners' : {
+                               //      type  : 'collector',
+                               //      id    : 'owners',
+                               //      value : []
+                               //},
+                //
+                               //// Documents
+                               //'docStockCertificate' : {
+                               //      type  : 'document',
+                               //      id    : 'docStockCertificate',
+                               //      title : 'Dealer stock certificate',
+                               //      value : null
+                               //},
+                               //'docAddressProof' : {
+                               //      type  : 'document',
+                               //      id    : 'docAddressProof',
+                               //      title : 'Proof of business address',
+                               //      value : null
+                               //},
+                               //'docCopyOfId' : {
+                               //      type  : 'document',
+                               //      id    : 'docCopyOfId',
+                               //      title : 'Copy of ID document',
+                               //      value : null
+                               //},
+                               //'docCopyOfDirectorId' : {
+                               //      type  : 'document',
+                               //      id    : 'docCopyOfDirectorId',
+                               //      title : 'Copy of directors ID document',
+                               //      value : null
+                               //},
+                               //'docCompanyRegistration' : {
+                               //      type  : 'document',
+                               //      id    : 'docCompanyRegistration',
+                               //      title : 'Company registration document',
+                               //      value : null
+                               //},
 
                                'subscribeNewsletter' : {
                                        type  : 'checkbox',
                                        id    : 'subscribeNewsletter',
 
                                'subscribeNewsletter' : {
                                        type  : 'checkbox',
                                        id    : 'subscribeNewsletter',
-                                       title : 'Sign me up for the monthly newsletter abd Bid4Cars updates.',
+                                       title : 'Sign me up for the monthly newsletter and Bid4Cars updates.',
                                        value : false
                                },
                                'acceptTermsAndConditions' : {
                                        value : false
                                },
                                'acceptTermsAndConditions' : {
                                rules: {
                                        firstName: {required: true},
                                        familyName: {required: true},
                                rules: {
                                        firstName: {required: true},
                                        familyName: {required: true},
-                                       permissions: {required: true},
+                                       permissions: {required: false},
                                        email: {required: true, email: true, remote: {
                                        url: "/workspace/check-unique-email",
                                        type: "post"
                                        email: {required: true, email: true, remote: {
                                        url: "/workspace/check-unique-email",
                                        type: "post"
                                        dateOfBirth: {required: true, dateISO: true},
                                        mobile: {required: true, mobile: true},
 
                                        dateOfBirth: {required: true, dateISO: true},
                                        mobile: {required: true, mobile: true},
 
-                                       contactFirstName: {required: true},
-                                       contactFamilyName: {required: true},
-                                       contactOffice: {required: true, digits: true},
-                                       contactMobile: {required: true, mobile: true},
-                                       contactEmail: {required: true, email: true},
-
-                                       dealerType: {required: true},
-                                       clientType: {required: true},
-                                       companyType: {required: true},
-                                       businessName: {required: true},
-                                       name: {required: true, remote: {
-                                       url: "/workspace/check-unique-company",
-                                       type: "post"
-                                     }},
-                                       companyRegistrationNumber: {companyReg: true},
-                                       vatNumber: {digits: true},
+                                       //contactFirstName: {required: true},
+                                       //contactFamilyName: {required: true},
+                                       //contactOffice: {required: true, digits: true},
+                                       //contactMobile: {required: true, mobile: true},
+                                       //contactEmail: {required: true, email: true},
 
 
-                                       country: {required: true},
-                                       region: {required: true},
-                                       city: {required: true},
-                                       street: {required: true},
-                                       postalCode: {required: true, digits: true},
-                                       billingCountry: {required: true},
-                                       billingRegion: {required: true},
-                                       billingCity: {required: true},
-                                       billingStreet: {required: true},
-                                       billingPostalCode: {required: true, digits: true},
-                                       billingFirstName: {required: true},
-                                       billingFamilyName: {required: true},
-                                       billingOffice: {required: true, digits: true},
-                                       billingMobile: {required: true, mobile: true},
-                                       billingEmail: {required: true, email: true},
+                                       //dealerType: {required: true},
+                                       //clientType: {required: true},
+                                       //companyType: {required: true},
+                                       //businessName: {required: true},
+                                       //name: {required: true, remote: {
+                                    //   url: "/workspace/check-unique-company",
+                                    //   type: "post"
+                                    // }},
+                                       //companyRegistrationNumber: {companyReg: true},
+                                       //vatNumber: {digits: true},
 
 
-                                       ownerIdNumber: {minlength: 13, maxlength: 13, digits: true}
+                                       //country: {required: true},
+                                       //region: {required: true},
+                                       //city: {required: true},
+                                       //street: {required: true},
+                                       //postalCode: {required: true, digits: true},
+                                       //billingCountry: {required: true},
+                                       //billingRegion: {required: true},
+                                       //billingCity: {required: true},
+                                       //billingStreet: {required: true},
+                                       //billingPostalCode: {required: true, digits: true},
+                                       //billingFirstName: {required: true},
+                                       //billingFamilyName: {required: true},
+                                       //billingOffice: {required: true, digits: true},
+                                       //billingMobile: {required: true, mobile: true},
+                                       //billingEmail: {required: true, email: true},
+                    //
+                                       //ownerIdNumber: {minlength: 13, maxlength: 13, digits: true}
                                },
                                messages: {
                                        email: { email: "Must be a valid email address.", remote: "Email address already in use."},
                                },
                                messages: {
                                        email: { email: "Must be a valid email address.", remote: "Email address already in use."},
index e946889..8d8c0a8 100644 (file)
                                        var html = '<label class="control-label mobile-control-label" ';
                                        html += 'for="' + meta.id + '">' + meta.title + ':</label>';
                                        html += '<div class="input-prepend">';
                                        var html = '<label class="control-label mobile-control-label" ';
                                        html += 'for="' + meta.id + '">' + meta.title + ':</label>';
                                        html += '<div class="input-prepend">';
-                                       html += '<span class="add-on">+27</span>';
+                                       html += '<span class="add-on">+264</span>';
                                        html += '<input class="information-input mobile-information-input-short ' + (meta.style ? meta.style : '') + '" ';
                                        html += 'type="text" id="' + meta.id + '" name="' + meta.id + '"' + disabled + '>';
                                        html += '</div>';
                                        html += '<input class="information-input mobile-information-input-short ' + (meta.style ? meta.style : '') + '" ';
                                        html += 'type="text" id="' + meta.id + '" name="' + meta.id + '"' + disabled + '>';
                                        html += '</div>';
                                        {
                                                value = value.substring(1);
                                        }
                                        {
                                                value = value.substring(1);
                                        }
-                                       if ('string' == typeof value && '27' == value.substring(0,2))
+                                       if ('string' == typeof value && '264' == value.substring(0,2))
                                        {
                                                value = value.substring(2);
                                        }
                                        {
                                                value = value.substring(2);
                                        }
-                                       if ('string' == typeof value && '+27' == value.substring(0,3))
+                                       if ('string' == typeof value && '+264' == value.substring(0,3))
                                        {
                                                value = value.substring(3);
                                        }
                                        {
                                                value = value.substring(3);
                                        }
                                        {
                                                value = value.substring(1);
                                        }
                                        {
                                                value = value.substring(1);
                                        }
-                                       if (value && '+27' == value.substring(0,3))
+                                       if (value && '+264' == value.substring(0,3))
                                        {
                                                value = value.substring(3);
                                        }
                                        {
                                                value = value.substring(3);
                                        }
-                                       return '+27' + value;
+                                       return '+264' + value;
                                        break;
                                case 'htmltext':
                                        return $('#' + meta.id).html();
                                        break;
                                case 'htmltext':
                                        return $('#' + meta.id).html();
index 2f28fe1..e213137 100644 (file)
                                        constructor: 'GridContextFilter',
                                        items: {
 
                                        constructor: 'GridContextFilter',
                                        items: {
 
-                                               RefNum: {
-                                                       title: 'Search here:',
-                                                       style: 'filter-input-wrapper hidden-tablet hidden-phone',
-                                                       id: 'gridAuctionContext_RefNo',
-                                                       placeholder: 'Ref number',
-                                                       context: 'gridAuctionContext'
-                                               },
-                                               RegNum: {
-                                                       style: 'filter-input-wrapper hidden-tablet hidden-phone',
-                                                       id: 'gridAuctionContext_RegNo',
-                                                       placeholder: 'Registration number',
-                                                       context: 'gridAuctionContext'
-                                               },
-                                               DateFrom: {
-                                                       style: 'input-append date filter-input-wrapper-date mobile-width12p dfrom hidden-tablet hidden-phone',
-                                                       title: 'Search by date here',
-                                                       id: 'gridAuctionContext_DateFrom',
-                                                       placeholder: 'From',
-                                                       context: 'gridAuctionContext',
-                                                       append: '<i class="icon-calendar"></i>',
-                                                       readonly: true,
-                                                       bind: function () {
-                                                               $('#gridAuctionContext_DateFrom').change(function () {
-                                                                       _w.auction.dFrom = $(this).val();
-                                                               });
-                                                       }
-                                               },
-                                               DateTo: {
-                                                       style: 'input-append date filter-input-wrapper-date mobile-width12p dto hidden-tablet hidden-phone',
-                                                       id: 'gridAuctionContext_DateTo',
-                                                       placeholder: 'To',
-                                                       context: 'gridAuctionContext',
-                                                       append: '<i class="icon-calendar"></i>',
-                                                       readonly: true,
-                                                       bind: function () {
-                                                               $('#gridAuctionContext_DateTo').change(function () {
-                                                                       _w.auction.dTo = $(this).val();
-                                                               });
-                                                       }
-                                               },
+                                               //RefNum: {
+                                               //      title: 'Search here:',
+                                               //      style: 'filter-input-wrapper hidden-tablet hidden-phone',
+                                               //      id: 'gridAuctionContext_RefNo',
+                                               //      placeholder: 'Ref number',
+                                               //      context: 'gridAuctionContext'
+                                               //},
+                                               //RegNum: {
+                                               //      style: 'filter-input-wrapper hidden-tablet hidden-phone',
+                                               //      id: 'gridAuctionContext_RegNo',
+                                               //      placeholder: 'Registration number',
+                                               //      context: 'gridAuctionContext'
+                                               //},
+                                               //DateFrom: {
+                                               //      style: 'input-append date filter-input-wrapper-date mobile-width12p dfrom hidden-tablet hidden-phone',
+                                               //      title: 'Search by date here',
+                                               //      id: 'gridAuctionContext_DateFrom',
+                                               //      placeholder: 'From',
+                                               //      context: 'gridAuctionContext',
+                                               //      append: '<i class="icon-calendar"></i>',
+                                               //      readonly: true,
+                                               //      bind: function () {
+                                               //              $('#gridAuctionContext_DateFrom').change(function () {
+                                               //                      _w.auction.dFrom = $(this).val();
+                                               //              });
+                                               //      }
+                                               //},
+                                               //DateTo: {
+                                               //      style: 'input-append date filter-input-wrapper-date mobile-width12p dto hidden-tablet hidden-phone',
+                                               //      id: 'gridAuctionContext_DateTo',
+                                               //      placeholder: 'To',
+                                               //      context: 'gridAuctionContext',
+                                               //      append: '<i class="icon-calendar"></i>',
+                                               //      readonly: true,
+                                               //      bind: function () {
+                                               //              $('#gridAuctionContext_DateTo').change(function () {
+                                               //                      _w.auction.dTo = $(this).val();
+                                               //              });
+                                               //      }
+                                               //},
                                                MakeMobi: {
                                                        style: 'filter-input-wrapper filter-input-select',
                                                        placeholder: 'Make Mobi',
                                                MakeMobi: {
                                                        style: 'filter-input-wrapper filter-input-select',
                                                        placeholder: 'Make Mobi',
                                                        context: 'gridAuctionContext'
                                                },
                                                Buttons: {
                                                        context: 'gridAuctionContext'
                                                },
                                                Buttons: {
-                                                       actions: true,
-                                                       searchId: 'btnSearch',
-                                                       bindSearch: _w.auction.searchAuctionGrid,
-                                                       clearId: 'btnClearSearch',
-                                                       bindClear: _w.auction.clearAuctionGridContext
+                                                       //actions: true,
+                                                       //searchId: 'btnSearch',
+                                                       //bindSearch: _w.auction.searchAuctionGrid,
+                                                       //clearId: 'btnClearSearch',
+                                                       //bindClear: _w.auction.clearAuctionGridContext
 
                                                }
                                        }
 
                                                }
                                        }
                                'gridColumnHeaders': {
                                        constructor: 'GridColumnHeader',
                                        items: {
                                'gridColumnHeaders': {
                                        constructor: 'GridColumnHeader',
                                        items: {
-                                               Seller: {
-                                                       id: 'gridAuctionColumn_Seller',
-                                                       title: 'SELLER',
-                                                       orderAsc: {
-                                                               id: 'gridAuctionOrder_SellerAsc',
-                                                               bind: $.proxy(_w.auction.orderAuctionGrid, this, 'auction.auctionCompanyName', 'ASC')
-                                                       },
-                                                       orderDesc: {
-                                                               id: 'gridAuctionOrder_SellerDesc',
-                                                               bind: $.proxy(_w.auction.orderAuctionGrid, this, 'auction.auctionCompanyName', 'DESC')
-                                                       },
-                                                       style: 'hidden-phone'
-                                               },
+                                               //Seller: {
+                                               //      id: 'gridAuctionColumn_Seller',
+                                               //      title: 'SELLER',
+                                               //      orderAsc: {
+                                               //              id: 'gridAuctionOrder_SellerAsc',
+                                               //              bind: $.proxy(_w.auction.orderAuctionGrid, this, 'auction.auctionCompanyName', 'ASC')
+                                               //      },
+                                               //      orderDesc: {
+                                               //              id: 'gridAuctionOrder_SellerDesc',
+                                               //              bind: $.proxy(_w.auction.orderAuctionGrid, this, 'auction.auctionCompanyName', 'DESC')
+                                               //      },
+                                               //      style: 'hidden-phone'
+                                               //},
                                                Make: {
                                                        id: 'gridAuctionColumn_Make',
                                                        title: 'MAKE',
                                                Make: {
                                                        id: 'gridAuctionColumn_Make',
                                                        title: 'MAKE',
                                                },
                                                Region: {
                                                        id: 'gridAuctionColumn_Retail',
                                                },
                                                Region: {
                                                        id: 'gridAuctionColumn_Retail',
-                                                       title: 'REGION',
+                                                       title: 'TOWN',
                                                        orderAsc: {
                                                                id: 'gridAuctionOrder_RegionAsc',
                                                                bind: $.proxy(_w.auction.orderAuctionGrid, this, 'auction.regionName', 'ASC')
                                                        orderAsc: {
                                                                id: 'gridAuctionOrder_RegionAsc',
                                                                bind: $.proxy(_w.auction.orderAuctionGrid, this, 'auction.regionName', 'ASC')
                                'gridColumnFilters': {
                                        constructor: 'GridColumnFilter',
                                        items: {
                                'gridColumnFilters': {
                                        constructor: 'GridColumnFilter',
                                        items: {
-                                               Seller: {
-                                                       id: 'gridAuctionFilter_Seller',
-                                                       context: 'gridAuctionFilter'
-                                               },
+                                               //Seller: {
+                                               //      id: 'gridAuctionFilter_Seller',
+                                               //      context: 'gridAuctionFilter'
+                                               //},
                                                Make: {
                                                        id: 'gridAuctionFilter_Make',
                                                        context: 'gridAuctionFilter',
                                                Make: {
                                                        id: 'gridAuctionFilter_Make',
                                                        context: 'gridAuctionFilter',
                                                });
                                        },
                                        style: {
                                                });
                                        },
                                        style: {
-                                               Seller: 'hidden-phone',
+                                               Seller: 'hidden',
                                                Make: 'make hidden-phone',
                                                Model: 'hidden-phone',
                                                Type: 'type',
                                                Make: 'make hidden-phone',
                                                Model: 'hidden-phone',
                                                Type: 'type',
index d0a4053..abd5734 100644 (file)
                                                        + data.stock.type.name +  '</h5></div>'
                                        : '',
 
                                                        + data.stock.type.name +  '</h5></div>'
                                        : '',
 
-                               'seller' : data.stock.type
-                                       ? '<div class="row-fluid"><div class="span4"><h5><b>Seller Details:</b></h5></div><div class="span8"><h5>'
-                                                       + data.company.contact.firstName + ' ' + data.company.contact.familyName + ', '
-                                                       + data.company.contact.mobile + ', ' + data.company.name + '<br/>'
-                                                       + data.company.street + ', '
-                                                       + data.company.city.name + ', ' + data.company.region.name + ', '
-                                                       + data.company.postalCode + '</h5></div>'
-                                       : '',
+                               //'seller' : data.stock.type
+                                       //? '<div class="row-fluid"><div class="span4"><h5><b>Seller Details:</b></h5></div><div class="span8"><h5>'
+                               //                      + data.company.contact.firstName + ' ' + data.company.contact.familyName + ', '
+                                       //              + data.company.contact.mobile + ', ' + data.company.name + '<br/>'
+                                       //              + data.company.street + ', '
+                                       //              + data.company.city.name + ', ' + data.company.region.name + ', '
+                                       //              + data.company.postalCode + '</h5></div>'
+                               //      : '',
                                'vehicleYear' : {
                                        title       : 'Year',
                                        style       : 'bid-information',
                                'vehicleYear' : {
                                        title       : 'Year',
                                        style       : 'bid-information',
index de5df50..4f84a86 100644 (file)
@@ -19,8 +19,8 @@
                        '#/publichome'           : 'publichome',
 
                        // Brochure
                        '#/publichome'           : 'publichome',
 
                        // Brochure
-                       ''                       : 'home',
-                       '#/'                     : 'home',
+                       ''                       : 'dealerhome',
+                       '#/'                     : 'dealerhome',
                        '#/dealerhome'           : 'dealerhome',
                        '#/faq'                  : 'faq',
                        '#/login'                : 'login',
                        '#/dealerhome'           : 'dealerhome',
                        '#/faq'                  : 'faq',
                        '#/login'                : 'login',
index fdc4005..5ef3185 100644 (file)
                                                                var mobile = $('#mobile').val();
                                                                mobile = ('' == mobile)
                                                                        ? ''
                                                                var mobile = $('#mobile').val();
                                                                mobile = ('' == mobile)
                                                                        ? ''
-                                                                       : '+27' + mobile;
+                                                                       : '+264' + mobile;
                                                                var data = {
                                                                        "Reset":{
                                                                            "email"  : $('#email').val(),
                                                                var data = {
                                                                        "Reset":{
                                                                            "email"  : $('#email').val(),
index c03c4ce..a187a82 100644 (file)
        <i class="icon-shopping-cart icon-white"></i>
        My basket
 </button>
        <i class="icon-shopping-cart icon-white"></i>
        My basket
 </button>
-<input type="hidden" id="gridAuctionFilter_basket" class="gridAuctionFilter">
+<!--<input type="hidden" id="gridAuctionFilter_basket" class="gridAuctionFilter">-->
 </div>
 <div class="row-fluid page-filter-wrapper" id="[tid]_gridContextFilter">
 </div>
 <div class="row-fluid page-filter-wrapper" id="[tid]_gridContextFilter">
-       [gridContextFilter]
+       <!--[gridContextFilter]-->
 </div>
 
 <button type="button" id="btnBasketMobi" class="btn btn-basket btn-submit-search pull-left hidden-desktop">
 </div>
 
 <button type="button" id="btnBasketMobi" class="btn btn-basket btn-submit-search pull-left hidden-desktop">
index f98ecb5..6918b4a 100644 (file)
                                                                <div class="span9">
                                                                        <span id="[tid]_seller">[seller]</span>
                                                                </div>
                                                                <div class="span9">
                                                                        <span id="[tid]_seller">[seller]</span>
                                                                </div>
-                                                               <div class="span3 bid-emai-seller-button">
-                                                                       <button type="button" onClick="$('#dropCmp3').slideToggle();" class="btn pull-right">
-                                                                               Email the Seller
-                                                                       </button>
-                                                               </div>
+                                                               <!--<div class="span3 bid-emai-seller-button">-->
+                                                                       <!--<button type="button" onClick="$('#dropCmp3').slideToggle();" class="btn pull-right">-->
+                                                                               <!--Email the Seller-->
+                                                                       <!--</button>-->
+                                                               <!--</div>-->
                                                        </div>
                                                        <div class="row-fluid">
                                                                        <hr class="red">
                                                        </div>
                                                        <div class="row-fluid">
                                                                        <hr class="red">
@@ -79,7 +79,7 @@
                                                                                        <p>
                                                                                        The reconditioning expenses are, to the best of the Seller's knowledge and belief, accurate and the amounts quoted are reasonably market related.
                                                                                        <Br><Br>
                                                                                        <p>
                                                                                        The reconditioning expenses are, to the best of the Seller's knowledge and belief, accurate and the amounts quoted are reasonably market related.
                                                                                        <Br><Br>
-                                                                                       In this regard the Purchaser's attention is drawn to the provisions of clauses 8.3 and 9 of the Conditions of Sale (PART 3)
+                                                                                               In this regard the Purchaser's attention is drawn to the provisions of clauses 21 and 23 of the Conditions of Sale (PART 3)
                                                                                        </p>
                                                                                </div>
                                                                        </div>
                                                                                        </p>
                                                                                </div>
                                                                        </div>
 
 
                                                                    <!--  New HPI Report Here -->
 
 
                                                                    <!--  New HPI Report Here -->
-                                                                   <div class="HPIhide">
-                                                                   <div class="row-fluid hidden-phone" style="display: block;">&nbsp;</div>
-                                                                   <div class="hpiReport" style="display:block;">
-
-                                                                           <div class="control-group mobile-control-group row-fluid" style="display: block;" id="test">
-                                                                                       <div class="row_red">TransUnion HPI (Accident) Report</div>
-                                                                                       <div class="control-group mobile-control-group row-fluid" style="display: block;border:1px solid #d3d3d3;" id="">
-                                                                                               <div class="control-group mobile-control-group span6" style="padding-left:10px; padding-top:13px;">Last date requested:</div>
-                                                                                               <div class="control-group mobile-control-group span6" style="padding-left:10px;border-left:1px solid #d3d3d3; padding-top:13px;">
-                                                                                                       <div id="tuhpiDate"  class="span9">Not requested yet.</div>
-                                                                                                       <div class="span3"><button id="downloadTuhpi" class="btn pull-right span12" type="button" style="display: none; margin:-5px 0 0 0;">view</button></div>
-                                                                                               </div>
-                                                                               </div>
-                                                                               </div>
-                                                                       </div>
-                                                                       </div>
+                                                                   <!--<div class="HPIhide">-->
+                                                                   <!--<div class="row-fluid hidden-phone" style="display: block;">&nbsp;</div>-->
+                                                                   <!--<div class="hpiReport" style="display:block;">-->
+
+                                                                           <!--<div class="control-group mobile-control-group row-fluid" style="display: block;" id="test">-->
+                                                                                       <!--<div class="row_red">TransUnion HPI (Accident) Report</div>-->
+                                                                                       <!--<div class="control-group mobile-control-group row-fluid" style="display: block;border:1px solid #d3d3d3;" id="">-->
+                                                                                               <!--<div class="control-group mobile-control-group span6" style="padding-left:10px; padding-top:13px;">Last date requested:</div>-->
+                                                                                               <!--<div class="control-group mobile-control-group span6" style="padding-left:10px;border-left:1px solid #d3d3d3; padding-top:13px;">-->
+                                                                                                       <!--<div id="tuhpiDate"  class="span9">Not requested yet.</div>-->
+                                                                                                       <!--<div class="span3"><button id="downloadTuhpi" class="btn pull-right span12" type="button" style="display: none; margin:-5px 0 0 0;">view</button></div>-->
+                                                                                               <!--</div>-->
+                                                                               <!--</div>-->
+                                                                               <!--</div>-->
+                                                                       <!--</div>-->
+                                                                       <!--</div>-->
 
 
 
 
 
 
index 0d2ae50..67f4249 100644 (file)
                                         <p>VAT No. 4520254782</p>
                                         <p>7 Corobrick Road, Meadowdale, Edenvale, 1600</p>
                                 </div>
                                         <p>VAT No. 4520254782</p>
                                         <p>7 Corobrick Road, Meadowdale, Edenvale, 1600</p>
                                 </div>
-                                <p class="contact-no"><font size=5 color="#d52e31">Contact</br> 0861 00 70 70</font></p>
-                                <div class="contactpost head-office-info ">
-                                        <p>Head Office</p>
-                                        <p>021 824 1882/3 — <a href="mailto:info@bid4cars.com.na" title="">info@bid4cars.com.na</a></p>
-                                </div>
+                                <p class="contact-no"><font size=5 color="#d52e31">Contact</br> william@bid4cars.com.na</font></p>
+                                <!--<div class="contactpost head-office-info ">-->
+                                        <!--<p>Head Office</p>-->
+                                        <!--<p>021 824 1882/3 — <a href="mailto:info@bid4cars.com.na" title="">info@bid4cars.com.na</a></p>-->
+                                <!--</div>-->
 
                         </div>
                 </div>
 
                         </div>
                 </div>
                                 <div class="inputDiv"><input type="text" name="email" id="email" required placeholder="E-mail address" /></div>
                                 <div class="control-group mobile-control-group inputDivs">
                                     <div class="input-prepend">
                                 <div class="inputDiv"><input type="text" name="email" id="email" required placeholder="E-mail address" /></div>
                                 <div class="control-group mobile-control-group inputDivs">
                                     <div class="input-prepend">
-                                        <span class="add-on">+27</span>
+                                        <span class="add-on">+264</span>
                                         <span class="inputDiv" ><input type="text" name="mobile" required placeholder="Mobile phone" /></span>
                                     </div>
                                 </div>
                                 <div class="control-group mobile-control-group inputDivs">
                                     <div class="input-prepend">
                                         <span class="inputDiv" ><input type="text" name="mobile" required placeholder="Mobile phone" /></span>
                                     </div>
                                 </div>
                                 <div class="control-group mobile-control-group inputDivs">
                                     <div class="input-prepend">
-                                        <span class="add-on">+27</span>
+                                        <span class="add-on">+264</span>
                                         <span class="inputDiv"><input type="text" name="telephone" required placeholder="Telephone" /></span>
                                     </div>
                                 </div>
                                         <span class="inputDiv"><input type="text" name="telephone" required placeholder="Telephone" /></span>
                                     </div>
                                 </div>
index e4b8c91..c7860ce 100644 (file)
@@ -33,7 +33,7 @@
                                                        value="">
                                                </div>
                                                <div id="visiblePin" class="input-prepend">
                                                        value="">
                                                </div>
                                                <div id="visiblePin" class="input-prepend">
-                                                       <span class="add-on small">+27</span><input class="field"
+                                                       <span class="add-on small">+264</span><input class="field"
                                                        id="mobile" name="mobile" type="text" placeholder="mobile number">
                                                </div>
                                        </div>
                                                        id="mobile" name="mobile" type="text" placeholder="mobile number">
                                                </div>
                                        </div>
@@ -64,7 +64,7 @@
     </ul>
     <div class="footer_rgt">
             <ul>
     </ul>
     <div class="footer_rgt">
             <ul>
-                <li><a href="/#" title=""><img src="/images/flag01.png" alt="" /></a></li>
+                <!--<li><a href="/#" title=""><img src="/images/flag01.png" alt="" /></a></li>-->
                 <li><a href="/#" title=""><img src="/images/flag02.png" alt="" /></a></li>
             </ul>
             <div class="sig"><a href="/#/register" title="">Sign up</a></div>
                 <li><a href="/#" title=""><img src="/images/flag02.png" alt="" /></a></li>
             </ul>
             <div class="sig"><a href="/#/register" title="">Sign up</a></div>
index 921119c..d78ae3e 100644 (file)
                     <div class="inputDiv"><input type="text" name="email" id="email" required placeholder="E-mail address" /></div>
                     <div class="control-group mobile-control-group inputDivs">
                         <div class="input-prepend">
                     <div class="inputDiv"><input type="text" name="email" id="email" required placeholder="E-mail address" /></div>
                     <div class="control-group mobile-control-group inputDivs">
                         <div class="input-prepend">
-                            <span class="add-on">+27</span>
+                            <span class="add-on">+264</span>
                             <span class="inputDiv" ><input type="text" name="mobile" required placeholder="Mobile phone" /></span>
                         </div>
                     </div>
                     <div class="control-group mobile-control-group inputDivs">
                         <div class="input-prepend">
                             <span class="inputDiv" ><input type="text" name="mobile" required placeholder="Mobile phone" /></span>
                         </div>
                     </div>
                     <div class="control-group mobile-control-group inputDivs">
                         <div class="input-prepend">
-                            <span class="add-on">+27</span>
+                            <span class="add-on">+264</span>
                             <span class="inputDiv"><input type="text" name="telephone" required placeholder="Telephone" /></span>
                         </div>
                     </div>
                             <span class="inputDiv"><input type="text" name="telephone" required placeholder="Telephone" /></span>
                         </div>
                     </div>
index ab41c5d..47483de 100644 (file)
@@ -13,55 +13,55 @@ var template_register = function( static )
                        dateOfBirth : new App.TemplateElement.FieldComponent('dateOfBirth'),
                        mobile : new App.TemplateElement.FieldComponent('mobile'),
 
                        dateOfBirth : new App.TemplateElement.FieldComponent('dateOfBirth'),
                        mobile : new App.TemplateElement.FieldComponent('mobile'),
 
-                       contactFirstName : new App.TemplateElement.FieldComponent('contactFirstName'),
-                       contactFamilyName : new App.TemplateElement.FieldComponent('contactFamilyName'),
-                       contactOffice : new App.TemplateElement.FieldComponent('contactOffice'),
-                       contactMobile : new App.TemplateElement.FieldComponent('contactMobile'),
-                       contactEmail : new App.TemplateElement.FieldComponent('contactEmail'),
+                       //contactFirstName : new App.TemplateElement.FieldComponent('contactFirstName'),
+                       //contactFamilyName : new App.TemplateElement.FieldComponent('contactFamilyName'),
+                       //contactOffice : new App.TemplateElement.FieldComponent('contactOffice'),
+                       //contactMobile : new App.TemplateElement.FieldComponent('contactMobile'),
+                       //contactEmail : new App.TemplateElement.FieldComponent('contactEmail'),
 
 
-                       dealerType : new App.TemplateElement.FieldComponent('dealerType'),
-                       clientType : new App.TemplateElement.FieldComponent('clientType'),
-                       group : new App.TemplateElement.FieldComponent('group'),
-                       groupDivision : new App.TemplateElement.FieldComponent('groupDivision'),
-                       companyType : new App.TemplateElement.FieldComponent('companyType'),
-                       businessName : new App.TemplateElement.FieldComponent('businessName'),
-                       name : new App.TemplateElement.FieldComponent('name'),
-                       companyRegistrationNumber : new App.TemplateElement.FieldComponent('companyRegistrationNumber'),
-                       vatNumber : new App.TemplateElement.FieldComponent('vatNumber'),
-                       turmiNumber : new App.TemplateElement.FieldComponent('turmiNumber'),
-                       dealerStockNumber : new App.TemplateElement.FieldComponent('dealerStockNumber'),
-                       turnover : new App.TemplateElement.FieldComponent('turnover'),
-                       foundMethod : new App.TemplateElement.FieldComponent('foundMethod'),
-                       foundMethodDetail : new App.TemplateElement.FieldComponent('foundMethodDetail'),
+                       //dealerType : new App.TemplateElement.FieldComponent('dealerType'),
+                       //clientType : new App.TemplateElement.FieldComponent('clientType'),
+                       //group : new App.TemplateElement.FieldComponent('group'),
+                       //groupDivision : new App.TemplateElement.FieldComponent('groupDivision'),
+                       //companyType : new App.TemplateElement.FieldComponent('companyType'),
+                       //businessName : new App.TemplateElement.FieldComponent('businessName'),
+                       //name : new App.TemplateElement.FieldComponent('name'),
+                       //companyRegistrationNumber : new App.TemplateElement.FieldComponent('companyRegistrationNumber'),
+                       //vatNumber : new App.TemplateElement.FieldComponent('vatNumber'),
+                       //turmiNumber : new App.TemplateElement.FieldComponent('turmiNumber'),
+                       //dealerStockNumber : new App.TemplateElement.FieldComponent('dealerStockNumber'),
+                       //turnover : new App.TemplateElement.FieldComponent('turnover'),
+                       //foundMethod : new App.TemplateElement.FieldComponent('foundMethod'),
+                       //foundMethodDetail : new App.TemplateElement.FieldComponent('foundMethodDetail'),
 
 
-                       country : new App.TemplateElement.FieldComponent('country'),
-                       region : new App.TemplateElement.FieldComponent('region'),
-                       city : new App.TemplateElement.FieldComponent('city'),
-                       street : new App.TemplateElement.FieldComponent('street'),
-                       postalCode : new App.TemplateElement.FieldComponent('postalCode'),
-                       sameAsBusinessAddress : new App.TemplateElement.FieldComponent('sameAsBusinessAddress'),
-                       billingCountry : new App.TemplateElement.FieldComponent('billingCountry'),
-                       billingRegion : new App.TemplateElement.FieldComponent('billingRegion'),
-                       billingCity : new App.TemplateElement.FieldComponent('billingCity'),
-                       billingStreet : new App.TemplateElement.FieldComponent('billingStreet'),
-                       billingPostalCode : new App.TemplateElement.FieldComponent('billingPostalCode'),
-                       sameAsDealerContact : new App.TemplateElement.FieldComponent('sameAsDealerContact'),
-                       billingFirstName : new App.TemplateElement.FieldComponent('billingFirstName'),
-                       billingFamilyName : new App.TemplateElement.FieldComponent('billingFamilyName'),
-                       billingOffice : new App.TemplateElement.FieldComponent('billingOffice'),
-                       billingMobile : new App.TemplateElement.FieldComponent('billingMobile'),
-                       billingEmail : new App.TemplateElement.FieldComponent('billingEmail'),
+                       //country : new App.TemplateElement.FieldComponent('country'),
+                       //region : new App.TemplateElement.FieldComponent('region'),
+                       //city : new App.TemplateElement.FieldComponent('city'),
+                       //street : new App.TemplateElement.FieldComponent('street'),
+                       //postalCode : new App.TemplateElement.FieldComponent('postalCode'),
+                       //sameAsBusinessAddress : new App.TemplateElement.FieldComponent('sameAsBusinessAddress'),
+                       //billingCountry : new App.TemplateElement.FieldComponent('billingCountry'),
+                       //billingRegion : new App.TemplateElement.FieldComponent('billingRegion'),
+                       //billingCity : new App.TemplateElement.FieldComponent('billingCity'),
+                       //billingStreet : new App.TemplateElement.FieldComponent('billingStreet'),
+                       //billingPostalCode : new App.TemplateElement.FieldComponent('billingPostalCode'),
+                       //sameAsDealerContact : new App.TemplateElement.FieldComponent('sameAsDealerContact'),
+                       //billingFirstName : new App.TemplateElement.FieldComponent('billingFirstName'),
+                       //billingFamilyName : new App.TemplateElement.FieldComponent('billingFamilyName'),
+                       //billingOffice : new App.TemplateElement.FieldComponent('billingOffice'),
+                       //billingMobile : new App.TemplateElement.FieldComponent('billingMobile'),
+                       //billingEmail : new App.TemplateElement.FieldComponent('billingEmail'),
 
 
-                       ownerFirstName : new App.TemplateElement.FieldComponent('ownerFirstName'),
-                       ownerFamilyName : new App.TemplateElement.FieldComponent('ownerFamilyName'),
-                       ownerIdNumber : new App.TemplateElement.FieldComponent('ownerIdNumber'),
-                       owners : new App.TemplateElement.FieldComponent('owners'),
-
-                       docStockCertificate : new App.TemplateElement.FieldComponent('docStockCertificate'),
-                       docAddressProof : new App.TemplateElement.FieldComponent('docAddressProof'),
-                       docCopyOfId : new App.TemplateElement.FieldComponent('docCopyOfId'),
-                       docCopyOfDirectorId : new App.TemplateElement.FieldComponent('docCopyOfDirectorId'),
-                       docCompanyRegistration : new App.TemplateElement.FieldComponent('docCompanyRegistration'),
+                       //ownerFirstName : new App.TemplateElement.FieldComponent('ownerFirstName'),
+                       //ownerFamilyName : new App.TemplateElement.FieldComponent('ownerFamilyName'),
+                       //ownerIdNumber : new App.TemplateElement.FieldComponent('ownerIdNumber'),
+                       //owners : new App.TemplateElement.FieldComponent('owners'),
+            //
+                       //docStockCertificate : new App.TemplateElement.FieldComponent('docStockCertificate'),
+                       //docAddressProof : new App.TemplateElement.FieldComponent('docAddressProof'),
+                       //docCopyOfId : new App.TemplateElement.FieldComponent('docCopyOfId'),
+                       //docCopyOfDirectorId : new App.TemplateElement.FieldComponent('docCopyOfDirectorId'),
+                       //docCompanyRegistration : new App.TemplateElement.FieldComponent('docCompanyRegistration'),
 
                        subscribeNewsletter : new App.TemplateElement.FieldComponent('subscribeNewsletter'),
                        acceptTermsAndConditions : new App.TemplateElement.FieldComponent('acceptTermsAndConditions')
 
                        subscribeNewsletter : new App.TemplateElement.FieldComponent('subscribeNewsletter'),
                        acceptTermsAndConditions : new App.TemplateElement.FieldComponent('acceptTermsAndConditions')