Projet

Général

Profil

0001-backoffice-mark-inspect-sections-as-foldable-59897.patch

Frédéric Péters, 10 janvier 2022 09:44

Télécharger (3,34 ko)

Voir les différences:

Subject: [PATCH] backoffice: mark inspect sections as foldable (#59897)

 wcs/backoffice/management.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
wcs/backoffice/management.py
3190 3190

  
3191 3191
        r += get_session().display_message()
3192 3192

  
3193
        r += htmltext('<div id="inspect-test-tools" class="section">')
3193
        r += htmltext('<div id="inspect-test-tools" class="section foldable">')
3194 3194
        r += htmltext('<h2>%s</h2>') % _('Test tools')
3195 3195
        r += htmltext('<div>')
3196 3196
        form = self.test_tools_form()
......
3200 3200
        r += htmltext('</div>')
3201 3201
        r += htmltext('</div></div>')
3202 3202

  
3203
        r += htmltext('<div id="inspect-variables" class="section">')
3203
        r += htmltext('<div id="inspect-variables" class="section foldable">')
3204 3204
        r += htmltext('<h2>%s</h2>') % _('Variables')
3205 3205
        r += htmltext('<ul class="form-inspector biglist">')
3206 3206

  
......
3276 3276
        # assigned functions
3277 3277
        if self.formdef.workflow.roles:
3278 3278
            workflow = self.formdef.workflow
3279
            r += htmltext('<div id="inspect-functions" class="section">')
3279
            r += htmltext('<div id="inspect-functions" class="section foldable">')
3280 3280
            r += htmltext('<h2>%s</h2></li>\n') % _('Functions')
3281 3281
            r += htmltext('<ul class="form-inspector biglist">')
3282 3282
            for key, label in (workflow.roles or {}).items():
......
3311 3311

  
3312 3312
        if has_tracing:
3313 3313
            action_classes = {x.key: x.description for x in item_classes}
3314
            r += htmltext('<div id="inspect-timeline" class="section">')
3314
            r += htmltext('<div id="inspect-timeline" class="section foldable">')
3315 3315
            r += htmltext('<h2>%s</h2></li>\n') % _('Actions Tracing')
3316 3316
            r += htmltext('<ul class="form-inspector biglist">')
3317 3317
            wf_status = None
......
3373 3373

  
3374 3374
        # markers stack
3375 3375
        if '_markers_stack' in (self.filled.workflow_data or {}):
3376
            r += htmltext('<div id="inspect-markers" class="section">')
3376
            r += htmltext('<div id="inspect-markers" class="section foldable">')
3377 3377
            r += htmltext('<h2>%s</h2>') % _('Markers Stack')
3378 3378
            r += htmltext('<ul class="form-inspector biglist">')
3379 3379
            for marker in reversed(self.filled.workflow_data['_markers_stack']):
......
3387 3387

  
3388 3388
        children = list(self.filled.iter_target_datas())
3389 3389
        if children:
3390
            r += htmltext('<div id="inspect-related" class="section">')
3390
            r += htmltext('<div id="inspect-related" class="section folable">')
3391 3391
            r += htmltext('<h2>%s</h2>') % _('Related Forms/Cards')
3392 3392
            r += htmltext('<ul class="form-inspector biglist">')
3393 3393
            for child, origin in children:
3394
-