From: Laury GvR Date: Fri, 3 Aug 2018 16:59:22 +0000 (-0400) Subject: Expand all button fixed - update button green X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=0e8fccc21f3ccf21dec3d5f7c6a837c934143aa4;p=WP-Plugins%2Fglm-member-db-contacts.git Expand all button fixed - update button green --- diff --git a/css/admin.css b/css/admin.css index 03b5ec3..a85e54d 100644 --- a/css/admin.css +++ b/css/admin.css @@ -47,15 +47,15 @@ } @media only screen and (max-width: 639px) { .glm-contact-content-toggle { - margin-top: 50px; + margin-top: 10px; } } #glm-admin-content-container .glm-contact-content-toggle h3 { color: #32373c; font-size: 13px; line-height: 1.6; - margin-bottom: 5px; - margin-top: 0; + margin-bottom: 2px; + margin-top: 2px; } #glm-contact-fullprofile-toggle.selected { box-shadow: 1px 1px 2px lightgrey inset; @@ -129,6 +129,12 @@ #glm-table-profile .glm-contact-sub-data-links .glm-contact-link-to-top { float: right; } +#glm-table-profile #updateContact { + background: lightgreen; + padding: 7px 14px; + border-radius: 3px; + border: 1px solid darkseagreen; +} /* Input Fields CSS */ input::placeholder { @@ -164,13 +170,6 @@ input::placeholder { display: block; overflow: hidden; } -#glm-table-profile.glm-admin-table th { - color: #515151; - font-size: 12px; - padding-bottom: 14px; - padding-top: 14px; - line-height: 1.6px; -} #glm-table-profile.glm-admin-table td.glm-contact-citybox { max-width: 320px; } @@ -200,9 +199,29 @@ input::placeholder { padding: 10px; margin-bottom: 5px; } +#glm-table-profile #glm-members-custom-fields-glm-member-db-contacts .glm-custom-field-label { + font-weight: normal; +} +#glm-table-profile #glm-members-custom-fields-glm-member-db-contacts fieldset { + background: #f8ffff; + padding: 10px; +} +#glm-table-profile fieldset { + background: white; + border: 1px solid lightgrey; + margin-bottom: 10px; +} +#glm-table-profile fieldset legend { + text-decoration: underline; + font-size: 15px; + margin-left: 5px; + margin-bottom: 10px; +} #glm-table-profile .glm-admin-table.glm-admin-table-inner { border-top-left-radius: 0; border-top-right-radius: 0; + max-width: 100%; + display: block; } #glm-table-profile.glm-admin-table > tbody > tr > td { display: block; @@ -219,52 +238,45 @@ input::placeholder { #glm-table-profile .glm-item-container { float: left; } -#glm-table-profile fieldset { - background: white; - border: 1px solid lightgrey; - margin-bottom: 10px; -} -#glm-table-profile #glm-members-custom-fields-glm-member-db-contacts fieldset { - background: #f8ffff; - padding: 10px; + +#glm-table-profile.glm-admin-table th { + color: #515151; + font-size: 13px; + padding-bottom: 14px; + padding-top: 14px; + line-height: 1.6px; } -#glm-table-profile fieldset legend { - text-decoration: underline; +#glm-table-profile input[type=text] { font-size: 15px; - margin-left: 5px; - margin-bottom: 10px; } -@media only screen and (max-width: 9999px) { - #glm-table-profile input[type=text] { - font-size: 15px; - } - #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 th { - clear: both; - display: block; - max-width: 100%; - padding-bottom: 7px; - width: 100%; - } - #glm-table-profile.glm-admin-table tr { - display: block; - margin-bottom: 10px; - } +#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 th { + clear: both; + display: block; + max-width: 100%; + padding-bottom: 7px; + width: 100%; +} +#glm-table-profile.glm-admin-table tr { + display: block; + margin-bottom: 5px; +} +#glm-table-profile.glm-admin-table .glm-custom-field, +#glm-table-profile.glm-admin-table td { + clear: both; + display: block; + width: 100%; + max-width: 640px; +} +@media only screen and (max-width: 639px) { + .glm-form-text-input-short, + .glm-form-text-input-medium, #glm-table-profile.glm-admin-table .glm-custom-field, #glm-table-profile.glm-admin-table td { - clear: both; - display: block; - width: 100%; - max-width: 640px; - } - @media only screen and (max-width: 639px) { - #glm-table-profile.glm-admin-table .glm-custom-field, - #glm-table-profile.glm-admin-table td { - max-width: 100%; - } + max-width: 240px; } } diff --git a/views/admin/contacts/edit.html b/views/admin/contacts/edit.html index dc2362c..32ab7d1 100644 --- a/views/admin/contacts/edit.html +++ b/views/admin/contacts/edit.html @@ -141,7 +141,9 @@
Expand All
-
Account Settings
+
+

Account Settings

+
@@ -200,7 +202,9 @@
-
Account Profile
+
+

Account Profile

+
@@ -434,7 +438,7 @@
-

Account Contact Info

+

Account Contact Info

@@ -578,7 +582,7 @@
-

Organization/Company Information

+

Organization/Company Information

@@ -759,7 +763,7 @@ {if apply_filters( 'glm-members-billing-enabled', false )}
-

Billing Info

+

Billing Info

@@ -773,7 +777,7 @@ {/if}
-

+

{if apply_filters( 'glm-members-billing-contact-tab-name', '' )} {apply_filters( 'glm-members-billing-contact-tab-name', '' )} {else} @@ -799,7 +803,7 @@

-

Notes

+

Notes

@@ -873,7 +877,7 @@

* Required

- + {/if} @@ -1013,16 +1017,23 @@ var target = $(this).attr("id").slice(0, -7); } $("#"+target+"-container").slideToggle("fast", "swing", function() {}); - $("#"+target+"-toggle").toggleClass("selected"); - fullProfileCheck(target); + if ($("#"+target+"-toggle").hasClass("selected")) { + $("#"+target+"-toggle").removeClass("selected"); + $("#glm-contact-fullprofile-toggle").removeClass("selected"); + } else { + $("#"+target+"-toggle").addClass("selected"); + } }); // Change the toggle button based on whether all the content sections are expanded function fullProfileCheck(target) { if ($("#glm-contact-info-profile > .glm-contact-content-toggle.selected").length == $("#glm-contact-info-profile > .glm-contact-content-toggle").length) { $("#glm-contact-fullprofile-toggle").addClass("selected"); + console.log("Select!"); } else { $("#glm-contact-fullprofile-toggle").removeClass("selected"); + console.log("UNSelect!"); + } } @@ -1064,6 +1075,7 @@ // Get new city name var newCityName = $('#newCityName').val(); + newCityName = $('#newCityName').replace(/"/g, ''); // If no name is supplied, notify used it's required if (newCityName == '') { @@ -1124,6 +1136,7 @@ // Get new city name var newBusinessCityName = $('#newBusinessCityName').val(); + newBusinessCityName = $('#newBusinessCityName').replace(/"/g, ''); // If no name is supplied, notify used it's required if (newBusinessCityName == '') {