forked from elmau/empresa-libre
36 lines
1.1 KiB
JavaScript
36 lines
1.1 KiB
JavaScript
|
|
var msg_rfc = 'El RFC es requerido'
|
|
|
|
var form_controls_empresa = [
|
|
{view: 'text', label: 'RFC', id: 'txt_alta_rfc', name: 'alta_rfc',
|
|
labelPosition: 'top', required: true, invalidMessage: msg_rfc},
|
|
{margin: 10, cols:[{}, {view: 'button', value: 'Agregar RFC',
|
|
click: 'validate_nuevo_rfc', hotkey: 'enter'}, {}]}
|
|
]
|
|
|
|
|
|
var msg_header = 'Bienvenido a Empresa Libre'
|
|
|
|
var ui_empresas = {
|
|
rows: [
|
|
{maxHeight: 50},
|
|
{view: 'template', template: msg_header, maxHeight: 50, css: 'login_header'},
|
|
{maxHeight: 50},
|
|
{cols: [{}, {type: 'space', padding: 5,
|
|
rows: [
|
|
{view: 'template', template: 'Alta de nuevo emisor', type: 'header'},
|
|
{
|
|
container: 'form_empresas',
|
|
view: 'form',
|
|
id: 'form_empresas',
|
|
width: 400,
|
|
elements: form_controls_empresa,
|
|
rules:{
|
|
alta_rfc:function(value){ return value.trim() != '';},
|
|
}
|
|
},
|
|
]}, {}, ]
|
|
},
|
|
]
|
|
}
|