appy.gen: bugfixes in List field and in master-slave relationships.
This commit is contained in:
parent
3ab6cec7d6
commit
331db304e7
3 changed files with 10 additions and 6 deletions
|
@ -23,9 +23,9 @@
|
|||
tal:condition="python: isEdit or value"
|
||||
tal:attributes="id python: 'list_%s' % name">
|
||||
<tal:comment replace="nothing">Header</tal:comment>
|
||||
<tr>
|
||||
<tr valign="bottom">
|
||||
<th tal:repeat="fieldInfo widget/fieldsd"
|
||||
tal:content="python: _(fieldInfo[1]['labelId'])">
|
||||
tal:content="structure python: _(fieldInfo[1]['labelId'])">
|
||||
</th>
|
||||
<tal:comment replace="nothing">Icon for adding a new row.</tal:comment>
|
||||
<th tal:condition="isEdit">
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
cellspacing layout/cellspacing;
|
||||
width layout/width;
|
||||
align layout/align;
|
||||
class python: tagCss and ('%s %s' % (tagCss, layoutCss)) or layoutCss;
|
||||
class python: tagCss and ('%s %s' % (tagCss, layoutCss)).strip() or layoutCss;
|
||||
style layout/style;
|
||||
id tagId;
|
||||
name tagId;">
|
||||
|
@ -69,7 +69,8 @@
|
|||
isMultiple python: (widget['multiplicity'][1] == None) or (widget['multiplicity'][1] > 1);
|
||||
masterCss python: widget['slaves'] and ('master_%s' % name) or '';
|
||||
slaveCss python: widget['master'] and ('slave_%s_%s' % (widget['masterName'], '_'.join(widget['masterValue']))) or '';
|
||||
tagCss tagCss | slaveCss;
|
||||
tagCss tagCss | python:'';
|
||||
tagCss python: ('%s %s' % (slaveCss, tagCss)).strip();
|
||||
tagId python: widget['master'] and 'slave' or ''">
|
||||
<metal:layout use-macro="here/skyn/widgets/show/macros/layout"/>
|
||||
</metal:field>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue