WIP billing account edit page
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 13 Apr 2018 21:09:05 +0000 (17:09 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 13 Apr 2018 21:09:05 +0000 (17:09 -0400)
Working on the employees
also redo the table into css div's

css/admin.css
models/admin/member/billing.php
views/admin/billing/editAccount.html

index e1ccd23..391b3cd 100644 (file)
 .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;
+}
index 0f429aa..7169c16 100644 (file)
@@ -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(
index ad5f3ea..371d5bc 100644 (file)
         </div>
     {/if}
 
+            <div class="glm-billing-field">
+                <div class="glm-billing-label">
+                    <strong>Associated Members/Employees</strong>
+                </div>
+                <div class="glm-billing-input">
+                    <select>
+                        <option value="">Select Member to Add</option>
+                    </select>
+                    {if $employees}
+                        {foreach $employees as $employee}
+                            <div class="glm-billing-employee">
+                                {$employee.ref_name}
+                                <label><input type="checkbox" name="delete[]" value="{$employee.ref_dest}"> Remove </label>
+                            </div>
+                        {/foreach}
+                    {/if}
+                </div>
+            </div>
+
     </fieldset>
 
     <fieldset>