From 6b4a231832c32afd2d079e169adcb7650096635d Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Mon, 17 Sep 2018 16:56:30 -0400 Subject: [PATCH] Staff list default display adjusted --- css/front.css | 23 ++++-- models/front/staff/list.php | 24 +------ views/front/staff/list.html | 138 +++++++----------------------------- 3 files changed, 48 insertions(+), 137 deletions(-) diff --git a/css/front.css b/css/front.css index 2738dda..ca77b84 100644 --- a/css/front.css +++ b/css/front.css @@ -1,7 +1,15 @@ +/* List View Styles */ +.glm-staff-container { + /* Parent element */ +} +.paging-container { + width: 100%; + overflow: hidden; +} .glm-staff-block-wrapper { float: left; padding: 10px; - width: 33%; + width: 100%; } @media (min-width: 641px) and (max-width: 1024px) { .glm-staff-block-wrapper { @@ -18,14 +26,21 @@ } } .glm-staff-block { - /* border: 1px solid grey; */ - /* box-shadow: 1px 1px 1px 1px grey; */ + border: 1px solid lightgrey; margin-bottom: 20px; - text-align: center; width: 100%; + border-radius: 3px; + padding: 20px; + max-width: 600px; + margin-left: auto; + margin-right: auto; } .glm-staff-name { font-weight: bold; + text-transform: none; + font-style: normal; + font-size: 24px; + text-decoration: none; } diff --git a/models/front/staff/list.php b/models/front/staff/list.php index 96449b0..ddbbaaa 100644 --- a/models/front/staff/list.php +++ b/models/front/staff/list.php @@ -111,22 +111,12 @@ class GlmMembersFront_staff_list extends GlmDatastaff $where = ''; $whereSep = ''; - $filterPending = false; - $filterArchived = false; - $filterFeatured = false; $filterName = false; $haveFilter = false; $textSearch = ''; - $blankStart = false; - $citySearchSelect = false; - $membersFound = false; - $catSearchSelected = false; - $regionSearchSelected = false; - $mapItems = false; - $multiSelectCats = false; + $staffFound = false; $filteredStaffFound = false; $list = false; - $citySearchSelected = false; // Paging Parameters $textSearch = ''; @@ -265,7 +255,7 @@ class GlmMembersFront_staff_list extends GlmDatastaff // If we have list entries - even if it's an empty list $success = true; $haveStaff = false; - if (!$blankStart && $list !== false) { + if ( $list !== false) { $success = true; @@ -293,7 +283,7 @@ class GlmMembersFront_staff_list extends GlmDatastaff - // Compile template data + // Compile template datas $templateData = array( 'list' => $list, 'staffData' => $list, @@ -301,19 +291,11 @@ class GlmMembersFront_staff_list extends GlmDatastaff 'haveStaff' => $haveStaff, 'staff' => $list, 'staffFound' => $staffFound, - 'mapItems' => $mapItems, 'haveFilter' => $haveFilter, - 'filterArchived' => $filterArchived, - 'filterFeatured' => $filterFeatured, - 'filterPending' => $filterPending, 'filterName' => stripslashes($filterName), 'textSearch' => $textSearch, - 'catSearchSelected' => $catSearchSelected, - 'citySearchSelected' => $citySearchSelected, - 'regionSearchSelected' => $regionSearchSelected, 'alphaList' => $alphaList, 'alphaSelected' => $alphaSelected, - 'blankStart' => $blankStart, 'view' => $view, // Paging parameters diff --git a/views/front/staff/list.html b/views/front/staff/list.html index 069ce97..9d4e29f 100644 --- a/views/front/staff/list.html +++ b/views/front/staff/list.html @@ -18,7 +18,7 @@
{/if}
- showing {$start} through {$lastDisplayed} of {$filteredMembersFound} + showing {$start} through {$lastDisplayed} of {$filteredStaffFound} {/if} @@ -33,22 +33,40 @@ {$staffVal.lname} + + + {$staffVal.email} + + +
+ + Ext: + {$staffVal.extension} - - {$staffVal.building} + +
+ + + Department: {$staffVal.department} + +
+ + + Building: + + + {$staffVal.building} +
- - Email - {/foreach} @@ -63,115 +81,11 @@
{/if}
- showing {$start} through {$lastDisplayed} of {$filteredMembersFound} + showing {$start} through {$lastDisplayed} of {$filteredStaffFound} {/if} {else} Sorry, no staff members found. {/if} - - - \ No newline at end of file + \ No newline at end of file -- 2.17.1