From: Steve Sutton Date: Thu, 4 Jan 2018 14:04:25 +0000 (-0500) Subject: Adding additional fields to attendee list output. X-Git-Tag: v1.0.0^2~102 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=ca8449c17ac55522f3741c841229837c1969fffd;p=WP-Plugins%2Fglm-member-db-registrations.git Adding additional fields to attendee list output. Adding show hide link at end to view custom fields. --- diff --git a/views/admin/registrations/eventRegistrants.html b/views/admin/registrations/eventRegistrants.html index ced4aaa..5ad3add 100644 --- a/views/admin/registrations/eventRegistrants.html +++ b/views/admin/registrations/eventRegistrants.html @@ -52,6 +52,9 @@ Rate Status   + {if apply_filters('glm-members-customfields-plugin-active', false)} +   + {/if} @@ -59,6 +62,7 @@ {foreach $registrants as $r} {$r.fname} {$r.lname} + {$r.account.city} {$r.account.state.value} {$r.account.phone} @@ -67,7 +71,23 @@ {$r.rate_name} {$r.request_status_name} Request + {if apply_filters('glm-members-customfields-plugin-active', false)} + Additional Fields + {/if} + {if apply_filters('glm-members-customfields-plugin-active', false)} + + + {if $r.custom_data} + {foreach $r.custom_data as $cHeader => $cValue} + + {$cHeader} {$cValue} + + {/foreach} + {/if} + + + {/if} {/foreach} {else} (no registrants listed) @@ -174,6 +194,12 @@ jQuery(document).ready(function($){ $(this).prop('checked', false); }); }); + $('.glm-view-fields').click(function(e){ + e.preventDefault(); + var field_id = $(this).data('id'); + console.log(field_id); + $( field_id ).toggle(); + }); });