##// END OF EJS Templates
settings: re-use attached request global config for performance...
settings: re-use attached request global config for performance - since we *always* generate a global config and register it into request make use of it, and not rely on the get_all_settings heavy logic that makes it slow to fetch because of cache checks. Within single request we're fine to re-use it when ever request attribute is available

File last commit:

r2559:949420ae default
r4200:007322e6 stable
Show More
checkbox.pt
26 lines | 961 B | text/plain | TextLexer
<span tal:define="name name|field.name;
true_val true_val|field.widget.true_val;
css_class css_class|field.widget.css_class;
style style|field.widget.style;
oid oid|field.oid;
help_block help_block|field.widget.help_block|'';
"
tal:omit-tag="">
<div class="checkbox">
<input type="checkbox" name="${name}" value="${true_val}"
readonly="readonly" disabled="disabled"
id="${oid}"
tal:attributes="checked cstruct == true_val;
class css_class;
style style;"
/>
<p tal:condition="help_block" class="help-block">${help_block}</p>
<label for="${field.oid}">
<span tal:condition="hasattr(field, 'schema') and hasattr(field.schema, 'label')"
tal:replace="field.schema.label" class="checkbox-label" >
</span>
</label>
</div>
</span>