Contact admin page updates
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 10 Aug 2018 18:08:47 +0000 (14:08 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 10 Aug 2018 18:08:47 +0000 (14:08 -0400)
updating header and footer

css/admin.css
views/admin/contacts/edit.html
views/admin/footer.html

index c3434ff..e4c720a 100644 (file)
@@ -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;
     }
index f31f691..7b527ea 100644 (file)
@@ -1,8 +1,17 @@
 <div id="glm-admin-contact-wrapper">
-    {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'}
+
+        <div class="wrap">
+            <h2>My Contact Profile</h2>
+            <div id="glm-admin-content-container">
+
     {/if}
 
     {if $userDeleted}
 </script>
 
 
-{include file='admin/footer.html'}
+{* include file='admin/footer.html' *}
+    </div> <!-- / admin content area -->
+</div> <!-- / wrap -->
index 6029dc1..139959b 100644 (file)
@@ -1,11 +1,12 @@
 
     </div> <!-- / admin content area -->
+    {*
     <div class="glm-copyright">
         {$glmPluginName}<br>
         Copyright &copy; 2014-{$thisYear} Gaslight Media - All Rights Reserved<br>
         Phone: 231-487-0692 - E-Mail: info@gaslightmedia.com<br>
         <a href="http://www.gaslightmedia.com">http://www.gaslightmedia.com</a>
     </div>
-     
-  
-</div> <!-- / wrap -->
\ No newline at end of file
+    *}
+
+</div> <!-- / wrap -->