view sat_templates/templates/bulma/list/view_generic.html @ 331:0c9f8bd0fc20

bulma (static/list): decoration for closed items in generic view
author Goffi <goffi@goffi.org>
date Fri, 04 Jun 2021 18:36:57 +0200
parents 27511c821481
children 3db3509cbad1
line wrap: on
line source

<div id="list" class="container has-background-white px-1 py-1">
    {{ xmlui.generate_list(
          list_items,
          (
              ('title', _('Title')),
              ('labels', _('Labels')),
              ('id', _('Id')),
              ('author', _('Author')),
          ),
          {
              'id': '\n#{value}',
              'author': _('by {value}'),
          },
           item_class_fields=['status', 'priority', 'severity'],
           field_class_map={
               'title': 'has-text-weight-bold',
               'labels': 'tag is-rounded x-is-hoverable',
               'id': 'has-text-grey-light is-size-7 has-whitespace-pre-wrap',
               'author': 'is-size-7'
           },
           on_click=on_list_item_click)
    }}
</div>