~viktor-nagy/openobject-client-web/treegrid-buttons

« back to all changes in this revision

Viewing changes to addons/openerp/widgets/form/templates/binary.mako

  • Committer: Viktor Nagy
  • Date: 2011-07-12 05:03:07 UTC
  • mfrom: (4529.1.136 6.0)
  • Revision ID: viktor.nagy@toolpart.hu-20110712050307-evyo7xzx8o7x10kk
mergedĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
    </div>
22
22
    <div id="${name}_binary_buttons" class="binary_buttons">
23
23
        <input type="text" value="${value or text or ''}" readonly="readonly"/>
24
 
        %if value or text:
25
 
                <input type="hidden" name="${name}" value="${value or text}"></input>
 
24
        %if value:
 
25
                <input type="hidden" name="${name}" value="${value}"></input>
26
26
        % endif
27
27
        % if text:
28
28
        <a class="button-a" href="javascript: void(0)" onclick="save_binary_data('${name}', '${filename}')">${_("Save As")}</a>