From 203a4b3a555f2eeb0ddd68694f792fb772be478c Mon Sep 17 00:00:00 2001 From: dharini Date: Tue, 8 Feb 2022 19:37:21 -0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20host=20typed=20forms?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addons/core/translations/resources/en-us.yaml | 3 + ui/admin/app/components/form/host/index.hbs | 64 +++++++++++++------ 2 files changed, 49 insertions(+), 18 deletions(-) diff --git a/addons/core/translations/resources/en-us.yaml b/addons/core/translations/resources/en-us.yaml index 27e3497c0..c9186a3f9 100644 --- a/addons/core/translations/resources/en-us.yaml +++ b/addons/core/translations/resources/en-us.yaml @@ -155,6 +155,9 @@ host: unknown: Unknown aws: AWS azure: Azure + form: + provider: + label: Provider Details session: title: Session title_plural: Sessions diff --git a/ui/admin/app/components/form/host/index.hbs b/ui/admin/app/components/form/host/index.hbs index 9b39cdb26..0045a8362 100644 --- a/ui/admin/app/components/form/host/index.hbs +++ b/ui/admin/app/components/form/host/index.hbs @@ -53,24 +53,52 @@ {{/if}} - - {{#if @model.errors.name}} - - {{#each @model.errors.name as |error|}} - {{error.message}} - {{/each}} - - {{/if}} - + {{#if @model.isPlugin}} + + <:title>{{t 'resources.host.form.provider.label'}} + <:body> + + + + + + + {{else}} + + + {{#if @model.errors.name}} + + {{#each @model.errors.name as |error|}} + {{error.message}} + {{/each}} + + {{/if}} + + + {{/if}} {{#if (can 'save model' @model)}}