3566
by Xavier Morel
[IMP] Give a default height to text fields in read-only form view, set content to respect newlines in original text |
1 |
% if editable: |
4670.69.2
by cpa-openerp
[IMP] Code optimization. |
2 |
<div class = "text"> |
3566
by Xavier Morel
[IMP] Give a default height to text fields in read-only form view, set content to respect newlines in original text |
3 |
<textarea rows="6" id ="${name}" name="${name}" class="${css_class}" |
4062
by Fabien Meghazi
[IMP] Cleaned form element styling. Use box-sizing border-box for inputs in order to get alignements |
4 |
${py.attrs(attrs, kind=kind)} style="width: 100%;">${value}</textarea> |
3566
by Xavier Morel
[IMP] Give a default height to text fields in read-only form view, set content to respect newlines in original text |
5 |
<script type="text/javascript"> |
6 |
if (!window.browser.isWebKit) { |
|
7 |
new openerp.ui.TextArea('${name}'); |
|
8 |
} |
|
9 |
</script>
|
|
4670.69.1
by cpa-openerp
[FIX] Text field doesn't show translate button. |
10 |
% if translatable: |
11 |
<img name = "${name}" src="/openerp/static/images/stock/stock_translate.png" class="translatable" /> |
|
12 |
<script type="text/javascript"> |
|
13 |
jQuery('img[name=${name}]').click(function() { |
|
14 |
var params = { |
|
15 |
'relation': '${model}', |
|
16 |
'id': jQuery('#_terp_id').attr('value'), |
|
17 |
'data': jQuery('#_terp_context').attr('value'), |
|
18 |
}; |
|
19 |
translate_fields(null, params); |
|
20 |
}); |
|
21 |
</script>
|
|
22 |
% endif |
|
3566
by Xavier Morel
[IMP] Give a default height to text fields in read-only form view, set content to respect newlines in original text |
23 |
% if error: |
24 |
<span class="fielderror">${error}</span> |
|
25 |
% endif |
|
4670.69.1
by cpa-openerp
[FIX] Text field doesn't show translate button. |
26 |
</div>
|
3566
by Xavier Morel
[IMP] Give a default height to text fields in read-only form view, set content to respect newlines in original text |
27 |
% else: |
4465
by Xavier Morel
[FIX] revert revisions 4361 and 4460: 4460 tried to fix 4361 which broke display of readonly forms |
28 |
<p kind="${kind}" id="${name}" class="raw-text">${value}</p> |
2327.1.6
by ame (Tiny/Axelor)
* converted some form widgets |
29 |
% endif |
30 |