Adding city search to member list view.
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 11 Jan 2019 19:21:29 +0000 (14:21 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 11 Jan 2019 19:21:29 +0000 (14:21 -0500)
Checks for city search flag and show the city drop down.

views/front/members/list.html

index 1efcd35..363ae9e 100755 (executable)
                                 {/if}
                             {/if}
 
+                            {if $settings.list_show_search_city}
+                                {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}
+
+
                             {if $settings.list_show_search_text}
                                 <div>
                                     By Name: <input type="text" name="textSearch" value="{$textSearch}" class="glm-form-text-input">