예제 #1
0
            'type': 'object',
            'properties': {
                'filename': {
                    'type': 'string'
                },
                'uuid': uuid_object(display=False)
            }
        }
    },
    # 'calendar_reference': uuid_object(title='Calendar')
})

SessionForm = [
    'name',
    section(1, 2, [[{
        'key': 'speakers',
        'add': 'Add Speaker',
        'startEmpty': True
    }, 'topics']]),
    'abstract',
    section(1, 2, [[lookup_field('sessiontype', 'sessiontype'), 'keywords']]),
    {
        'key': 'files',
        'add': None,
        'remove': None,
        'startEmpty': True
    },
]

Session = {'schema': SessionSchema, 'form': SessionForm}
예제 #2
0
    'notes': {'type': 'string', 'format': 'html', 'title': 'User notes',
              'description': 'Entry notes'}
})

caseForm = [
    'name',
    {
        'type': 'section',
        'htmlClass': 'row',
        'items': [

            {
                'type': 'section',
                'htmlClass': 'col-xs-6',
                'items': [
                    lookup_field('report')
                ]
            },
            {
                'type': 'section',
                'htmlClass': 'col-xs-6',
                'items': [
                    lookup_field('reporter', 'user')
                ]
            },
            {
                'type': 'section',
                'htmlClass': 'col-xs-6',
                'items': [
                    lookup_field('vessel'),
                ]
예제 #3
0
파일: profile.py 프로젝트: ri0t/isomer
 "htmlClass":
 "row",
 "items": [{
     "type": "help",
     "helpvalue": "<h2>User interface settings</h2>"
 }, {
     "type": "help",
     "helpvalue": "<h3>Default Color and Theme</h3>"
 }, {
     "type":
     "section",
     "htmlClass":
     "col-xs-3",
     "items":
     ["settings.color",
      lookup_field("settings.theme", "theme")],
 }, {
     "type": "help",
     "helpvalue": "<h3>Background</h3>"
 }, {
     "type": "section",
     "htmlClass": "col-xs-9",
     "items": ["settings.background"],
 }, {
     "type": "help",
     "helpvalue": "<h3>Screen filter</h3>"
 }, {
     "type":
     "section",
     "htmlClass":
     "col-xs-9",
예제 #4
0
                        },
                        'name': {
                            'type': 'string', 'title': 'Name',
                            'description': 'Name of Task'
                        }
                    }

                },
                'creator': uuid_object(title='Unique Creator ID')
            }
        }
    }
})

TaskForm = [
    section(2, 3, [['name', lookup_field('assignee', 'user'), 'priority'],
                   [lookup_field('project'), lookup_field('taskgroup'), 'creator']]),
    section(1, 2, [['alert_date', 'alert_time']]),
    # {
    #     'type': 'section',
    #     'htmlClass': 'row',
    #     'items': [
    #         {
    #             'type': 'section',
    #             'htmlClass': 'col-xs-6',
    #             'items': [
    #                 'name', {
    #                     'key': 'project',
    #                     'type': 'strapselect',
    #                     'placeholder': 'Select a Project',
    #                     'options': {
예제 #5
0
            "type": "boolean",
            "title": "Autodiscover on device.",
            "description": "",
            "name": "autoDiscover",
            "default": True
        }
    }
})

MapViewForm = [
    'name', 'color', 'notes', {
        'key': 'layergroups',
        'validationMessage': ' ',
        'disableErrorState': True,
        'items': [
            lookup_field('layergroups[]', 'layergroup'),
        ]
    }, editbuttons
]

MapViewExtends = DefaultExtension(
    {
        'mapviewuuid':
        uuid_object('Default Mapview',
                    default='b69104cf-8ee7-4c81-aeca-dde272d67b63')
    }, lookup_field('modules.mapviewuuid', 'mapview'))

MapView = {
    'schema': MapViewSchema,
    'form': MapViewForm,
    'extends': MapViewExtends,
예제 #6
0
        'description': 'Reason for report'
    }
})

reportForm = [{
    'type':
    'section',
    'htmlClass':
    'row',
    'items': [
        {
            'type': 'section',
            'htmlClass': 'col-xs-6',
            'items': ['name', 'reason']
        },
        {
            'type':
            'section',
            'htmlClass':
            'col-xs-6',
            'items': [
                'noticed',
                lookup_field('vessel'),
                create_object('vessel', 'vessel')
            ]
        },
    ]
}, 'notes', editbuttons]

Report = {'schema': reportSchema, 'form': reportForm}
예제 #7
0
        "default": False
    },
    "rdate": {
        "format": "datetimepicker",
        "type": "string",
        "description": "Recurrence date"
    },
    "rrule": {
        "type": "string",
        "description": "Recurrence rule"
    },
    "category": {
        "type": "string",
        "description": "Event category"
    },
    # "geo": GeometrySchema
})

EventForm = [
    fieldset('General', [
        section(3, 2, [['name', 'category'], ['dtstart', 'dtend'],
                       ['duration', 'location']]),
        section(1, 2, [[lookup_field('calendar'), 'color']]), 'summary', 'geo',
        'recurring'
    ]),
    fieldset('Recurrence', [section(1, 2, [['rdate', 'rrule']])],
             options={'condition': '$ctrl.model.recurring'}), editbuttons
]

Event = {'schema': EventSchema, 'form': EventForm}
    'case': uuid_object(title='Case', description='Associated case file'),
    'notes': {'type': 'string', 'format': 'html', 'title': 'User notes',
              'description': 'Entry notes'}
})

blacklistForm = [
    {
        'type': 'section',
        'htmlClass': 'row',
        'items': [
            {
                'type': 'section',
                'htmlClass': 'col-xs-6',
                'items': [
                    'name', 'imo', 'vessel'
                ]
            },
            {
                'type': 'section',
                'htmlClass': 'col-xs-6',
                'items': [
                    lookup_field('report'), lookup_field('blacklist')
                ]
            },
        ]
    },
    'notes'
]

Blacklist = {'schema': blacklistSchema, 'form': blacklistForm}
예제 #9
0
    },
    'opacity': {
        'type': 'number',
        'description': 'The opacity of the GeoObject.',
        'default': 1.0
    },
    'zIndex': {
        'type':
        'number',
        'description':
        'The explicit zIndex of the GeoObject.'
        'Not set by default.',
    },
    'geojson': {
        'type': 'object',
        'default': {},
        'properties': {}
    }
})

GeoObjectForm = [
    section(4, 2, [
        ['name', 'type'],
        [lookup_field('layer'), 'icon'],
        ['color', 'iconcolor'],
        ['minZoom', 'maxZoom'],
    ]), 'notes', editbuttons
]

GeoObject = {'schema': GeoObjectSchema, 'form': GeoObjectForm}
예제 #10
0
 {
     'closed_group': uuid_object('Default "Closed" group', default=['f7525ffb-0f30-4654-bb72-602fb17247af']),
     # Taskgroup "Closed"
     'open_groups': {
         'type': 'array',
         'title': 'Open Groups',
         'description': 'Taskgroups with open tasks for Todo list',
         'default': [
             "52fc2c8d-bf7a-4835-bbfe-82d3ddf3742f",  # Taskgroup "New"
             "9d7f146e-1307-47d5-a2cf-bc26f0f515d5",  # Taskgroup "In progress"
         ],
         'items': uuid_object('Open groups')
     }
 },
 [
     lookup_field('modules.closed_group', 'taskgroup', 'Select a group for closed tasks'),
     {
         'key': 'modules.open_groups',
         'type': 'strapselect',
         'placeholder': 'Select taskgroups',
         'options': {
             "multiple": 'true',
             "type": "taskgroup",
             "asyncCallback": "$ctrl.getFormData",
             "map": {
                 'valueProperty': "uuid",
                 'nameProperty': 'name'
             }
         }
     }
     # {
예제 #11
0
ReviewSchema['properties'].update({
    'status': {
        'type': 'string',
        'enum': ['Denied', 'Accepted', 'Not reviewed'],
        'default': 'Not reviewed'
    },
    'calendar_reference':
    uuid_object(title='Calendar'),
    'session_reference':
    uuid_object(title='Session'),
    'comments': {
        'type': 'string',
        'format': 'html'
    },
    'rating': {
        'type': 'integer'
    }
})

ReviewForm = [
    section(2, 2, [['owner', 'status'],
                   [
                       lookup_field('calendar_reference', 'calendar'),
                       lookup_field('session_reference', 'session')
                   ]]),
    rating_widget(), 'comments', editbuttons
]

Review = {'schema': ReviewSchema, 'form': ReviewForm}
예제 #12
0
            'height': {
                'type': 'number',
                'default': 2
            }
        }
    }
})

NodeStateForm = [
    'name', 'icon', 'color', 'active', 'label-activated', 'readonly', 'group',
    {
        'key': 'excluded',
        'validationMessage': ' ',
        'disableErrorState': True,
        'items': [
            lookup_field('excluded[]', 'nodestate'),
        ]
    }, {
        'key': 'untrigger',
        'validationMessage': ' ',
        'disableErrorState': True,
        'items': [lookup_field('untrigger[]', 'nodestate')]
    }, editbuttons
]

NodeStateOptions = {}

NodeState = {
    'schema': NodeStateSchema,
    'form': NodeStateForm,
    'options': NodeStateOptions