Add city to the search filter
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 12 Dec 2018 17:59:23 +0000 (12:59 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 12 Dec 2018 17:59:23 +0000 (12:59 -0500)
Brining in city search (wmta) for filters.

glm-member-db/views/front/members/list.html

index c0141c3..483a646 100644 (file)
                                 {/if}
                             {/if}
 
+                            {if $cities|@count gt 0}
+                            <div>
+                                By Cities:
+                                <select name="cityUserSearch[]">
+                                    {if $cities|@count gt 1}
+                                        <option value"">(all)</option>
+                                    {/if}
+                                    {foreach from=$cities item=v}
+                                        <option value="{$v.id}" {if $v.default} selected="selected"{/if}>
+                                            {$v.name}
+                                        </option>
+                                    {/foreach}
+                                </select>
+                            </div>
+                            {/if}
+
+
                             {if $settings.list_show_search_text}
                                 <div>
                                     By Name: <input type="text" name="textSearch" value="{$textSearch}" class="glm-form-text-input">