# adminus_crm_customer_detail

Name adminus_crm_customer_detail
Type panel
Version 1.0
Since 2020-01-01

# Prologue

Panel displays customers details as defined in template.

# Preview

# Configuration

adminus_crm_customer_detail:
	render: {width: 6}
	config:

		# Required
		# LPL support
		# Variable containing API connection with user credentials as DSN string
		# For example: https://user:pass@crm.ispalliance.cz/api/
		connection: "'https://username:password@host'"

		# Required
		# Name of variable where single id or list of customer ids are stored
		# This name was previously used in `adminus_crm_customer_pick` panel in `variable`
		variable: customers

		# Optional - default value is the template used in this readme
		# Latte template
		template: '''
			<p>Customers selected: {count($___customers)}</p>
			<ul>
			{foreach $___customers as $c}
				<li><a href="{$c['link']}">{$c['assembled_name']}</a></li>
			{/foreach}
			</ul>
		'''
		filter:
			# Optional | Default - false
			# config variable which allow to set filter active
			# values: true - only active data are showed
			#         false - all data
			onlyActive: true
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

# Panel variables

In this panel you can use following variables.

  • ___customers: array (customers real data)

On each customer you can access his data fields.

Please see Adminus CRM documentation for information about contract customer fields and their nesting.