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

« back to all changes in this revision

Viewing changes to addons/openerp/controllers/templates/translator.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:
56
56
                                <td class="grid-cell" width="${100 / len(langs)}%">${lang['name']}</td>
57
57
                        % endfor
58
58
                    </tr>
59
 
                    % for n, v, x, s in data:
 
59
                    % for n, v, x, s, t in data:
60
60
                    <tr class="grid-row">
61
61
                        % if x:
62
62
                                <input type="hidden" name="_terp_models/${n}" value="${x}"/>
64
64
                        % if translate=='fields':
65
65
                                <td class="grid-cell label" align="right">${s}: </td>
66
66
                        % endif
67
 
                        % for lang in langs:
68
 
                                <td class="grid-cell item">
69
 
                                    <input type="text" name="${lang['code']}/${n}" value="${v[lang['code']]}" style="width: 100%;"/>
70
 
                                </td>
71
 
                        % endfor
 
67
                        % if t == 'text':
 
68
                            % for lang in langs:
 
69
                                <td class="grid-cell item">
 
70
                                    <textarea name="${lang['code']}/${n}" style="width: 100%;">${v[lang['code']]}</textarea>
 
71
                                </td>
 
72
                            % endfor
 
73
                        % else:
 
74
                            % for lang in langs:
 
75
                                <td class="grid-cell item">
 
76
                                    <input type="text" name="${lang['code']}/${n}" value="${v[lang['code']]}" style="width: 100%;"/>
 
77
                                </td>
 
78
                            % endfor
 
79
                        % endif
72
80
                    </tr>
73
81
                    % endfor
74
82
                </table>