# Panel (adminus_crm_contract_detail)

Display details about contracts from Adminus CRM

# Screenshots

adminus_crm_contract_detail

# Config

adminus_crm_contract_detail:

	config:

		# Required | 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: null
		# List of contract IDs
		contracts: [6, 36]

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

		# Filter
		filter:

			# Optional | Type: bool | Default: false
			# Display only active contracts
			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