##// END OF EJS Templates
forms: added a codemirror form widget.
forms: added a codemirror form widget.

File last commit:

r2406:db81d430 default
r2409:36eff123 default
Show More
textinput.pt
25 lines | 1.0 KiB | text/plain | TextLexer
dan
forms: add deform for integration settings forms
r518 <span tal:define="name name|field.name;
css_class css_class|field.widget.css_class;
oid oid|field.oid;
mask mask|field.widget.mask;
placeholder placeholder|field.widget.placeholder|field.placeholder|'';
mask_placeholder mask_placeholder|field.widget.mask_placeholder;
style style|field.widget.style;
scheduler: added DB models and db parsers for the RhodeCode scheduler....
r2406 help_block help_block|field.widget.help_block|'';
dan
forms: add deform for integration settings forms
r518 "
tal:omit-tag="">
<input type="text" name="${name}" value="${cstruct}"
tal:attributes="class string: form-control ${css_class or ''};
style style"
placeholder="${placeholder}"
id="${oid}"/>
scheduler: added DB models and db parsers for the RhodeCode scheduler....
r2406
<p tal:condition="help_block" class="help-block">${help_block}</p>
dan
forms: add deform for integration settings forms
r518 <script tal:condition="mask" type="text/javascript">
deform.addCallback(
'${oid}',
function (oid) {
$("#" + oid).mask("${mask}",
{placeholder:"${mask_placeholder}"});
});
</script>
</span>