|
-
- var client_form =
- {
- "view": "popup",
- "id": "client_add_popup",
- "css": "client_add_popup",
- "position": "center",
- head: "This window can be moved",
- close: true,
- "modal": true,
- "move": true,
- "width": 600,
- "body": {
- "rows": [
- {
- "view": "toolbar",
- "css": "webix_dark",
- "paddingX": 5,
- "cols": [
- { "view": "icon", "icon": "mdi mdi-account" },
- { "view": "label", "label": "Add Client" },
- { "view": "button", "label": "x", "width": 50 , click: close_client_form}
- ]
- },
- {
- "view": "form",
- "margin": 40,
- "rows": [
- {
- "margin": 10,
- "rows": [
- { "view": "template", "type": "section", "template": "User Details" },
- {
- "cols": [
- {
- "rows": [
- { "view": "text", "placeholder": "Type here...", "label": "First Name", "labelWidth": 100 },
- { "label": "Last Name", "view": "text", "height": 38, "labelWidth": 100 },
- { "label": "Password", "view": "text", "height": 38, "labelWidth": 100, "type": "password" },
- { "label": "Phone", "view": "text", "labelWidth": 100, "type": "number" },
- {
- "options": "data/demo_loan_id.json",
- "label": "Values",
- "value": "1,2",
- "view": "multicombo",
- "height": 38,
- "labelWidth": 100
- },
- {
- "label": "Status",
- "value": "One",
- "options": [
- "Enable",
- " Disable"
- ],
- "view": "radio",
- "labelWidth": 100
- },
- { "view": "template", "template": "You can place any widget here..", "role": "placeholder" }
- ]
- },
- {
- "rows": [
- { "type": "ean13", "value": "123456789012", "view": "barcode", "width": 220 },
- { "view": "template", "template": "Mobile App ID", "role": "placeholder" }
- ]
- }
- ]
- }
- ]
- },
- {
- "margin": 10,
- "cols": [
- { "view": "template", "template": " ", "role": "placeholder", "borderless": true },
- { "view": "button", "label": "Discard", "css": "webix_transparent", "align": "right", "width": 120 , click : close_client_form},
- { "view": "button", "css": "webix_primary", "label": "Save", "align": "right", "width": 120 , click : close_client_form}
- ]
- }
- ]
- }
- ]
- }
- };
-
- var client_form_popup = webix.ui(client_form);
-
- function close_client_form(){
- client_form_popup.hide();
- }
|