# Panel (planning)

Add planning functionality to given step

# Description

This panel adds planning functionality to given step. If edit is true you will be able to plan FROM and TO dates. If edit is false panel only serves for displaying planned dates. To check if certain step is planned you can use $_process->steps['step_name']->plannedTo in expression.

# Screenshots

planning

# Config

planning:

	config:

		# Optional | Type: string | Default: null
		# Step for which edit/display planned dates. By default is used current step.
		step: "mystep"

		# Optional | Type: bool | Default: true
		# Whether plan should be user editable
		edit: true

		# Optional | Type: bool | Default: true
		# Planning TO date also overwrites step expiration
		modify: true

		# Optional | Type: string | Default: datetime
		# Mode allows user to pick date only, date and time or switch between these modes. Allowed modes: switch, date, datetime
		#
		### Examples
		### - datetime
		### - date
		### - switch
		mode: "date"

		# Optional | Type: string | Default: null
		# Timezone of date-time inputs. All available timezones: https://www.php.net/manual/en/timezones.php
		timezone: "Europe/Prague"

		# Shortcuts
		shortcuts:

			# Index (name1, name2, ...., nameN)
			[name]:

				# Required | Type: string | Default: null
				# Shortcut title
				title: "Tommorow"

				# Required | Type: string | Default: null
				# Relative date
				date: "+1 day"

		# Optional | Type: array | Default: []
		# Custom callbacks attached to the button
		callbacks: []

		# Optional | Type: string | Default: null
		# Custom script attached on plan saved
		#
		### Note
		### This option is not lattenized
		script: "NULL"

		# 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64