check for existence of vcard

This commit is contained in:
Mario
2022-01-18 10:50:25 +01:00
parent 788c973c13
commit c4b09f1a4f
2 changed files with 19 additions and 19 deletions

View File

@@ -733,7 +733,7 @@ class Profiles extends \Zotlabs\Web\Controller {
'$profile_clone_link' => 'profiles/clone/' . $r[0]['id'] . '?t=' . get_form_security_token("profile_clone"),
'$profile_drop_link' => 'profiles/drop/' . $r[0]['id'] . '?t=' . get_form_security_token("profile_drop"),
'$fields' => $fields,
// '$vcard' => $vcard,
//'$vcard' => $vcard,
'$guid' => $r[0]['profile_guid'],
'$banner' => t('Edit Profile Details'),
'$submit' => t('Submit'),
@@ -798,23 +798,23 @@ class Profiles extends \Zotlabs\Web\Controller {
'$contact' => array('contact', t('Contact information and social networks'), $r[0]['contact']),
'$channels' => array('channels', t('My other channels'), $r[0]['channels']),
'$extra_fields' => $extra_fields,
'$comms' => t('Communications'),
'$tel_label' => t('Phone'),
'$email_label' => t('Email'),
'$impp_label' => t('Instant messenger'),
'$url_label' => t('Website'),
'$adr_label' => t('Address'),
'$note_label' => t('Note'),
'$mobile' => t('Mobile'),
'$home' => t('Home'),
'$work' => t('Work'),
'$other' => t('Other'),
'$add_card' => t('Add Contact'),
'$add_field' => t('Add Field'),
'$create' => t('Create'),
'$update' => t('Update'),
'$delete' => t('Delete'),
'$cancel' => t('Cancel'),
//'$comms' => t('Communications'),
//'$tel_label' => t('Phone'),
//'$email_label' => t('Email'),
//'$impp_label' => t('Instant messenger'),
//'$url_label' => t('Website'),
//'$adr_label' => t('Address'),
//'$note_label' => t('Note'),
//'$mobile' => t('Mobile'),
//'$home' => t('Home'),
//'$work' => t('Work'),
//'$other' => t('Other'),
//'$add_card' => t('Add Contact'),
//'$add_field' => t('Add Field'),
//'$create' => t('Create'),
//'$update' => t('Update'),
//'$delete' => t('Delete'),
//'$cancel' => t('Cancel'),
'$show_presence' => $show_presence,
'$suggestme' => $suggestme,

View File

@@ -104,7 +104,7 @@
</div>
</div>
{{if $fields.comms }}
{{if $fields.comms && $vcard}}
<div id="template-form-vcard-tel" class="mb-3 form-vcard-tel">
<select name="tel_type[]">