From 432963b40fc0d4ce67cc38ae333baa454eed337d Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 26 Jul 2018 16:08:09 -0400 Subject: [PATCH] Revamp of admin side contact profile display - Add new DB fields - Divide profile into sections --- sections are expandable - Show Custom Fields on the same form - Remove sub nav tabs --- css/admin.css | 241 ++++ models/admin/profile/index.php | 18 +- views/admin/contacts/edit.html | 1871 ++++++++++++++++++------------ views/admin/contacts/header.html | 2 +- 4 files changed, 1358 insertions(+), 774 deletions(-) create mode 100644 css/admin.css diff --git a/css/admin.css b/css/admin.css new file mode 100644 index 0000000..0d2bf4a --- /dev/null +++ b/css/admin.css @@ -0,0 +1,241 @@ +/* Table CSS */ +#glm-table-profile.glm-admin-table { + max-width: 100%; +} +#glm-admin-content-container.glm-admin-contact-content-contaner { + background: #fcfcff; + max-width: 1000px; +} +#glm-admin-content-container .glm-admin-table.glm-admin-table-inner { + max-width: 100%; +} +.glm-table-section { + background: white; + border: 1px solid grey; + border-radius: 2px; + +} +.glm-table-section-title { + border-bottom: 1px solid grey; + padding-bottom: 6px; +} +.glm-contact-content-data { + margin-top: -5px; +} +.glm-table-spacer { + width: 100%; + padding-bottom: 6px; +} +.glm-contact-content-toggle { + border: 1px solid lightgrey; + border-radius: 3px; + max-width: 100%; + display: block; + font-weight: bold; + padding: 10px 20px; + text-transform: uppercase; + margin-bottom: 5px; +} +#glm-admin-content-container .glm-contact-content-toggle h3 { + color: #32373c; + font-size: 13px; + line-height: 1.6; + margin-bottom: 5px; + margin-top: 0; +} +.glm-contact-content-toggle span { + font-size: 11px; + font-weight: normal; + text-transform: none; + margin-right: 20px; +} +.glm-contact-content-toggle.selected { + border-top-right-radius: 3px; + border-top-left-radius: 3px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + box-shadow: 1px 1px 4px lightgrey inset; +} +.glm-contact-sub-data-links > * { + width: 50%; +} + +.glm-contact-content-data:not(#glm-contact-account-profile-container) { + display: none; +} +#glm-contact-fullprofile-toggle { + text-align: center; + padding: 3px 6px; + margin: 10px; + border: 1px solid lightgrey; + border-radius: 3px; + float: right; + width: 85px; +} +.glm-contact-sub-data-links .glm-contact-content-toggle { + border: 0; +} +#glm-contact-account-profile .glm-contact-sub-data-links { + border-width: 0 1px 1px 1px; + border-color: lightgrey; + border-style: solid; + margin-top: -5px; + margin-bottom: 10px; +} +.glm-contact-sub-data-links .glm-contact-link-to-top { + float: right; +} + +/* Input Fields CSS */ +input::placeholder { + color: #acacac; +} +#glm-table-profile .sub-field-note { + font-size: 10px; +} +#glm-table-profile input[type=text] { + border-bottom: 1px solid #ddd; + box-shadow: inset 0 -1px 3px 0px rgba(0,0,0,.07); + background-color: #fff; + color: #32373c; + outline: 0; + transition: 50ms border-color ease-in-out; + border-width: 0 0 1px 0; +} +#glm-table-profile.glm-admin-table { + width: 100%; + clear: both; + 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.glm-admin-table-inner { + border-top-left-radius: 0; + border-top-right-radius: 0; +} +#glm-table-profile.glm-admin-table > tbody > tr > td { + display: block; +} +.glm-contact-citybox { + display: block; + max-width: 400px; +} +@media only screen and (max-width: 640px) { + #glm-table-profile input[type=text] { + font-size: 14px; + } + #glm-table-profile.glm-admin-table { + table-layout: fixed; + } + #glm-table-profile.glm-admin-table th { + clear: both; + display: block; + padding-bottom: 7px; + width: 100%; + max-width: 100%; + } + #glm-table-profile.glm-admin-table td { + clear: both; + display: block; + width: 100%; + max-width: 100%; + } + #glm-table-profile.glm-admin-table tr { + display: block; + margin-bottom: 15px; + } +} + +/* Tooltip CSS */ +.gf_tooltip:hover p{ + display:block; + transform-origin: 100% 0%; + + -webkit-animation: fadeIn 0.3s ease-in-out; + animation: fadeIn 0.3s ease-in-out; + +} + +.gf_tooltip p{ /* The tooltip */ + display: none; + text-align: left; + background-color: #1E2021; + padding: 20px; + width: 300px; + position: absolute; + border-radius: 3px; + box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2); + left: -4px; + color: #FFF; + font-size: 13px; + line-height: 1.4; +} + +.gf_tooltip p:before{ /* The pointer of the tooltip */ + position: absolute; + content: ''; + width:0; + height: 0; + border:6px solid transparent; + border-bottom-color:#1E2021; + left:10px; + top:-12px; +} + +.gf_tooltip p:after{ /* Prevents the tooltip from being hidden */ + width:100%; + height:40px; + content:''; + position: absolute; + top:-40px; + left:0; +} + +/* CSS animation */ + +@-webkit-keyframes fadeIn { + 0% { + opacity:0; + transform: scale(0.6); + } + + 100% { + opacity:100%; + transform: scale(1); + } +} + +@keyframes fadeIn { + 0% { opacity:0; } + 100% { opacity:100%; } +} + +a.tooltip, a.tooltip_bottomleft, a.tooltip_left { + width: 16px; + text-decoration: none; + color: grey; + zoom: 1; + position: relative; + +} +.fa { + font: normal normal normal 14px/1 FontAwesome; + font-size: inherit; + text-rendering: auto; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.fa, .fa-stack, .gficon-spin { +display: inline-block; +} +.fa-question-circle:before { +content: "\f059"; +} \ No newline at end of file diff --git a/models/admin/profile/index.php b/models/admin/profile/index.php index bce842e..6f7751d 100644 --- a/models/admin/profile/index.php +++ b/models/admin/profile/index.php @@ -161,7 +161,8 @@ class GlmMembersAdmin_profile_index extends GlmDataContacts case 'submit': // Check for new cities being submitted - $this->checkNewCities(); + $this->checkNewCities('newCityName'); + $this->checkNewCities('newBusinessCityName'); // Process the profile update submission $this->contactInfo = $this->updateEntry($this->contactID); @@ -295,14 +296,14 @@ class GlmMembersAdmin_profile_index extends GlmDataContacts * * @return void */ - public function checkNewCities() + public function checkNewCities($fieldName = 'newCityName') { // If we have a member ID and this was a submission with a new city (id < 0) - if ($this->contactID && isset($_REQUEST['city']) && $_REQUEST['city'] == -1 && isset($_REQUEST['newCityName']) && trim($_REQUEST['newCityName']) != '') { + if ($this->contactID && isset($_REQUEST['city']) && $_REQUEST['city'] == -1 && isset($_REQUEST[$fieldName]) && trim($_REQUEST[$fieldName]) != '') { // Clean up city name - $cName = trim(filter_var($_REQUEST['newCityName'])); + $cName = trim(filter_var($_REQUEST[$fieldName])); // Try to add the city require_once GLM_MEMBERS_CONTACTS_PLUGIN_CLASS_PATH.'/data/dataCities.php'; @@ -313,15 +314,20 @@ class GlmMembersAdmin_profile_index extends GlmDataContacts if (is_int($cID) && $cID > 0) { // Update the city selected for this memberInfo record + if ($fieldName == 'newBusinessCityName') { + $cityDatabaseField = 'business_city'; + } else { + $cityDatabaseField = 'city'; + } $sql = " UPDATE ".GLM_MEMBERS_CONTACTS_PLUGIN_DB_PREFIX."contacts - SET city = $cID + SET $cityDatabaseField = $cID WHERE id = ".$this->contactID." ;"; $this->wpdb->query($sql); // Update submitted city value to use the new ID - $_REQUEST['city'] = $cID; + $_REQUEST[$cityDatabaseField] = $cID; } } diff --git a/views/admin/contacts/edit.html b/views/admin/contacts/edit.html index 4d0fcc1..3f1642a 100644 --- a/views/admin/contacts/edit.html +++ b/views/admin/contacts/edit.html @@ -1,869 +1,1206 @@ {if $fromMemberMenu} - {include file='admin/member/header.html'} +{include file='admin/member/header.html'} {else} - {include file='admin/contacts/header.html'} +{include file='admin/contacts/header.html'} {/if} {if $userDeleted} -

Contact Deleted:

- +

Contact Deleted:

+ {/if} - {if $newContactEmailExists} -

NOTE: The Email address for this contact is already in use. Please check if they already are a contact in this system.

- {/if} - {if $newContactUsernameExists} -

NOTE: The Login Username for this contact is already in use. Please check if they already are a contact in this system.

- {/if} - {if $misMatchedWpUsers} -

NOTE: There is already a WordPress user with the requested Email address and a different user with the requested Login Username. Please select a different Login Username.

- {/if} +{if $newContactEmailExists} +

NOTE: The Email address for this contact is already in use. Please check if they already are a contact in this system.

+{/if} +{if $newContactUsernameExists} +

NOTE: The Login Username for this contact is already in use. Please check if they already are a contact in this system.

+{/if} +{if $misMatchedWpUsers} +

NOTE: There is already a WordPress user with the requested Email address and a different user with the requested Login Username. Please select a different Login Username.

+{/if} {if $option == 'edit' && !$contactID} -

ERROR: Specified contact not found!

+

ERROR: Specified contact not found!

- {elseif $misMatchedWpUsers} +{elseif $misMatchedWpUsers} -

- NOTE: - The Email address for this contact is already in use by an existing system user but the username is in use by a different - system user. As such we are unable to match this request to a specific existing system user. We suggest you determine what - the "Username" is for the existing Wordpress user with the Email address you requested. Please call for assistance if needed. -

+

+ NOTE: + The Email address for this contact is already in use by an existing system user but the username is in use by a different + system user. As such we are unable to match this request to a specific existing system user. We suggest you determine what + the "Username" is for the existing Wordpress user with the Email address you requested. Please call for assistance if needed. +

- {elseif $newContactCreated} +{elseif $newContactCreated} -

New Contact Created: {$contactInfo.fieldData.fname} {$contactInfo.fieldData.lname} - {$contactInfo.fieldData.email}

- {if $usernameChangedToWP || $usingExistingWPContact} -

NOTE:

- - {/if} +

New Contact Created: {$contactInfo.fieldData.fname} {$contactInfo.fieldData.lname} - {$contactInfo.fieldData.email}

+{if $usernameChangedToWP || $usingExistingWPContact} +

NOTE:

+ +{/if} - {else} +{else} - {if apply_filters('glm_members_permit_admin_member_contacts_edit_contact', true)} +{if apply_filters('glm_members_permit_admin_member_contacts_edit_contact', true)} - {if $option == 'create' || $option == 'edit'} +{if $option == 'create' || $option == 'edit'} - {if $fromMemberMenu} - Return to Contact List - {else} - Return to Contact List - {/if} + {if $fromMemberMenu} + Return to Contact List + {else} + Return to Contact List + {/if} - {if $option == 'create'} -

Add New Contact

- {else} - {if $newEmailError != ''} -

NOTE: Your new E-Mail address was not valid. Please see below.

- {else} - {if $contactUpdated}

Contact Updated

{/if} - {/if} - Delete this Contact -
-
-

Cancel

-

-
-
-

WARNING:

-

- Clicking the "Delete this Contact" button above will - delete all of the data and images associated with this contact. - -

-

- Once deleted, this information will no longer be available and cannot be retrieved! -

-
+ {if $option == 'create'} +

Add New Contact

+ {else} + {if $newEmailError != ''} +

NOTE: Your new E-Mail address was not valid. Please see below.

+ {else} + {if $contactUpdated}

Contact Updated

{/if} + {/if} + Delete this Contact +
+
+

Cancel

+

+
+
+

WARNING:

+

+ Clicking the "Delete this Contact" button above will + delete all of the data and images associated with this contact. + +

- This contact may instead be "Archived" rather than deleted using the "Contact Display:" pick-list. When archived, the contact is not displayed on the front-end - of the Web site, any login assoicated with this contact is deactivated, and the contact will not show on contact lists unless "Archived" is selected. - Unlike delete, an archived contact may be changed back to normal use. + Once deleted, this information will no longer be available and cannot be retrieved!

- {/if} +

+ This contact may instead be "Archived" rather than deleted using the "Contact Display:" pick-list. When archived, the contact is not displayed on the front-end + of the Web site, any login assoicated with this contact is deactivated, and the contact will not show on contact lists unless "Archived" is selected. + Unlike delete, an archived contact may be changed back to normal use. +

+
+ {/if} - {if $fromMemberMenu} -
- - {else} - - + {if $fromMemberMenu} + + + {else} + + + {/if} + + {if $option == 'create'} + + + + {if $haveMember} + {/if} - - {if $option == 'create'} - - - - {if $haveMember} - - {/if} - {else} - - - - - {/if} - - -
- {if $option == 'create'} - {apply_filters('glm-members-custom-fields-form', '', $slug,'','')} - {else} - {$prefix = $slug|cat:'_'} - {$uid = $prefix|cat:$contactInfo.fieldData.id} - {apply_filters('glm-members-custom-fields-form', '', $slug,$contactInfo.fieldData.id,'')} - {apply_filters('glm-members-custom-fields-form', '', $uid,$contactInfo.fieldData.id,'')} - {/if} -
- - - - {if $haveMember} - - - - - - - - - - - - - {if $option != 'create'} - - - - - - - - - {/if} - - - - - - - - - - - - - - - - - - - - - {if $option == 'create'} - - - - - {else} - - - - - - + {else} + + + + + {/if} + + + +
Expand All
+
+ +
Account Profile
+
+
+ +
Contact For: - {$memberData.name} - {else} - Contact For: - - {/if} - {if $contactInfo.fieldFail.ref_dest}

A {$terms.term_member_cap} was not selected.

{/if} -
Active: - -
Primary Contact: - {if apply_filters('glm_members_permit_admin_member_contacts_set_as_primary', true)} - (Only one contact at a time may be the primary contact. If there is another primary contact, it will be deselected.) - {else} - {$contactInfo.fieldData.primary_contact.name} - {/if} -
Created:{$contactInfo.fieldData.create_time.datetime}
Last Updated:{$contactInfo.fieldData.modify_time.datetime}
First Name: - - {if $contactInfo.fieldFail.fname}

{$contactInfo.fieldFail.fname}

{/if} -
Last Name: - - {if $contactInfo.fieldFail.lname}

{$contactInfo.fieldFail.lname}

{/if} -
Contact Type: - - {if $contactInfo.fieldFail.contact_type}

{$contactInfo.fieldFail.contact_type}

{/if} -
Permissions: - - {if $contactInfo.fieldFail.contact_role}

{$contactInfo.fieldFail.contact_role}

{/if} -
Display/Moderate/Archive: - - {if $contactInfo.fieldFail.access}

{$contactInfo.fieldFail.access}

{/if} -
Email Address: - -
NOTE: This field is only required for users who will have login privileges. - {if $contactInfo.fieldFail.email}

{$contactInfo.fieldFail.email}

{/if} -
Email Address::{$contactInfo.fieldData.email}
New Email Address: - - {if $newEmailError == 'BAD_CHARACTERS'} -
- The E-Mail address you submitted contained invalid characters. {$new_email} - Please check the address and submit again. - - {/if} - {if $newEmailError == 'BAD_FORMAT'} -
- The E-Mail address you submitted is formatted incorrectly. An example of a correctly formatted E-Mail address is "name@domain.com". - Please check the address and submit again. - - {/if} - {if $newEmailError == 'IN_USE'} -
- The E-Mail address you submitted is already in use for this site. - You may only change your address to one that is not currently in use. - - {/if} -
To change your E-Mail address, enter your new address here. This address must not be used by any other contact or user in this site. -
+ + + {if $haveMember} + + + + + + + + + + + + + + + + + + + + + + + + {if $option != 'create'} + + + + + + + + + {/if} + + + + + + + + + + + + {if $option == 'create'} + + + {else} + + + {/if} + + + + + + + {if $option == 'create'} + + + + + {else} + + + + - - {if $option == 'create'} - - - {else} - - + {if $newEmailError == 'BAD_FORMAT'} +
+ The E-Mail address you submitted is formatted incorrectly. An example of a correctly formatted E-Mail address is "name@domain.com". + Please check the address and submit again. + {/if} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + +
+ Contact For + + {$memberData.name} + {else} + Contact For + + {/if} + {if $contactInfo.fieldFail.ref_dest}

A {$terms.term_member_cap} was not selected.

{/if} +
Active + +
+ Permissions + +

+ {foreach from=$contactInfo.fieldData.contact_role.list item=v} + {$v.name}
+ {/foreach} +

+ + + +
+
+ + {if $contactInfo.fieldFail.contact_role}

{$contactInfo.fieldFail.contact_role}

{/if} +
Display/Moderate/Archive: + + {if $contactInfo.fieldFail.access}

{$contactInfo.fieldFail.access}

{/if} +
+ Primary Contact + +

(Only one contact at a time may be the primary contact. If there is another primary contact, it will be deselected.)

+ + + +
+
+ {if apply_filters('glm_members_permit_admin_member_contacts_set_as_primary', true)} + + {else} + {$contactInfo.fieldData.primary_contact.name} + {/if} +
Created{$contactInfo.fieldData.create_time.datetime}
Last Updated{$contactInfo.fieldData.modify_time.datetime}
+

+
First Name: + + {if $contactInfo.fieldFail.fname}

{$contactInfo.fieldFail.fname}

{/if} +
Last Name: + + {if $contactInfo.fieldFail.lname}

{$contactInfo.fieldFail.lname}

{/if} +
Login Username: + +
NOTE: The username cannot be changed once the contact is created. + {if $contactInfo.fieldFail.username}

{$contactInfo.fieldFail.username}

{/if} +
Login Username:{$contactInfo.fieldData.username}
+ Login password: + +

The password must be at least 8 characters and include at least one number, one letter, and at least one special character. (# . - _ , $ % & !)

+ + + +
+
+ + {if $option == 'create'} + Save this password. +
A randomly generated password has been supplied. You may change this as desired. + There is no way to view a password once it's set. However, a user may recover a password using their + Email address at the login page. + {else} +
Enter a password here only if you need to change it. + {/if} + {if $contactInfo.fieldFail.password}

{$contactInfo.fieldFail.password}

{/if} +
Email Address: + +
NOTE: This field is only required for users who will have login privileges. + {if $contactInfo.fieldFail.email}

{$contactInfo.fieldFail.email}

{/if} +
Email Address:{$contactInfo.fieldData.email}
+ New Email Address: + +

To change your E-Mail address, enter your new address here. This address must not be used by any other contact or user in this site.

+ + + +
+
+ + {if $newEmailError == 'BAD_CHARACTERS'} +
+ The E-Mail address you submitted contained invalid characters. {$new_email} + Please check the address and submit again. + {/if} -
Login Username: - -
NOTE: The username cannot be changed once the contact is created. - {if $contactInfo.fieldFail.username}

{$contactInfo.fieldFail.username}

{/if} -
Login Username:{$contactInfo.fieldData.username}
Login password: - - {if $option == 'create'} - Save this password. -
A randomly generated password has been supplied. You may change this as desired. - There is no way to view a password once it's set. However, a user may recover a password using their - Email address at the login page. - {else} -
NOTE: Enter a password here only if you need to change it. - {/if} -
The password must be at least 8 characters and include at least one number, one letter, and at least one - special character. (# . - _ , $ % & !) - {if $contactInfo.fieldFail.password}

{$contactInfo.fieldFail.password}

{/if} -
Alternate Email Address: - - {if $contactInfo.fieldFail.alt_email}

{$contactInfo.fieldFail.alt_email}

{/if} -
Organization: - - {if $contactInfo.fieldFail.org}

{$contactInfo.fieldFail.org}

{/if} -
Title/Position: - - {if $contactInfo.fieldFail.title}

{$contactInfo.fieldFail.title}

{/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} -
Profile Image: - {if $contactInfo.fieldData.image} -
- - Close
-
- - - - - - -
- Delete Image
- {$contactInfo.fieldData.image}
-

Show Large Image

-
+ {if $newEmailError == 'IN_USE'} +
+ The E-Mail address you submitted is already in use for this site. + You may only change your address to one that is not currently in use. + {/if} - - {if $contactInfo.fieldFail.image}

{$contactInfo.fieldFail.image}

{/if} -
Address Line 1: - - {if $contactInfo.fieldFail.addr1}

{$contactInfo.fieldFail.addr1}

{/if} -
Address Line 2: - - {if $contactInfo.fieldFail.addr2}

{$contactInfo.fieldFail.addr2}

{/if} -
City - -
Add a new City
-
- + + + + {/if} + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + +
Profile Image: + {if $contactInfo.fieldData.image} +
+ + Close
+
+ - - + +
City Name: - -
+
+ Delete Image
+ {$contactInfo.fieldData.image}
+

Show Large Image

-

* Required

- Cancel - - - - - -
County: - - {if $contactInfo.fieldFail.county}

{$contactInfo.fieldFail.county}

{/if} -
State: - - {if $contactInfo.fieldFail.state}

{$contactInfo.fieldFail.state}

{/if} -
ZIP / Postal Code: - - {if $contactInfo.fieldFail.zip}

{$contactInfo.fieldFail.zip}

{/if} -
Country: - - {if $contactInfo.fieldFail.country}

{$contactInfo.fieldFail.country}

{/if} -
Web Address (URL): - {if $contactInfo.fieldData.url} - Test Link - {/if} - http:// - {if $contactInfo.fieldFail.url}

{$contactInfo.fieldFail.url}

{/if} -
Office Phone #: - - {if $contactInfo.fieldFail.office_phone}

{$contactInfo.fieldFail.office_phone}

{/if} -
Home Phone #: - - {if $contactInfo.fieldFail.home_phone}

{$contactInfo.fieldFail.home_phone}

{/if} -
Mobile Phone #: - - {if $contactInfo.fieldFail.mobile_phone}

{$contactInfo.fieldFail.mobile_phone}

{/if} -
Alternate Phone #: - - {if $contactInfo.fieldFail.alt_phone}

{$contactInfo.fieldFail.alt_phone}

{/if} -
FAX #: - - {if $contactInfo.fieldFail.fax}

{$contactInfo.fieldFail.fax}

{/if} -
Access to Members - {if $membersList && apply_filters('glm_members_menu_members',true)} - -    Select a member to add.
-
- {if $contactMembers} - {foreach $contactMembers as $m} -
- {$m.name} + {/if} + + {if $contactInfo.fieldFail.image}

{$contactInfo.fieldFail.image}

{/if} +
Access to Members + {if $membersList && apply_filters('glm_members_menu_members',true)} + + - {else} - (Primary {$terms.term_member_cap}) + + {/if} + {/foreach} +    Select a member to add.
+
+ {if $contactMembers} + {foreach $contactMembers as $m} +
+ {$m.name} + {if $m.id != $memberID} + X + + {else} + (Primary {$terms.term_member_cap}) + {/if} +
+ {/foreach} {/if}
- {/foreach} + {else} + {if $contactMembers} + + {foreach $contactMembers as $m} +
+ {$m.name} +
+ {/foreach} + {/if} {/if} - - {else} - {if $contactMembers} - - {foreach $contactMembers as $m} -
- {$m.name} -
- {/foreach} +
+ This contact has no access or can manage all members, so no selection is needed here. +
+ + +
+
+

Account Contact Info (section title)

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Publish on Front End + +
Use for Billing Information + +
Address Line 1 + + {if $contactInfo.fieldFail.addr1}

{$contactInfo.fieldFail.addr1}

{/if} +
Address Line 2 + + {if $contactInfo.fieldFail.addr2}

{$contactInfo.fieldFail.addr2}

{/if} +
City + +
Add a new City
+
+ + + + + +
City Name + +
+
+

* Required

+ Cancel + +
+ + + +
State + + {if $contactInfo.fieldFail.state}

{$contactInfo.fieldFail.state}

{/if} +
ZIP / Postal Code + + {if $contactInfo.fieldFail.zip}

{$contactInfo.fieldFail.zip}

{/if} +
Country + + {if $contactInfo.fieldFail.country}

{$contactInfo.fieldFail.country}

{/if} +
Home Phone # + + {if $contactInfo.fieldFail.home_phone}

{$contactInfo.fieldFail.home_phone}

{/if} +
Mobile Phone # + + {if $contactInfo.fieldFail.mobile_phone}

{$contactInfo.fieldFail.mobile_phone}

{/if} +
Email Address: + + {if $contactInfo.fieldFail.alt_email}

{$contactInfo.fieldFail.alt_email}

{/if} +
+
+
+
+

Organization/Company Information

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - -
Publish on Front End + +
Use for Billing Information + +
+

Organization/Company Information

+
Organization + + {if $contactInfo.fieldFail.org}

{$contactInfo.fieldFail.org}

{/if} +
First Name + + {if $contactInfo.fieldFail.business_fname}

{$contactInfo.fieldFail.business_fname}

{/if} +
Last Name + + {if $contactInfo.fieldFail.business_lname}

{$contactInfo.fieldFail.business_lname}

{/if} +
Title/Position + + {if $contactInfo.fieldFail.title}

{$contactInfo.fieldFail.title}

{/if} +
Address Line 1 + + {if $contactInfo.fieldFail.business_addr1}

{$contactInfo.fieldFail.business_addr1}

{/if} +
Address Line 2 + + {if $contactInfo.fieldFail.business_addr2}

{$contactInfo.fieldFail.business_addr2}

{/if} +
City + +
Add a new City
+
+ + + + + +
City Name + +
+
+

* Required

+ Cancel + +
+ + + +
State + + {if $contactInfo.fieldFail.business_state}

{$contactInfo.fieldFail.business_state}

{/if} +
ZIP / Postal Code + + {if $contactInfo.fieldFail.business_zip}

{$contactInfo.fieldFail.business_zip}

{/if} +
Country + + {if $contactInfo.fieldFail.business_country}

{$contactInfo.fieldFail.business_country}

{/if} +
Email Address: + + {if $contactInfo.fieldFail.business_email}

{$contactInfo.fieldFail.business_email}

{/if} +
Web Address (URL): + {if $contactInfo.fieldData.url} + Test Link {/if} - {/if} - - This contact has no access or can manage all members, so no selection is needed here. -
Notes: - {php} - wp_editor('{$contactInfo.fieldData.notes|escape:quotes}', 'glm_notes', array( - 'quicktags' => false, - 'media_buttons' => false, - 'wpautop' => false, - 'textarea_name' => 'notes', - 'editor_height' => 100, // Height in px, overrides editor_rows - // 'textarea_rows' => 4, - )); - {/php} - {if $contactInfo.fieldFail.notes}

{$contactInfo.fieldFail.notes}

{/if} -
-

* Required

- - + http:// + {if $contactInfo.fieldFail.url}

{$contactInfo.fieldFail.url}

{/if} +
Office Phone # + + {if $contactInfo.fieldFail.office_phone}

{$contactInfo.fieldFail.office_phone}

{/if} +
Mobile Phone # + + {if $contactInfo.fieldFail.business_mobile}

{$contactInfo.fieldFail.business_mobile}

{/if} +
FAX # + + {if $contactInfo.fieldFail.fax}

{$contactInfo.fieldFail.fax}

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

{$contactInfo.fieldFail.notes}

{/if} +
+
+ - {/if} +
+

Custom Fields

+
+
+
+ {if $option == 'create'} + {apply_filters('glm-members-custom-fields-form', '', $slug,'','')} + {else} + {$prefix = $slug|cat:'_'} + {$uid = $prefix|cat:$contactInfo.fieldData.id} + {apply_filters('glm-members-custom-fields-form', '', $slug,$contactInfo.fieldData.id,'')} + {apply_filters('glm-members-custom-fields-form', '', $uid,$contactInfo.fieldData.id,'')} + {/if} +
+
- {else} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Contact For:{$contactInfo.fieldData.ref_type.name} - {$memberData.name}
Active:{$contactInfo.fieldData.active.name}
Created:{$contactInfo.fieldData.create_time.datetime}
Last Updated:{$contactInfo.fieldData.modify_time.datetime}
First Name:{$contactInfo.fieldData.fname}
Last Name:{$contactInfo.fieldData.lname}
Contact Type:{$contactInfo.fieldData.contact_type.name}
Email Address::{$contactInfo.fieldData.email}
Alternate Email Address:{$contactInfo.fieldData.alt_email}
Organization:{$contactInfo.fieldData.org}
Title/Position:{$contactInfo.fieldData.title}
Position/Responsibilities:{$contactInfo.fieldData.descr}
Image: - {if $contactInfo.fieldData.image} - - {/if} -
Address Line 1:{$contactInfo.fieldData.addr1}
Address Line 2:{$contactInfo.fieldData.addr2}
City{$contactInfo.fieldData.city.name}
County{$contactInfo.fieldData.county}
State:{$contactInfo.fieldData.state.name}
ZIP / Postal Code:{$contactInfo.fieldData.zip}
Country:{$contactInfo.fieldData.country.name}
Web Address (URL): - {if $contactInfo.fieldData.url} - {$contactInfo.fieldData.url} - {/if} -
Office Phone #:{$contactInfo.fieldData.office_phone}
Home Phone #:{$contactInfo.fieldData.home_phone}
Mobile Phone #:{$contactInfo.fieldData.mobile_phone}
Alternate Phone #:{$contactInfo.fieldData.alt_phone}
FAX #:{$contactInfo.fieldData.fax}
Notes:{$contactInfo.fieldData.notes}
- {/if} - - {/if} - - + }); + {include file='admin/footer.html'} diff --git a/views/admin/contacts/header.html b/views/admin/contacts/header.html index 3be1c2f..987d56a 100644 --- a/views/admin/contacts/header.html +++ b/views/admin/contacts/header.html @@ -3,6 +3,6 @@ -
+
\ No newline at end of file -- 2.17.1