Projet

Général

Profil

0001-workflows-use-biglist-styling-for-workflow-variables.patch

Frédéric Péters, 08 juillet 2015 16:46

Télécharger (1,66 ko)

Voir les différences:

Subject: [PATCH] workflows: use biglist styling for workflow variables (#7810)

 wcs/admin/workflows.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
wcs/admin/workflows.py
869 869
            r += htmltext('<h3>%s') % _('Workflow Variables')
870 870
            r += htmltext(' <span class="change">(<a href="variables/">%s</a>)</span></h3>') % _('change')
871 871
            if self.workflow.variables_formdef:
872
                r += htmltext('<ul>')
872
                r += htmltext('<ul class="biglist">')
873 873
                for field in self.workflow.variables_formdef.fields:
874 874
                    if field.varname:
875
                        if '*' in field.varname:
876
                            r += htmltext('<li>%s</li>') % field.label
877
                        else:
878
                            r += htmltext('<li>%s (<code>%s</code>)</li>') % (field.label,
879
                                    field.varname)
875
                        r += htmltext('<li><a href="variables/fields/%s/">%s') % (
876
                                field.id, field.label)
877
                        if not '*' in field.varname:
878
                            r += htmltext(' (<code>%s</code>)') % field.varname
879
                        r += htmltext('</li>')
880 880
                r += htmltext('</ul>')
881 881
            r += htmltext('</div>')
882 882

  
883
-