{
	"name": "form/nc/nc-load/capacity.json",
	"layout": {
		"component": "nc-form",
		"attribute": {
			"id": "dialog-4d-form"
		},
		"element": [
			{
				"component": "nc-segment",
				"attribute": {
					"id": "seg-general",
					"text": "General",
					"hdr": "hdr.dialog_4d.general"
				},
				"element": [
					{
						"component": "nc-row",
						"element": [
							{
								"component": "nc-col",
								"attribute": {
									"width": "15em"
								},
								"element": [
									{
										"component": "nc-label",
										"text": "Machine efficiency",
										"attribute": {
											"hdr": "hdr.dialog_4d.machine_efficiency"
										}
									}
								]
							},
							{
								"component": "nc-col",
								"attribute": {
									"width": "auto"
								},
								"element": [
									{
										"component": "nc-input",
										"attribute": {
											"id": "machine_efficiency",
											"model": "rec.machine_efficiency",
											"type": "number",
											"placeholder": "1.0"
										}
									}
								]
							}
						]
					},
					{
						"component": "nc-row",
						"element": [
							{
								"component": "nc-col",
								"attribute": {
									"width": "15em"
								},
								"element": [
									{
										"component": "nc-label",
										"text": "Person efficiency",
										"attribute": {
											"hdr": "hdr.dialog_4d.person_efficiency"
										}
									}
								]
							},
							{
								"component": "nc-col",
								"attribute": {
									"width": "auto"
								},
								"element": [
									{
										"component": "nc-input",
										"attribute": {
											"id": "person_efficiency",
											"model": "rec.person_efficiency",
											"type": "number",
											"placeholder": "0.75"
										}
									}
								]
							}
						]
					},
					{
						"component": "nc-row",
						"element": [
							{
								"component": "nc-col",
								"attribute": {
									"width": "15em"
								},
								"element": [
									{
										"component": "nc-label",
										"text": "Keep zero capacity shift",
										"attribute": {
											"hdr": "hdr.dialog_4d.keep_zero_capacity_shift"
										}
									}
								]
							},
							{
								"component": "nc-col",
								"attribute": {
									"width": "auto"
								},
								"element": [
									{
										"component": "nc-checkbox",
										"text": "Enabled",
										"attribute": {
											"model": "rec.keep_zero_capacity_shift"
										}
									}
								]
							}
						]
					}
				]
			},
			{
				"component": "nc-segment",
				"attribute": {
					"id": "seg-shifts",
					"text": "Shifts & Schedules",
					"hdr": "hdr.dialog_4d.shifts"
				},
				"element": [
					{
						"component": "nc-row",
						"element": [
							{
								"component": "nc-col",
								"attribute": {
									"width": "15em"
								},
								"element": [
									{
										"component": "nc-label",
										"text": "Week start day",
										"attribute": {
											"hdr": "hdr.dialog_4d.week_start"
										}
									}
								]
							},
							{
								"component": "nc-col",
								"attribute": {
									"width": "auto"
								},
								"element": [
									{
										"component": "nc-dropdown",
										"attribute": {
											"id": "shift_schedule_start_day",
											"model": "rec.shift_schedule_start_day",
											"array": "arr.day_id",
											"placeholder": "Select day"
										}
									}
								]
							}
						]
					},
					{
						"component": "nc-row",
						"element": [
							{
								"component": "nc-col",
								"attribute": {
									"width": "15em"
								},
								"element": [
									{
										"component": "nc-label",
										"text": "Default shift schedule",
										"attribute": {
											"hdr": "hdr.dialog_4d.shift_schedule"
										}
									}
								]
							},
							{
								"component": "nc-col",
								"attribute": {
									"width": "auto"
								},
								"element": [
									{
										"component": "nc-dropdown",
										"attribute": {
											"id": "shift_schedule",
											"model": "rec.shift_schedule",
											"array": "arr.shift_schedule",
											"placeholder": "Select schedule"
										}
									}
								]
							}
						]
					},
					{
						"component": "nc-row",
						"element": [
							{
								"component": "nc-col",
								"attribute": {
									"width": "15em"
								},
								"element": [
									{
										"component": "nc-label",
										"text": "Default shift",
										"attribute": {
											"hdr": "hdr.dialog_4d.shift"
										}
									}
								]
							},
							{
								"component": "nc-col",
								"attribute": {
									"width": "auto"
								},
								"element": [
									{
										"component": "nc-dropdown",
										"attribute": {
											"id": "shift",
											"model": "rec.shift",
											"array": "arr.shift",
											"placeholder": "Select shift"
										}
									}
								]
							}
						]
					}
				]
			},
			{
				"component": "nc-segment",
				"attribute": {
					"id": "seg-defaults",
					"text": "Defaults & Types",
					"hdr": "hdr.dialog_4d.defaults"
				},
				"element": [
					{
						"component": "nc-row",
						"element": [
							{
								"component": "nc-col",
								"attribute": {
									"width": "15em"
								},
								"element": [
									{
										"component": "nc-label",
										"text": "Capacity type",
										"attribute": {
											"hdr": "hdr.dialog_4d.capacity_type"
										}
									}
								]
							},
							{
								"component": "nc-col",
								"attribute": {
									"width": "auto"
								},
								"element": [
									{
										"component": "nc-dropdown",
										"attribute": {
											"id": "capacity_type",
											"model": "rec.capacity_type",
											"array": "arr.capacity_type",
											"placeholder": "Select type"
										}
									}
								]
							}
						]
					},
					{
						"component": "nc-row",
						"element": [
							{
								"component": "nc-col",
								"attribute": {
									"width": "15em"
								},
								"element": [
									{
										"component": "nc-label",
										"text": "Capacity state",
										"attribute": {
											"hdr": "hdr.dialog_4d.capacity_state"
										}
									}
								]
							},
							{
								"component": "nc-col",
								"attribute": {
									"width": "auto"
								},
								"element": [
									{
										"component": "nc-dropdown",
										"attribute": {
											"id": "capacity_state",
											"model": "rec.capacity_state",
											"array": "arr.capacity_state",
											"placeholder": "Select state"
										}
									}
								]
							}
						]
					},
					{
						"component": "nc-row",
						"element": [
							{
								"component": "nc-col",
								"attribute": {
									"width": "auto",
									"height": "auto"
								},
								"element": [
									{
										"component": "nc-grid",
										"attribute": {
											"id": "default_capacity",
											"model": "grid.default_capacity",
											"width": "auto",
											"height": "auto"
										}
									}
								]
							}
						]
					}
				]
			},
			{
				"component": "nc-row",
				"element": [
					{
						"component": "nc-col",
						"attribute": {
							"width": "auto"
						}
					},
					{
						"component": "nc-col",
						"attribute": {
							"width": "auto",
							"class": ["nc-end-h"]
						},
						"element": [
							{
								"component": "nc-button",
								"attribute": {
									"id": "save_button",
									"icon": "save",
									"v-on:click": "saveDialog()",
									"model": "hdr.dialog_4d.button.save"
								}
							},
							{
								"component": "nc-button",
								"attribute": {
									"id": "cancel_button",
									"icon": "times",
									"v-on:click": "closeDialog()",
									"class": ["nc-margin-left"],
									"model": "hdr.dialog_4d.button.cancel"
								}
							}
						]
					}
				]
			}
		]
	}
}
