# adminus_crm_contract_change_state

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

# Prologue

Panel allows users to change state of selected contracts. After submitting the form, the state of contract will be changed in Adminus.

# Preview

# Configuration

adminus_crm_contract_change_state:
	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
		# Variable containing the single id or list od contracts ids (eg. variable used as `variable` in contract pick panel)
		variable: contracts

		view:
			# Required
			# If set, this label will be displayed above the selectbox
			# Usage is same as usage of php sprintf function
			# First param is the message string (use %s as placeholder for param)
			# Following string params are customer properties that shall be filled into message string
			# 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]

		ui:
			# Optional | Default - null
			# Panel title
			title: Change the contract state
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