From e94a7d9455663adbe6d8523043f1f377fca7f413 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Wed, 19 Jan 2022 14:52:29 +0000 Subject: [PATCH] Update 'deploy.yaml' --- deploy.yaml | 204 +++++++++++++++++++++++++++------------------------- 1 file changed, 105 insertions(+), 99 deletions(-) diff --git a/deploy.yaml b/deploy.yaml index 4d02dd4..17a1db7 100644 --- a/deploy.yaml +++ b/deploy.yaml @@ -1,108 +1,114 @@ id: deploy -type: PageSiderMenu +type: PageHeaderMenu properties: title: Deploy areas: content: blocks: - - id: title - type: Title + - id: content + type: Card 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 + size: 800 # Set the size of the card so it does not fill the full screen + contentGutter: 16 # Make a 16px gap between all blocks in this card + blocks: + - id: title + type: Title + layout: + grow: 1 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 + 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