Created
June 11, 2018 07:19
-
-
Save scorredoira/b5ea5ca126c164b19b2099e16958983b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "files": [ | |
| "/public/vendor/Chart.bundle.min.js" | |
| ], | |
| "path": "/crud", | |
| "title": "Entidades", | |
| "mainMenu": "/apps/main/menus/mainMenu.json", | |
| "settingsMenu": "/apps/main/menus/settingsMenu.json", | |
| "type": "amura.adminview", | |
| "children": { | |
| "body": { | |
| "type": "dashboard", | |
| "children": [ | |
| { | |
| "type": "row", | |
| "style": { | |
| "height": "36vh" | |
| }, | |
| "children": [ | |
| { | |
| "type": "tile", | |
| "style": { | |
| "width": "50%" | |
| }, | |
| "children": [ | |
| { | |
| "title": "@@Plugins", | |
| "type": "header" | |
| }, | |
| { | |
| "id": "plugins", | |
| "type": "amura.list", | |
| "class": "clickable", | |
| "loadURL": "/amura/orm/plugins.api", | |
| "onClick": [ | |
| { | |
| "target": "entitiesHeader", | |
| "command": "setSubtitle", | |
| "args": "${@}" | |
| }, | |
| { | |
| "target": "entities", | |
| "command": "load", | |
| "args": { | |
| "url": "/amura/orm/entities.api", | |
| "args": { | |
| "plugin": "${@}" | |
| } | |
| } | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "tile", | |
| "style": { | |
| "width": "50%" | |
| }, | |
| "children": [ | |
| { | |
| "title": "@@Entidades", | |
| "type": "header", | |
| "id": "entitiesHeader" | |
| }, | |
| { | |
| "id": "entities", | |
| "type": "amura.list", | |
| "class": "clickable", | |
| "columns": [ | |
| "name" | |
| ], | |
| "options": { | |
| "headerVisible": false | |
| }, | |
| "onClick": [ | |
| { | |
| "target": "propertiesHeader", | |
| "command": "setSubtitle", | |
| "args": "${name}" | |
| }, | |
| { | |
| "command": "load", | |
| "target": "properties", | |
| "args": { | |
| "url": "/amura/orm/properties.api", | |
| "args": { | |
| "plugin": "${plugin}", | |
| "entity": "${name}" | |
| } | |
| } | |
| }, | |
| { | |
| "target": "listHeader", | |
| "command": "setTitle", | |
| "args": "${name}" | |
| }, | |
| { | |
| "target": "list", | |
| "command": "load", | |
| "args": { | |
| "entity": "${fullName}" | |
| } | |
| }, | |
| { | |
| "target": "detail", | |
| "command": "setEntity", | |
| "args": "${fullName}" | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "tile", | |
| "style": { | |
| "width": "50%" | |
| }, | |
| "children": [ | |
| { | |
| "title": "@@Propiedades", | |
| "type": "header", | |
| "id": "propertiesHeader" | |
| }, | |
| { | |
| "id": "properties", | |
| "type": "amura.list", | |
| "columns": [ | |
| "name", | |
| "type", | |
| "nullable" | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "row", | |
| "style": { | |
| "height": "57vh" | |
| }, | |
| "children": [ | |
| { | |
| "type": "tile", | |
| "style": { | |
| "width": "100%" | |
| }, | |
| "children": [ | |
| { | |
| "title": "@@Listado", | |
| "id": "listHeader", | |
| "type": "header" | |
| }, | |
| { | |
| "id": "list", | |
| "type": "amura.entityGrid", | |
| "autoRefresh": false, | |
| "class": "clickable", | |
| "onRowClick": [ | |
| { | |
| "target": "detail", | |
| "command": "refresh", | |
| "args": "${0}" | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "tile", | |
| "style": { | |
| "width": "100%" | |
| }, | |
| "children": [ | |
| { | |
| "title": "@@Detalle", | |
| "id": "detailHeader", | |
| "type": "header" | |
| }, | |
| { | |
| "id": "detail", | |
| "type": "amura.entityDetail" | |
| }, | |
| { | |
| "type": "row", | |
| "class": "formButtonsRight", | |
| "children": [ | |
| { | |
| "type": "button", | |
| "label": "@@Guardar", | |
| "class": "highlighted", | |
| "onClick": [ | |
| { | |
| "target": "detail", | |
| "command": "save", | |
| "onSuccess": { | |
| "target": "list", | |
| "command": "refresh" | |
| } | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment