NxTIC/js/lib/form-builder/main.js

22 lines
770 B
JavaScript

/* [0] On efface le <body>
=========================================================*/
document.body.innerHTML = '';
"use strict";
var form = {
node: 'h4',
attributes: { 'data-icon': 'o', 'class': 'new-contact color2' },
children: [
{ node: 'input:hidden', $name: 'uid', $value: '{uid}' },
{ node: 'input:hidden', $name: 'call', $value: '{call}' },
{ node: 'input:hidden', $name: 'sms', $value: '{sms}' },
{ node: 'input:hidden', $name: 'countcall', $value: '{countcall}' },
{ node: 'input:hidden', $name: 'countsms', $value: '{countsms}' },
{ node: 'input:text', $name: 'number', $value: '{number}' },
{ node: 'custom-select', $name: 'existing', $$options: '{{options}}' }
]
};