From: Steve Sutton Date: Mon, 15 Jan 2018 21:53:58 +0000 (-0500) Subject: Update the account edit page with new field. X-Git-Tag: v1.0.0^2~177 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=9553aba1a628d403e96a6d4c8563bb218cc5d264;p=WP-Plugins%2Fglm-member-db-billing.git Update the account edit page with new field. Also added the field into the dataAbstract class for accounts. --- diff --git a/classes/data/dataAccounts.php b/classes/data/dataAccounts.php index 7c9c60a..e7666f5 100644 --- a/classes/data/dataAccounts.php +++ b/classes/data/dataAccounts.php @@ -145,6 +145,15 @@ class GlmDataAccounts extends GlmDataAbstract 'required' => true, ), + // Renewal Date + 'renewal_date' => array( + 'field' => 'renewal_date', + 'type' => 'date', + 'use' => 'a', + 'default' => '', + 'required' => false, + ), + // Payment Data 'payment_data' => array( 'field' => 'payment_data', diff --git a/views/admin/billing/editAccount.html b/views/admin/billing/editAccount.html index 436c942..147909d 100644 --- a/views/admin/billing/editAccount.html +++ b/views/admin/billing/editAccount.html @@ -39,6 +39,14 @@ + + Renewal Date + + + {if $account.fieldFail.renewal_date}

{$account.fieldFail.renewal_date}

{/if}
+ + + Billing Email @@ -110,6 +118,8 @@ jQuery(document).ready(function($){ // Setup the date picker for the input field with the name anniversary_date $('input[name="anniversary_date"]').datepicker(); + // Setup the date picker for the input field with the name renewal_date + $('input[name="renewal_date"]').datepicker(); // Flash certain elements for a short time after display $(".glm-flash-updated").fadeOut(500).fadeIn(500).fadeOut(500).fadeIn(500).fadeOut(500).fadeIn(500).fadeOut(500).fadeIn(500).fadeOut(500);