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

r2975:2d612d18 default
r4200:007322e6 stable
Show More
mapping.pt
31 lines | 940 B | text/plain | TextLexer
<tal:def tal:define="title title|field.title;
description description|field.description;
errormsg errormsg|field.errormsg;
item_template item_template|field.widget.item_template"
i18n:domain="deform">
<div class="panel panel-default">
<div class="panel-heading">${title}</div>
<div class="panel-body">
<div tal:condition="errormsg" class="clearfix alert alert-error">
<span i18n:translate="">
There was a problem with this section
</span>
<div>${errormsg}</div>
</div>
<div tal:condition="description">
${description}
</div>
${field.start_mapping()}
<div tal:repeat="child field.children"
tal:replace="structure child.render_template(item_template)" >
</div>
${field.end_mapping()}
<div style="clear: both"></div>
</div>
</div>
</tal:def>