~openerp-dev/openobject-server/trunk-gravatar_image-jpa

« back to all changes in this revision

Viewing changes to openerp/addons/base/static/src/xml/gravatar_image.xml

  • Committer: Jay Patel(OpenERP)
  • Date: 2014-05-06 07:11:01 UTC
  • Revision ID: jpa@tinyerp.com-20140506071101-k17ssbsh03d1adm6
[IMP] MD5 library add or gravatar widget add

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<template>
 
3
<t t-name="FieldGravatarImage">
 
4
    <span class="oe_form_field oe_form_field_image" t-att-style="widget.node.attrs.style">
 
5
        <div class="oe_form_field_image_controls oe_edit_only">
 
6
            <t t-call="HiddenInputFile">
 
7
                <t t-set="fileupload_id" t-value="widget.fileupload_id"/>
 
8
                Edit 
 
9
            </t>
 
10
            <div class="oe_form_binary_progress" style="display: none">
 
11
                <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16"/>
 
12
                <b>Uploading ...</b>
 
13
            </div>
 
14
        </div>
 
15
    </span>
 
16
</t>
 
17
<t t-name="FieldGravatarImage-img">
 
18
    <img t-att-src='url'
 
19
        t-att-border="widget.readonly ? 0 : 1"
 
20
        t-att-name="widget.name"
 
21
        t-att-width="widget.node.attrs.img_width || widget.node.attrs.width"
 
22
        t-att-height="widget.node.attrs.img_height || widget.node.attrs.height"
 
23
    />
 
24
</t>
 
25
</template>