Exemplo n.º 1
0
 class Display:
     fields = ['name', 'calibres__count']
     fields_config = {
         'name': {
             'header': 'Obsolete Calibre Group Name'
         },
         'calibres__count': {
             'header': 'Number of Items',
             'tooltip':
             'The total number of obsolete calibres in this group'
         }
     }
     actions = [Edit()]
Exemplo n.º 2
0
 class Display:
     fields = ['name', 'region_verbose', 'email']
     fields_config = {
         'name': {
             'header': 'Constabulary Name',
             'link': True
         },
         'region_verbose': {
             'header': 'Constabulary Region'
         },
         'email': {
             'header': 'Email Address'
         }
     }
     actions = [Archive(), Unarchive(), Edit()]
Exemplo n.º 3
0
 class Display:
     fields = [
         'commodity_code', ('validity_start_date', 'validity_end_date')
     ]
     fields_config = {
         'commodity_code': {
             'header': 'Commodity Code',
             'link': True
         },
         'validity_start_date': {
             'header': 'Validity Start Date'
         },
         'validity_end_date': {
             'header': 'Validity End Date'
         }
     }
     actions = [Archive(), Unarchive(), Edit()]
Exemplo n.º 4
0
 class Display:
     fields = [
         'template_name', 'application_domain_verbose',
         'template_type_verbose', 'template_status'
     ]
     fields_config = {
         'template_name': {
             'header': 'Template Name',
             'link': True
         },
         'application_domain_verbose': {
             'header': 'Application Domain'
         },
         'template_type_verbose': {
             'header': 'Template Type'
         },
         'template_status': {
             'header': 'Template Status'
         }
     }
     actions = [Archive(), Unarchive(), Edit()]
Exemplo n.º 5
0
    class Display:
        fields = [
            'name', 'is_biocidal_yes_no', 'is_biocidal_claim_yes_no',
            'is_eu_cosmetics_regulation_yes_no'
        ]

        fields_config = {
            'name': {
                'header': 'Legislation Name',
                'link': True
            },
            'is_biocidal_yes_no': {
                'header': 'Is Biocidal'
            },
            'is_biocidal_claim_yes_no': {
                'header': 'Is Biocidal Claim'
            },
            'is_eu_cosmetics_regulation_yes_no': {
                'header': 'Is EU Cosmetics Regulation'
            }
        }

        actions = [Archive(), Unarchive(), Edit()]
Exemplo n.º 6
0
 class Display:
     fields = [
         'group_type_verbose', 'commodity_type_verbose',
         ('group_code', 'group_name'), 'group_description'
     ]
     fields_config = {
         'group_type_verbose': {
             'header': 'Group Type'
         },
         'commodity_type_verbose': {
             'header': 'Commodity Type'
         },
         'group_code': {
             'header': 'Group Code'
         },
         'group_name': {
             'header': 'Group Name'
         },
         'group_description': {
             'header': 'Description'
         }
     }
     actions = [Archive(), Unarchive(), Edit()]
Exemplo n.º 7
0
 class Display:
     fields = ['name']
     fields_config = {'name': {'header': 'Name'}}
     actions = [Edit()]
Exemplo n.º 8
0
 class Display:
     fields = ['name']
     fields_config = {'name': {'header': 'Exporter Name'}}
     actions = [Archive(), Unarchive(), Edit()]