From: Steve Sutton Date: Fri, 10 Aug 2018 18:08:47 +0000 (-0400) Subject: Contact admin page updates X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=c785a2160f060ef132eef4a65927493f18061ec1;p=WP-Plugins%2Fglm-member-db-contacts.git Contact admin page updates updating header and footer --- diff --git a/css/admin.css b/css/admin.css index c3434ff..e4c720a 100644 --- a/css/admin.css +++ b/css/admin.css @@ -456,12 +456,12 @@ display: inline-block; margin-right: 5px; } -/* +/* Max width before this PARTICULAR table gets nasty This query will take effect for any screen smaller than 760px and also iPads specifically. */ -@media +@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) { @@ -475,35 +475,35 @@ only screen and (max-width: 760px), #wpbody-content #glm-admin-contact-wrapper #searchForm tbody, #wpbody-content #glm-admin-contact-wrapper #searchForm th, #wpbody-content #glm-admin-contact-wrapper #searchForm td, - #wpbody-content #glm-admin-contact-wrapper #searchForm tr { - display: block; + #wpbody-content #glm-admin-contact-wrapper #searchForm tr { + display: block; } - + /* Hide table headers (but not display: none;, for accessibility) */ - #wpbody-content #glm-admin-contact-wrapper #searchForm thead tr { + #wpbody-content #glm-admin-contact-wrapper #searchForm thead tr { position: absolute; top: -9999px; left: -9999px; } - + #wpbody-content #glm-admin-contact-wrapper #searchForm tr { border: 1px solid #ccc; } - - #wpbody-content #glm-admin-contact-wrapper #searchForm td { + + #wpbody-content #glm-admin-contact-wrapper #searchForm td { /* Behave like a "row" */ border: none; - border-bottom: 1px solid #eee; + border-bottom: 1px solid #eee; position: relative; - padding-left: 25%; + padding-left: 25%; } - - #wpbody-content #glm-admin-contact-wrapper #searchForm td:before { + + #wpbody-content #glm-admin-contact-wrapper #searchForm td:before { /* Now like a table header */ position: absolute; /* Top/left values mimic padding */ top: 6px; left: 6px; - width: 25%; - padding-right: 10px; + width: 25%; + padding-right: 10px; white-space: nowrap; } /* Label the data */ @@ -513,7 +513,7 @@ only screen and (max-width: 760px), #wpbody-content #glm-admin-contact-wrapper #searchForm td:nth-of-type(4):before { content: "Access"; } #wpbody-content #glm-admin-contact-wrapper #searchForm td:nth-of-type(5):before { content: "User"; } #wpbody-content #glm-admin-contact-wrapper #searchForm td:nth-of-type(6):before { content: "Entity"; } - + /* Table styles */ #wpbody-content #glm-admin-contact-wrapper #searchForm .wp-list-table { max-width: 100%; @@ -534,7 +534,7 @@ only screen and (max-width: 760px), text-align: center; } #glm-admin-contact-wrapper .glm-contact-top-buttons > * { - margin: 10px auto 10px; + /* margin: 10px auto 10px; */ float: none; clear: both; } diff --git a/views/admin/contacts/edit.html b/views/admin/contacts/edit.html index f31f691..7b527ea 100644 --- a/views/admin/contacts/edit.html +++ b/views/admin/contacts/edit.html @@ -1,8 +1,17 @@
- {if $fromMemberMenu} - {include file='admin/member/header.html'} + + {if !$contactEditOwnRecord} + {if $fromMemberMenu} + {include file='admin/member/header.html'} + {else} + {include file='admin/contacts/header.html'} + {/if} {else} - {include file='admin/contacts/header.html'} + +
+

My Contact Profile

+
+ {/if} {if $userDeleted} @@ -1327,4 +1336,6 @@ -{include file='admin/footer.html'} +{* include file='admin/footer.html' *} +
+
diff --git a/views/admin/footer.html b/views/admin/footer.html index 6029dc1..139959b 100644 --- a/views/admin/footer.html +++ b/views/admin/footer.html @@ -1,11 +1,12 @@
+ {* - - - \ No newline at end of file + *} + +