Contact delete/back to list button edits, custom field styles
authorLaury GvR <laury@gaslightmedia.com>
Fri, 3 Aug 2018 17:56:44 +0000 (13:56 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 3 Aug 2018 17:57:01 +0000 (13:57 -0400)
- switch contact Delete and Back to List buttons
- recolor Delete button
- add custom field group name
- custom field labels restyled to fit their fields better

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

index 6abbdab..9e9d56c 100644 (file)
     border-radius: 3px;
     border: 1px solid darkseagreen;
 }
+#glm-admin-content-container #deleteContactButton {
+    background-color: #EC3131;
+    border: 1px solid darkred;
+    box-shadow: 0px 1px 0px darkred;
+}
+#glm-admin-content-container #deleteContactButton:hover {
+    background-color: #FF3131;
+    border: 1px solid darkred;
+    box-shadow: 0px -1px 0px darkred;
+}
 
 /* Input Fields CSS */
 input::placeholder {
@@ -201,6 +211,10 @@ input::placeholder {
     background: #f8ffff;
     padding: 10px;
 }
+#glm-table-profile #glm-members-custom-fields-glm-member-db-contacts .glm-custom-field-group-name {
+    margin: 0;
+    font-size: 15px;
+}
 #glm-table-profile fieldset {
     background: white;
     border: 1px solid lightgrey;
@@ -247,7 +261,13 @@ input::placeholder {
 #glm-table-profile.glm-admin-table {
     table-layout: fixed;
 }
-#glm-table-profile.glm-admin-table .glm-custom-field-label,
+#glm-table-profile.glm-admin-table .glm-custom-field-label {
+    clear: both;
+    display: block;
+    max-width: 100%;
+    padding-bottom: 2px;
+    width: 100%;
+}
 #glm-table-profile.glm-admin-table th {
     clear: both;
     display: block;
index 54562e8..cdac8c8 100644 (file)
 
     {if $option == 'create' || $option == 'edit'}
 
-    {if $fromMemberMenu}
-        <a href="{$thisUrl}?page=glm-members-admin-menu-member&glm_action=contacts&member={$memberID}" class="button button-primary glm-button glm-right">Return to Contact List</a>
-    {else}
-        <a href="{$thisUrl}?page=glm-members-admin-menu-contacts&glm_action=index&member={$memberID}" class="button button-primary glm-button glm-right">Return to Contact List</a>
-    {/if}
-
     {if $option == 'create'}
         <h2>Add New Contact</h2>
     {else}
         </div>
     {/if}
 
+    {if $fromMemberMenu}
+        <a href="{$thisUrl}?page=glm-members-admin-menu-member&glm_action=contacts&member={$memberID}" class="button button-primary glm-button glm-right">Return to Contact List</a>
+    {else}
+        <a href="{$thisUrl}?page=glm-members-admin-menu-contacts&glm_action=index&member={$memberID}" class="button button-primary glm-button glm-right">Return to Contact List</a>
+    {/if}
+
+
     <div id="glm-contact-fullprofile-toggle" class="">Expand All</div>
     {if $fromMemberMenu}
         <form action="{$thisUrl}?page=glm-members-admin-menu-member" method="post" enctype="multipart/form-data">