From: Anthony Talarico Date: Fri, 17 Nov 2017 20:19:46 +0000 (-0500) Subject: moving the new item button in list view outside of the if data check X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=7cf5773ebe60fd11b7f7cc06fbd6d9b0f47169db;p=WP-Plugins%2Fglm-member-db-for-sale.git moving the new item button in list view outside of the if data check if there is no for sale data then the new item button wounldn't be visible. moved the button out of the conditional --- diff --git a/css/admin.css b/css/admin.css index 3a51ba9..af3d4c8 100644 --- a/css/admin.css +++ b/css/admin.css @@ -1,3 +1,3 @@ -.for-sale-list-wrapper .glm-row{margin:0 !important}.for-sale-list-wrapper .glm-required{color:red}.for-sale-list-wrapper .admin-item-label,.for-sale-list-wrapper .admin-item-input,.for-sale-list-wrapper .admin-item-list{padding:6px 0px 6px 2px}.for-sale-list-wrapper .admin-item-label .admin-item-data,.for-sale-list-wrapper .admin-item-input .admin-item-data,.for-sale-list-wrapper .admin-item-list .admin-item-data{margin-bottom:0px !important}.for-sale-list-wrapper .admin-list-edit-item{padding:5px}.for-sale-list-wrapper .admin-list-edit-items{position:absolute;right:0;max-width:100px;float:right}@media (max-width: 641px){.for-sale-list-wrapper .admin-list-edit-items{margin:0 auto;float:none}}.for-sale-list-wrapper .itemTitle-record{float:left}.for-sale-list-wrapper .admin-new-item{margin-bottom:15px}.for-sale-list-wrapper .admin-new-item .admin-new-item-link{padding:5px;background:#3D84D0;color:white;text-decoration:none;border-radius:4px}.for-sale-list-wrapper .no-padding{padding:0}.for-sale-list-wrapper .no-margin{margin:0}.for-sale-list-wrapper .admin-item-list-header{margin-bottom:20px;padding-bottom:2px;border-bottom:1px solid lightgray}.for-sale-list-wrapper .item-company-list-header,.for-sale-list-wrapper .item-date-list-header,.for-sale-list-wrapper .item-title-list-header{font-weight:bold;font-size:16px}.for-sale-list-wrapper .admin-item-list-row:nth-child(odd){background:#e3e3e5}.for-sale-list-wrapper .item-image{display:block;max-width:200px}.for-sale-list-wrapper .item-image-row{border-bottom:1px solid lightgray;padding-bottom:10px} +.admin-new-item{margin-bottom:15px}.admin-new-item .admin-new-item-link{padding:5px;background:#3D84D0;color:white;text-decoration:none;border-radius:4px}.for-sale-list-wrapper .glm-row{margin:0 !important}.for-sale-list-wrapper .glm-required{color:red}.for-sale-list-wrapper .admin-item-label,.for-sale-list-wrapper .admin-item-input,.for-sale-list-wrapper .admin-item-list{padding:6px 0px 6px 2px}.for-sale-list-wrapper .admin-item-label .admin-item-data,.for-sale-list-wrapper .admin-item-input .admin-item-data,.for-sale-list-wrapper .admin-item-list .admin-item-data{margin-bottom:0px !important}.for-sale-list-wrapper .admin-list-edit-item{padding:5px}.for-sale-list-wrapper .admin-list-edit-items{position:absolute;right:0;max-width:100px;float:right}@media (max-width: 641px){.for-sale-list-wrapper .admin-list-edit-items{margin:0 auto;float:none}}.for-sale-list-wrapper .itemTitle-record{float:left}.for-sale-list-wrapper .no-padding{padding:0}.for-sale-list-wrapper .no-margin{margin:0}.for-sale-list-wrapper .admin-item-list-header{margin-bottom:20px;padding-bottom:2px;border-bottom:1px solid lightgray}.for-sale-list-wrapper .item-company-list-header,.for-sale-list-wrapper .item-date-list-header,.for-sale-list-wrapper .item-title-list-header{font-weight:bold;font-size:16px}.for-sale-list-wrapper .admin-item-list-row:nth-child(odd){background:#e3e3e5}.for-sale-list-wrapper .item-image{display:block;max-width:200px}.for-sale-list-wrapper .item-image-row{border-bottom:1px solid lightgray;padding-bottom:10px} /*# sourceMappingURL=admin.css.map */ diff --git a/css/admin.css.map b/css/admin.css.map index a414064..f7e6c84 100644 --- a/css/admin.css.map +++ b/css/admin.css.map @@ -1 +1 @@ -{"version":3,"file":"admin.css","sources":["admin.scss"],"sourcesContent":[".for-sale-list-wrapper{\n .glm-row{\n margin: 0 !important;\n }\n .glm-required{\n color: red;\n }\n .admin-item-label,\n .admin-item-input,\n .admin-item-list{\n padding: 6px 0px 6px 2px;\n .admin-item-data{\n margin-bottom: 0px !important;\n }\n }\n .admin-list-edit-item{\n // float: right;\n padding: 5px;\n }\n .admin-list-edit-items{\n position: absolute;\n right: 0;\n // top: 6px;\n max-width: 100px;\n float: right;\n @media(max-width: 641px){\n margin: 0 auto;\n float: none;\n }\n }\n .itemTitle-record{\n float: left;\n }\n .admin-new-item{\n margin-bottom: 15px;\n }\n .admin-new-item .admin-new-item-link{\n padding: 5px;\n background: #3D84D0;\n color: white;\n text-decoration: none;\n border-radius: 4px;\n }\n .no-padding{\n padding: 0;\n }\n .no-margin{\n margin: 0;\n }\n .admin-item-list-header{\n margin-bottom: 20px;\n padding-bottom: 2px;\n border-bottom: 1px solid lightgray;\n }\n .admin-item-list-row{\n // padding-bottom: 5px;\n /* border-bottom: 1px solid lightgray;*/\n }\n .item-company-list-header,.item-date-list-header, .item-title-list-header{\n font-weight: bold;\n font-size: 16px;\n }\n .admin-item-list-row:nth-child(odd){\n background: #e3e3e5;\n }\n .item-image{\n display: block;\n max-width: 200px;\n }\n .item-image-row{\n border-bottom: 1px solid lightgray;\n padding-bottom: 10px;\n }\n}"],"names":[],"mappings":"AAAA,AACI,sBADkB,CAClB,QAAQ,AAAA,CACJ,MAAM,CAAE,YAAY,CACvB,AAHL,AAII,sBAJkB,CAIlB,aAAa,AAAA,CACT,KAAK,CAAE,GAAG,CACb,AANL,AAOI,sBAPkB,CAOlB,iBAAiB,CAPrB,AAQI,sBARkB,CAQlB,iBAAiB,CARrB,AASI,sBATkB,CASlB,gBAAgB,AAAA,CACZ,OAAO,CAAE,eAAe,CAI3B,AAdL,AAWQ,sBAXc,CAOlB,iBAAiB,CAIb,gBAAgB,CAXxB,AAWQ,sBAXc,CAQlB,iBAAiB,CAGb,gBAAgB,CAXxB,AAWQ,sBAXc,CASlB,gBAAgB,CAEZ,gBAAgB,AAAA,CACZ,aAAa,CAAE,cAAc,CAChC,AAbT,AAeI,sBAfkB,CAelB,qBAAqB,AAAA,CAEjB,OAAO,CAAE,GAAG,CACf,AAlBL,AAmBI,sBAnBkB,CAmBlB,sBAAsB,AAAA,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AApEL,AAqEI,sBArEkB,CAqElB,eAAe,AAAA,CACX,aAAa,CAAE,mBAAmB,CAClC,cAAc,CAAE,IAAI,CACvB"} \ No newline at end of file +{"version":3,"file":"admin.css","sources":["admin.scss"],"sourcesContent":[".admin-new-item{\n margin-bottom: 15px;\n}\n.admin-new-item .admin-new-item-link{\n padding: 5px;\n background: #3D84D0;\n color: white;\n text-decoration: none;\n border-radius: 4px;\n}\n.for-sale-list-wrapper{\n .glm-row{\n margin: 0 !important;\n }\n .glm-required{\n color: red;\n }\n .admin-item-label,\n .admin-item-input,\n .admin-item-list{\n padding: 6px 0px 6px 2px;\n .admin-item-data{\n margin-bottom: 0px !important;\n }\n }\n .admin-list-edit-item{\n // float: right;\n padding: 5px;\n }\n .admin-list-edit-items{\n position: absolute;\n right: 0;\n // top: 6px;\n max-width: 100px;\n float: right;\n @media(max-width: 641px){\n margin: 0 auto;\n float: none;\n }\n }\n .itemTitle-record{\n float: left;\n }\n \n .no-padding{\n padding: 0;\n }\n .no-margin{\n margin: 0;\n }\n .admin-item-list-header{\n margin-bottom: 20px;\n padding-bottom: 2px;\n border-bottom: 1px solid lightgray;\n }\n .admin-item-list-row{\n // padding-bottom: 5px;\n /* border-bottom: 1px solid lightgray;*/\n }\n .item-company-list-header,.item-date-list-header, .item-title-list-header{\n font-weight: bold;\n font-size: 16px;\n }\n .admin-item-list-row:nth-child(odd){\n background: #e3e3e5;\n }\n .item-image{\n display: block;\n max-width: 200px;\n }\n .item-image-row{\n border-bottom: 1px solid lightgray;\n padding-bottom: 10px;\n }\n}"],"names":[],"mappings":"AAAA,AAAA,eAAe,AAAA,CACX,aAAa,CAAE,IAAI,CACtB,AACD,AAAgB,eAAD,CAAC,oBAAoB,AAAA,CAChC,OAAO,CAAE,GAAG,CACZ,UAAU,CAAE,OAAO,CACnB,KAAK,CAAE,KAAK,CACZ,eAAe,CAAE,IAAI,CACrB,aAAa,CAAE,GAAG,CACrB,AACD,AACI,sBADkB,CAClB,QAAQ,AAA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AjDhC,CAiDgC,uBAAuB,AAAA,CACrE,WAAW,CAAE,IAAI,CACjB,SAAS,CAAE,IAAI,CAClB,AApDL,AAqDI,sBArDkB,CAqDlB,oBAAoB,AAAA,UAAW,CAAA,AAAA,GAAG,CAAC,CAC/B,UAAU,CAAE,OAAO,CACtB,AAvDL,AAwDI,sBAxDkB,CAwDlB,WAAW,AAAA,CACP,OAAO,CAAE,KAAK,CACd,SAAS,CAAE,KAAK,CACnB,AA3DL,AA4DI,sBA5DkB,CA4DlB,eAAe,AAAA,CACX,aAAa,CAAE,mBAAmB,CAClC,cAAc,CAAE,IAAI,CACvB"} \ No newline at end of file diff --git a/scss/admin.scss b/scss/admin.scss index 8c52029..b6fb2a6 100644 --- a/scss/admin.scss +++ b/scss/admin.scss @@ -1,3 +1,13 @@ +.admin-new-item{ + margin-bottom: 15px; +} +.admin-new-item .admin-new-item-link{ + padding: 5px; + background: #3D84D0; + color: white; + text-decoration: none; + border-radius: 4px; +} .for-sale-list-wrapper{ .glm-row{ margin: 0 !important; @@ -31,16 +41,7 @@ .itemTitle-record{ float: left; } - .admin-new-item{ - margin-bottom: 15px; - } - .admin-new-item .admin-new-item-link{ - padding: 5px; - background: #3D84D0; - color: white; - text-decoration: none; - border-radius: 4px; - } + .no-padding{ padding: 0; } diff --git a/views/admin/forSale/list.html b/views/admin/forSale/list.html index 37db377..5689664 100644 --- a/views/admin/forSale/list.html +++ b/views/admin/forSale/list.html @@ -6,11 +6,12 @@ {/if} {/if} +
+ New item +
{if $itemData}
-
- New item -
+
Topic
Forsale Item