# Panel (adminus_crm_customer_detail)

Display details about customers from Adminus CRM

# Screenshots

adminus_crm_customer_detail

# Config

adminus_crm_customer_detail:

	config:

		# Optional | Type: string | Default: null
		# DSN string with API URL and credentials
		#
		### Examples
		### - https://user:pass@crm.ispalliance.cz/api/
		connection: "https://username:password@host"

		# Optional | Type: array | Default: []
		# List of customer IDs
		customers: [6, 36]

		# Required | Type: string | Default: null
		# Rendered template. By default is used template from example
		#
		### Note
		### There is extra variable ___customers type of array
		### On each customer you can access its data fields.
		### Please see Adminus CRM documentation for information about contract available fields and their nesting.
		template: """
			<div>Customers selected: {count($___customers)}</div>
			<ul>
				{foreach $___customers as $c}
					<li><a href=""{$c['link']}"">{$c['assembled_name']}</a></li>
				{/foreach}
			</ul>
		"""

		# Filter
		filter:

			# Optional | Type: bool | Default: false
			# Display only active customers
			onlyActive: false
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
32
33
34
35
36
37