~txerpa-openerp/openobject-client-web/txerpa

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
% if visible:
    % if icon:
        <a class="listImage-container" name="${name}" id="${name}" title="${help}" context="${ctx}" ${py.attrs(attrs, confirm=confirm)}
            onclick="new ListView('${parent_grid}').onButtonClick('${name}', '${btype}', ${id}, getNodeAttribute(this, 'confirm'), getNodeAttribute(this, 'context'));">
            <img height="16" width="16" class="listImage" src="${icon}"/>
        </a>
    % else:
        <a class="button-b" name="${name}" id="${name}" href="javascript: void(0)" ${py.attrs(attrs, context=ctx, confirm=confirm)} title="${help}"
            onclick="new ListView('${parent_grid}').onButtonClick('${name}', '${btype}', ${id}, getNodeAttribute(this, 'confirm'), getNodeAttribute(this, 'context'))">
            ${string}
        </a>
    % endif
% elif not icon:
    <span><img style="display:none" name="${name}" id="${name}" height="16" width="16" class="listImage" src="${icon}" title="${help}" context="${ctx}" ${py.attrs(attrs, confirm=confirm)} onclick="new ListView('${parent_grid}').onButtonClick('${name}', '${btype}', ${id}, getNodeAttribute(this, 'confirm'), getNodeAttribute(this, 'context'))"/></span>
% endif