adding conditional to check if there are any search results, if not, display
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 13 Mar 2017 18:48:24 +0000 (14:48 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 13 Mar 2017 18:48:24 +0000 (14:48 -0400)
no results found

views/front/obits/searchResults.html

index 853a19d..8683336 100644 (file)
                     <th>Maiden Name</th>
                   </tr>
               </thead>
+               {if $obits}
                 {foreach from=$obits item=i}
                     <tr>
                         <td>{$i.b_yr_range}</td>
                         <td>{$i.maiden_other}</td>
                     </tr>
                 {/foreach}
+              {else}
+                 <tr>
+                      No Results
+                 </tr>
+                 
+              {/if}
             </table>
         </div>
     </form>