Source

mobile-demo-set / static / sdk / command / src / module / generate / Form / form.js.tpl

Ext.define('{appName}.view.{name}', {
    extend: 'Ext.form.FieldSet',
    xtype: '{xtype}',
    
    config: {
        title: '{name}',
        
        items: [<tpl for="fields">
            {
                name: '{name}',
                xtype: '{type}field',
                label: '{label}'
            },</tpl>
            {
                xtype: 'button',
                text: 'Submit',
                ui: 'confirm'
            }
        ]        
    }
});