From: Steve Sutton Date: Fri, 13 Apr 2018 21:09:05 +0000 (-0400) Subject: WIP billing account edit page X-Git-Tag: v1.0.0^2~51 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=ce023aaa171e858f8c3c9c2880bcf88fa94a0dd6;p=WP-Plugins%2Fglm-member-db-billing.git WIP billing account edit page Working on the employees also redo the table into css div's --- diff --git a/css/admin.css b/css/admin.css index e1ccd23..391b3cd 100644 --- a/css/admin.css +++ b/css/admin.css @@ -115,3 +115,16 @@ .glm-billing-form input[type=submit] { margin-top: 20px; } + +/* css for the billing info form */ +.glm-billing-employee { + width: 100%; + background-color: #eee; + margin: 1px; + padding: 5px; +} +.glm-billing-employee label { + width: 90px; + display: inline; + float: right; +} diff --git a/models/admin/member/billing.php b/models/admin/member/billing.php index 0f429aa..7169c16 100644 --- a/models/admin/member/billing.php +++ b/models/admin/member/billing.php @@ -391,6 +391,9 @@ class GlmMembersAdmin_member_billing // extends GlmDataBilling } } + // Get a list of this accounts employees. If they have any. + $employees = $BillingSupport->getListOfAccountEmployees( $this->memberID ); + // Need to see if there's an account for this member. $accountID = $this->wpdb->get_var( $this->wpdb->prepare( diff --git a/views/admin/billing/editAccount.html b/views/admin/billing/editAccount.html index ad5f3ea..371d5bc 100644 --- a/views/admin/billing/editAccount.html +++ b/views/admin/billing/editAccount.html @@ -57,6 +57,25 @@ {/if} +
+
+ Associated Members/Employees +
+
+ + {if $employees} + {foreach $employees as $employee} +
+ {$employee.ref_name} + +
+ {/foreach} + {/if} +
+
+