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

« back to all changes in this revision

Viewing changes to addons/openerp/widgets/templates/listgrid/button.mako

  • Committer: Biel - txerpa.com
  • Date: 2013-08-09 12:30:58 UTC
  • mfrom: (4670.2.245 openobject-client-web)
  • Revision ID: biel.massot@txerpa.com-20130809123058-892zu673ti1j8yjd
Actualizo a la ultima revision de trunk. Hay muchos bugs correjidos desde 2012. Elimino la revision 4873 por problemas de rendimiento en el dashboard de Contabilidad

Show diffs side-by-side

added added

removed removed

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