~opencrea/+junk/helpdesk

« back to all changes in this revision

Viewing changes to web_widget_color/static/src/xml/widget.xml

  • Committer: joannes
  • Date: 2019-10-22 08:35:02 UTC
  • Revision ID: joannes@debian-20191022083502-mt30yw9vxj0jkkwi
init

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<templates>
 
3
    <t t-name="FieldColor">
 
4
        <span t-attf-class="oe_form_field {{widget.widget_class}}" t-att-style="widget.attrs.style">
 
5
            <input type="text"
 
6
               t-att-id="widget.id_for_label"
 
7
               t-att-tabindex="widget.attrs.tabindex"
 
8
               t-att-autofocus="widget.attrs.autofocus"
 
9
               t-att-placeholder="widget.attrs.placeholder"
 
10
               t-att-maxlength="widget.field.size"
 
11
               t-att-value="widget.value"
 
12
               class="o_input"
 
13
               t-if="widget.mode !== 'readonly'"/>
 
14
            <t t-else="">
 
15
                <div t-if="!('readonly_mode' in widget.nodeOptions) or widget.nodeOptions.readonly_mode != 'text'" class="color_box" t-attf-style="background-color: {{widget.value}}" />
 
16
                <span t-if="!('readonly_mode' in widget.nodeOptions) or widget.nodeOptions.readonly_mode != 'color'" class="oe_form_char_content"><t t-esc="widget.value" /></span>
 
17
            </t>
 
18
        </span>
 
19
    </t>
 
20
</templates>