##// END OF EJS Templates
tests: rewrote code for running vcs_operations. Now it starts it's own...
tests: rewrote code for running vcs_operations. Now it starts it's own configurable instances for exactly those tests.

File last commit:

r2409:36eff123 default
r2457:240dad60 default
Show More
codemirror.pt
30 lines | 1.1 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|'';
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>
<script type="text/javascript">
deform.addCallback(
'${oid}',
function(oid) {
var myCodeMirror = initCodeMirror(oid, '', false, ${codemirror_options});
setCodeMirrorMode(myCodeMirror, '${codemirror_mode}');
}
);
</script>
</div>