From 0577cdec76f7bc9b1337140e677a4823731816f0 Mon Sep 17 00:00:00 2001 From: dharini Date: Fri, 28 Jan 2022 00:01:17 -0800 Subject: [PATCH] more updates --- .../components/form/host-catalog/index.hbs | 70 ++----------------- .../form/host-catalog/plugin/index.hbs | 2 + .../form/host-catalog/static/index.hbs | 30 +------- .../routes/scopes/scope/host-catalogs/new.js | 3 +- 4 files changed, 13 insertions(+), 92 deletions(-) create mode 100644 ui/admin/app/components/form/host-catalog/plugin/index.hbs diff --git a/ui/admin/app/components/form/host-catalog/index.hbs b/ui/admin/app/components/form/host-catalog/index.hbs index 28a7711d1..1b1dbf68d 100644 --- a/ui/admin/app/components/form/host-catalog/index.hbs +++ b/ui/admin/app/components/form/host-catalog/index.hbs @@ -1,70 +1,14 @@ -{{#if @model.compositeType}} +COMES JERE +{{{log 'BLLL' @model.compositeType}}} +{{{log 'NNFRM' @model.isNew}}} + +{{#if @model.isNew}} +{{!-- {{#if @model.compositeType}} --}} {{component (concat 'form/host-catalog/' @model.compositeType) model=@model submit=@submit cancel=@cancel }} +{{!-- {{/if}} --}} {{/if}} - - - {{#if @model.errors.name}} - - {{#each @model.errors.name as |error|}} - {{error.message}} - {{/each}} - - {{/if}} - - - - {{#if @model.errors.description}} - - {{#each @model.errors.description as |error|}} - {{error.message}} - {{/each}} - - {{/if}} - - -

Place Radio Button Group Here

- - {{#if @model.isNew}} - {{#if @model.type}} - {{component - (concat 'form/host-catalog/' @model.type) - model=@model - submit=@submit - cancel=@cancel - }} - {{/if}} - {{/if}} - - {{#if (can 'save model' @model)}} - - {{/if}} - \ No newline at end of file diff --git a/ui/admin/app/components/form/host-catalog/plugin/index.hbs b/ui/admin/app/components/form/host-catalog/plugin/index.hbs new file mode 100644 index 000000000..0191a0174 --- /dev/null +++ b/ui/admin/app/components/form/host-catalog/plugin/index.hbs @@ -0,0 +1,2 @@ +THIS IS DYNAINC +{{{log @model 'NAMEEEE'}}} diff --git a/ui/admin/app/components/form/host-catalog/static/index.hbs b/ui/admin/app/components/form/host-catalog/static/index.hbs index e39512155..bad64bf24 100644 --- a/ui/admin/app/components/form/host-catalog/static/index.hbs +++ b/ui/admin/app/components/form/host-catalog/static/index.hbs @@ -1,3 +1,4 @@ +STATIC {{{log 'STATTTTTIC' @model}}} {{/if}} - + --}} {{/if}} -<<<<<<< HEAD <:title>{{t 'resources.host-catalog.type'}} <:body> @@ -62,32 +62,6 @@ -======= - - {{#if @model.isNew}} - - <:title>{{t 'resources.host-catalog.type'}} - <:body> - - - - - - - {{/if}} - ->>>>>>> f3d3bdd7 (fix: Protect catalog type selectors in edit mode) {{#if (can 'save model' @model)}}