From f7eae3aade8524c867cc38181912427a59868428 Mon Sep 17 00:00:00 2001 From: Prateeksha Singh Date: Tue, 27 Mar 2018 14:43:56 +0530 Subject: [PATCH] [layout] add form-body class --- client/view/formLayout.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/client/view/formLayout.js b/client/view/formLayout.js index 3edf019b..e2ecdc2f 100644 --- a/client/view/formLayout.js +++ b/client/view/formLayout.js @@ -1,20 +1,21 @@ const controls = require('./controls'); module.exports = class FormLayout { - constructor({fields, layout}) { - this.fields = fields; - this.layout = layout; + constructor({fields, layout}) { + this.fields = fields; + this.layout = layout; - this.controls = {}; + this.controls = {}; this.controlList = []; - this.sections = []; + this.sections = []; - this.form = document.createElement('div'); + this.form = document.createElement('div'); + this.form.classList.add('form-body'); - this.makeLayout(); - } + this.makeLayout(); + } - makeLayout() { + makeLayout() { if (this.layout) { for (let section of this.layout) { this.makeSection(section);