Add column for Boss/Employee feature/employees
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 14 Nov 2018 13:34:03 +0000 (08:34 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 14 Nov 2018 13:34:03 +0000 (08:34 -0500)
Show in a column which ones have employees.

views/admin/billing/accounts.html

index 7e10b5c..13442e3 100644 (file)
@@ -21,6 +21,7 @@
             <tr>
                 <th style="width:50px;">ID</th>
                 <th>Member Name</th>
+                <th>Boss/Employees</th>
                 <th>Billing Email</th>
                 <th>Anniversary Date</th>
                 <th>Renewal Date</th>
                     <tr class="glm-account-row{if $t@iteration is div by 2} alternate{/if}" data-id="{$t.id}">
                         <td> {$t.id} </td>
                         <td> <a class="account-link" href="{$adminUrl}?page=glm-members-admin-menu-member&glm_action=billing&member={$t.ref_dest}">{$t.ref_name}</a> </td>
+                        <td> {if $t.boss.value}Yes{/if} </td>
                         <td> {$t.email} </td>
                         <td> {$t.anniversary_date.date} </td>
                         <td> {$t.renewal_date.date} </td>
                     </tr>
                     <tr id="account-container-{$t.id}" class="glm-account-links glm-hidden{if $t@iteration is div by 2} alternate{/if}">
-                        <td colspan="5">
+                        <td colspan="6">
                             <span class="account-dashboard-link">
                                 <a class="account-member-dashboard" data-member="{$t.ref_dest}" href="{$adminUrl}?page=glm-members-admin-menu-member&member={$t.ref_dest}">Member Dashboard</a> |
                             </span>
@@ -58,7 +60,7 @@
                         <tr id="account-employees-{$t.id}"
                             class="{if $t@iteration is div by 2} alternate{/if}"
                             style="display: none; background-color: #fff;">
-                            <td colspan="5">
+                            <td colspan="6">
                                 <div class="glm-row" style="margin-bottom: 0px !important; margin-top: .5rem;">
                                     {foreach $t.employees as $emp}
                                         <div class="glm-columns glm-medium-2">{$emp.ref_name}</div>