コード例 #1
0
     tr('Land cover')
 },
 'hazard_class_header_mapping': {
     'affected': {
         'header': tr('Affected'),
         # this is color for background in affected column in
         # hex #rgb format. Don't declare this for default bootstrap
         # background
         # 'color': affected_column_background.name()
     },
     'not_affected': {
         'header': tr('Not affected')
     }
 },
 'group_border_color':
 charcoal_black.name(),
 'breakdown_header_type_format':
 tr('{exposure} type'),
 'breakdown_header_class_format':
 tr('{exposure} class'),
 'header':
 tr('Analysis Detail'),
 'table_header_format':
 tr('Estimated {title} {unit} by {exposure} type'),
 'notes': [],
 'extra_table_header_format':
 tr('Estimated loss by affected {exposure} type'),
 'exposure_extra_fields': {
     exposure_land_cover['key']: [
         affected_productivity_field,
         affected_production_cost_field,
コード例 #2
0
            exposure_road['key']: tr('Road'),
            exposure_land_cover['key']: tr('Land cover')
        },
        'hazard_class_header_mapping': {
            'affected': {
                'header': tr('Affected'),
                # this is color for background in affected column in
                # hex #rgb format. Don't declare this for default bootstrap
                # background
                # 'color': affected_column_background.name()
            },
            'not_affected': {
                'header': tr('Not affected')
            }
        },
        'group_border_color': charcoal_black.name(),
        'breakdown_header_type_format': tr('{exposure} type'),
        'breakdown_header_class_format': tr('{exposure} class'),
        'header': tr('Analysis Detail'),
        'table_header_format': tr(
            'Estimated {title} {unit} by {exposure} type'),
        'notes': tr(
            'Columns and rows containing only 0 or "No data" values are '
            'excluded from the tables.')
    }
}

action_checklist_component = {
    'key': 'action-checklist',
    'type': jinja2_component_type,
    'processor': jinja2_renderer,
コード例 #3
0
ファイル: components.py プロジェクト: timlinux/inasafe
     exposure_road['key']: tr('Road'),
     exposure_land_cover['key']: tr('Land cover')
 },
 'hazard_class_header_mapping': {
     'affected': {
         'header': tr('Affected'),
         # this is color for background in affected column in
         # hex #rgb format. Don't declare this for default bootstrap
         # background
         # 'color': affected_column_background.name()
     },
     'not_affected': {
         'header': tr('Not affected')
     }
 },
 'group_border_color': charcoal_black.name(),
 'breakdown_header_type_format': tr('{exposure} type'),
 'breakdown_header_class_format': tr('{exposure} class'),
 'header': tr('Analysis Detail'),
 'table_header_format': tr(
     'Estimated {title} {unit} by {exposure} type'),
 'notes': [],
 'extra_table_header_format': tr(
     'Estimated loss by affected {exposure} type'),
 'exposure_extra_fields': {
     exposure_land_cover['key']: [
         affected_productivity_field,
         affected_production_cost_field,
         affected_production_value_field,
     ],
 },