diff --git a/client-src/elements/chromedash-guide-stage-page.js b/client-src/elements/chromedash-guide-stage-page.js index 721d638c..dd0e6a60 100644 --- a/client-src/elements/chromedash-guide-stage-page.js +++ b/client-src/elements/chromedash-guide-stage-page.js @@ -5,6 +5,7 @@ import './chromedash-form-table'; import './chromedash-form-field'; import {formatFeatureForEdit, STAGE_FORMS, IMPL_STATUS_FORMS} from './form-definition'; import {IMPLEMENTATION_STATUS} from './form-field-enums'; +import {ALL_FIELDS} from './form-field-specs'; import {SHARED_STYLES} from '../sass/shared-css.js'; import {FORM_STYLES} from '../sass/forms-css.js'; @@ -200,16 +201,22 @@ export class ChromedashGuideStagePage extends LitElement { `; } + renderOneField(formattedFeature, field) { + const featureJSONKey = ALL_FIELDS[field].name || field; + return html` + + + `; + } + renderFeatureFormSection(formattedFeature) { const alreadyOnThisStage = this.stageId === this.feature.intent_stage_int; return html`
- ${this.featureFormFields.map((field) => html` - - - `)} + ${this.featureFormFields.map((field) => this.renderOneField( + formattedFeature, field))}