adding link icon to the last name of the results table to make it stand out
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 5 Apr 2017 18:30:30 +0000 (14:30 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 5 Apr 2017 18:30:30 +0000 (14:30 -0400)
assets/link.png [new file with mode: 0644]
css/front.css
models/front/obits/search.php
views/front/obits/searchResults.html

diff --git a/assets/link.png b/assets/link.png
new file mode 100644 (file)
index 0000000..c0c2f45
Binary files /dev/null and b/assets/link.png differ
index 95f2697..a5f822c 100644 (file)
@@ -173,6 +173,7 @@ table.footable{
 }
 .glm-alpha-link, .detail-link{
     color: #1d3961;
+    text-decoration: underline;
 }
 .glm-alpha-link.selected-alpha{
     color: #a62800;
@@ -238,6 +239,18 @@ table.footable{
     }
 }
 /* FOO TABLE STYLES */
+.footable-first-column .detail-link {
+ background-attachment: scroll !important;
+ background-clip: border-box !important;
+ background-color: rgba(0, 0, 0, 0) !important;
+ background-image: url("../assets/link.png") !important;
+ background-origin: padding-box !important;
+ background-position: left 4px;
+ background-repeat: no-repeat;
+ background-size: 13px auto;
+ display: block;
+ padding-left: 20px;
+}
 body .footable > thead > tr > th, .footable > thead > tr > td{
     background-color: #3B76C4 !important;
     border: 1px solid #3B76C4;
index 3bcb6be..a8e6948 100644 (file)
@@ -114,7 +114,7 @@ class GlmMembersFront_obits_search extends GlmDataObits
         $logic_dropdown     = array('Contains' => 'LIKE' ,'Starts With' => 'LIKE%','Equals' => '=', 'More than' => '>', 'Less than' => '<');
         
         $per_page           = isset( $_REQUEST['results-limit']) ? (int)filter_var( $_REQUEST['results-limit'], FILTER_SANITIZE_STRING) : 50;
-
+//        echo $per_page;
         // only execute search if the search button is clicked or there are search params in the url
         if ( isset( $_REQUEST['searchButton'] ) || !empty( $_GET['alpha'] ) || !empty( $_GET['pageSelect'] ) ){
    
index bada8a4..c942d44 100644 (file)
               
                 {foreach from=$obits item=i}
                     <tr>
-                        <td> <a class="detail-link"  href="{$thisUrl}/obits-detail/?obit={$i.id}" >{$i.last_name}</a> </td>
+                        <td> <a class="detail-link"  href="{$thisUrl}obits-detail/?obit={$i.id}" >{$i.last_name}</a> </td>
                         <td>{$i.first_mid}</td>
                         <td>
                             {if $i.b_year == 0}