##// END OF EJS Templates
admin: fixed problems with generating last change in admin panels....
admin: fixed problems with generating last change in admin panels. - from now on also updated_on will refer as last commit change instead of last update of DB. Reason for that is since we have audit logs the last db update should be taken from there along the change info. Storing last commit date in the dedicated field makes it searchable, sortable and faster to read.

File last commit:

r2584:b8f98b31 default
r4000:52837660 default
Show More
codemirror.pt
35 lines | 1.6 KiB | text/plain | TextLexer
<div tal:define="rows rows|field.widget.rows;
cols cols|field.widget.cols;
css_class css_class|field.widget.css_class;
oid oid|field.oid;
name name|field.name;
style style|field.widget.style;
help_block help_block|field.widget.help_block|'';
help_block_collapsable_name help_block_collapsable_name|field.widget.help_block_collapsable_name|'';
help_block_collapsable help_block_collapsable|field.widget.help_block_collapsable|'';
codemirror_options codemirror_options|field.widget.codemirror_options|{};
codemirror_mode codemirror_mode|field.widget.codemirror_mode|''
">
<textarea tal:attributes="rows rows;
cols cols;
class string: form-control ${css_class or ''};
style style"
id="${oid}"
name="${name}">${cstruct}</textarea>
<p tal:condition="help_block" class="help-block">${help_block}</p>
<span tal:condition="help_block_collapsable" class="help-block pre-formatting"><a href="#showVars" onclick="$('#help_block_${oid}').toggle(); return false">${help_block_collapsable_name}</a>
<p id="help_block_${oid}" style="display: none">${help_block_collapsable}</p>
</span>
<script type="text/javascript">
deform.addCallback(
'${oid}',
function(oid) {
var myCodeMirror = initCodeMirror(oid, '', false, ${codemirror_options});
setCodeMirrorMode(myCodeMirror, '${codemirror_mode}');
}
);
</script>
</div>