# Panel (adminus_crm_contract_change_state)

Change state of selected contracts in Adminus CRM

# Screenshots

adminus_crm_contract_change_state

# Config

adminus_crm_contract_change_state:

	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]

		# View
		view:

			# Required | Type: array | Default: via example
			# Label which is displayed above the selectbox
			#
			### Note
			### Usage is same as usage of php sprintf function. First param is the message string (use %s as placeholder for param). You can use contract fields as params
			label: {
				"Customer: <b>%s</b>, contract no.: <b>%s</b> - current state: %s",
				"customer.assembled_name",
				"contract_number",
				"state_name"
			])}

		# Panel UI
		ui:

			# Optional | Type: string | Default: null
			# Panel title
			title: "Panel title"

			# Optional | Type: string | Default: null
			# Panel description
			description: "Panel description"
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
38
39
40