##// 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:

r518:9f9ffd3a default
r4200:007322e6 stable
Show More
checkbox_choice.pt
24 lines | 905 B | text/plain | TextLexer
<div tal:define="css_class css_class|field.widget.css_class;
style style|field.widget.style;
oid oid|field.oid;
inline getattr(field.widget, 'inline', False)"
tal:omit-tag="not inline">
${field.start_sequence()}
<div tal:repeat="choice values | field.widget.values"
tal:omit-tag="inline"
class="checkbox">
<div tal:define="(value, title) choice">
<input tal:attributes="checked value in cstruct;
class css_class;
style style"
type="checkbox"
name="checkbox"
value="${value}"
id="${oid}-${repeat.choice.index}"/>
<label for="${oid}-${repeat.choice.index}"
tal:attributes="class inline and 'checkbox-inline'">
${title}
</label>
</div>
</div>
${field.end_sequence()}
</div>