All checks were successful
continuous-integration/drone/push Build is passing
109 lines
2.9 KiB
YAML
109 lines
2.9 KiB
YAML
id: deploy
|
|
type: PageSiderMenu
|
|
properties:
|
|
title: Deploy
|
|
|
|
areas:
|
|
content:
|
|
blocks:
|
|
- id: title
|
|
type: Title
|
|
layout:
|
|
grow: 1
|
|
properties:
|
|
content: Deploy
|
|
- id: macaddress
|
|
required: true
|
|
type: TextInput
|
|
properties:
|
|
title: MAC Address
|
|
placeholder: 00:00:00:00:00:00
|
|
- id: projectname
|
|
type: TextInput
|
|
properties:
|
|
title: Project name
|
|
- id: hostname
|
|
required: true
|
|
type: TextInput
|
|
properties:
|
|
title: Hostname
|
|
- id: ipaddress
|
|
required: true
|
|
type: TextInput
|
|
properties:
|
|
title: IP address
|
|
placeholder: 0.0.0.0
|
|
- id: subnetmask
|
|
required: true
|
|
type: TextInput
|
|
properties:
|
|
title: Subnet mask
|
|
placeholder: 255.255.255.0
|
|
- id: gateway
|
|
required: true
|
|
type: TextInput
|
|
properties:
|
|
title: Gateway
|
|
placeholder: 0.0.0.0
|
|
- id: dnsserver
|
|
type: TextInput
|
|
properties:
|
|
title: DNS server
|
|
placeholder: 0.0.0.0, 0.0.0.0
|
|
- id: dnssuffix
|
|
type: TextInput
|
|
properties:
|
|
title: DNS suffix
|
|
placeholder: example.org
|
|
- id: warning
|
|
type: Alert
|
|
properties:
|
|
message: When pressing 'Start Deployment' the physical device should be booted over LAN (PXE).
|
|
type: warning
|
|
- id: reset_button
|
|
type: Button
|
|
layout:
|
|
grow: 1
|
|
properties:
|
|
title: Reset
|
|
Icon: ClearOutlined
|
|
block: true
|
|
type: default
|
|
actions:
|
|
onClick:
|
|
- id: reset
|
|
type: reset()
|
|
- id: start_deployment
|
|
type: Button
|
|
layout:
|
|
grow: 3
|
|
properties:
|
|
title: Start Deployment
|
|
icon: RocketOutlined
|
|
block: true
|
|
requests:
|
|
- id: update_brand
|
|
type: MongoDBUpdateOne # MongoDb updateOne request to update the brand.
|
|
connectionId: brands
|
|
properties:
|
|
filter:
|
|
_id:
|
|
_state: _id # Select the document that matches the document's _id that is in state.
|
|
update:
|
|
$set:
|
|
name:
|
|
_state: name # Insert the brand name we set in state.
|
|
description:
|
|
_state: description # Insert the description name we set in state.
|
|
updated_at:
|
|
_date: now # Set the updated_at date as current time.
|
|
events:
|
|
onClick:
|
|
- id: update_brand # Call the update_brand request.
|
|
type: Request
|
|
params: update_brand
|
|
- id: link_to_brands # Link back to the brands page.
|
|
type: Link
|
|
params:
|
|
pageId: brands
|