mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-20 12:22:18 -06:00
[ADD] document_page from odoo/7.0
This commit is contained in:
committed by
Dũng (Trần Đình)
parent
767259fa73
commit
1561edddb8
23
document_page/web/widgets/templates/wiki.mako
Normal file
23
document_page/web/widgets/templates/wiki.mako
Normal file
@@ -0,0 +1,23 @@
|
||||
% if editable and not inline:
|
||||
<textarea rows="10" id="${name}" name="${name}" class="${css_class}"
|
||||
${py.attrs(attrs, kind=kind)} style="width: 99%;">${value}</textarea>
|
||||
<script type="text/javascript">
|
||||
if (!window.browser.isWebKit) {
|
||||
new openerp.ui.TextArea('${name}');
|
||||
}
|
||||
</script>
|
||||
% endif
|
||||
|
||||
% if editable and inline:
|
||||
<input type="text" id="${name}" name="${name}" class="${css_class}"
|
||||
${py.attrs(attrs, kind=kind, value=value)}/>
|
||||
% endif
|
||||
|
||||
% if editable and error:
|
||||
<span class="fielderror">${error}</span>
|
||||
% endif
|
||||
|
||||
% if not editable and value:
|
||||
<div kind="${kind}" id="${name}" class="${css_class}">${data|n}</div>
|
||||
% endif
|
||||
|
||||
Reference in New Issue
Block a user