# adminus_crm_contract_detail

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

# Prologue

Panel displays the defined template which can contain information about contracts from Adminus CRM. Panel expects to receive a list of contract ids in variable variable.

# Preview

# Configuration

adminus_crm_contract_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 contract ids are stored
		# This name was previously used in `adminus_crm_contract_pick` panel in `variable`
		variable: contracts

		# Optional - default value is the template used in this readme
		# You can access related customer data using `customer` key eg. $c['customer']['assembled_name']
		# Latte template
		template: '''
			<p>Contracts selected: {count($___contracts)}</p>
			<ul>
				{foreach $___contracts as $c}
					<li><a href="{$c['link']}">{$c['customer']['assembled_name']} - {$c['attribute_set_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
32

# Panel variables

In this panel you can use following variables.

  • ___contracts: array (contracts real data)

On each contract you can access his data fields.

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