From 2f7b7cf7cb42196b6d2a0fa73ff16d4f10d4d0be Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 2 Aug 2018 12:15:43 -0400 Subject: [PATCH] Fixed contact fields not saving, added transition focus effect to text fields --- css/admin.css | 5 +++ views/admin/contacts/edit.html | 71 ++++++++++++++++++++++++++-------- 2 files changed, 60 insertions(+), 16 deletions(-) diff --git a/css/admin.css b/css/admin.css index 88e6d85..1bb343f 100644 --- a/css/admin.css +++ b/css/admin.css @@ -143,6 +143,11 @@ input::placeholder { outline: 0; transition: 50ms border-color ease-in-out; padding: 4px 7px; + transition: 0.2s box-shadow ease-in-out; +} +#glm-table-profile input[type=text]:focus { + box-shadow: inset 0px -1px 5px 0px rgba(50,50,200,.7); + transition: 0.2s box-shadow ease-in-out; } #glm-table-profile.glm-admin-table [name="notes"] { width: 100%; diff --git a/views/admin/contacts/edit.html b/views/admin/contacts/edit.html index 9787c46..76f881e 100644 --- a/views/admin/contacts/edit.html +++ b/views/admin/contacts/edit.html @@ -228,7 +228,7 @@ - + Active @@ -236,7 +236,7 @@ - + Primary Contact @@ -758,20 +758,7 @@ - {if apply_filters( 'glm-members-billing-enabled', false )} -
-

Billing Info

-
-
- -
- {/if} +

@@ -820,6 +807,58 @@

+
+

Removed Items

+ Publish on front end + Use for Billing +
+
+
+ + + + + + + + + + + + + +
Contact Type + + {if $contactInfo.fieldFail.contact_type}

{$contactInfo.fieldFail.contact_type}

{/if} +
County + + {if $contactInfo.fieldFail.county}

{$contactInfo.fieldFail.county}

{/if} +
Position/Responsibilities + {php} + wp_editor('{$contactInfo.fieldData.descr|escape:quotes}', 'glm_descr', array( + 'quicktags' => false, + 'media_buttons' => false, + 'wpautop' => false, + 'textarea_name' => 'descr', + 'editor_height' => 100, // Height in px, overrides editor_rows + // 'textarea_rows' => 4, + )); + {/php} + {if $contactInfo.fieldFail.descr}

{$contactInfo.fieldFail.descr}

{/if} +
+ +
+
+

* Required

-- 2.17.1