fix tabs in fieldset template
This commit is contained in:
parent
e6c2a05db3
commit
49a3aaa6bd
1 changed files with 22 additions and 22 deletions
|
@ -10,27 +10,27 @@
|
||||||
% for field in fieldset.render_fields.itervalues():
|
% for field in fieldset.render_fields.itervalues():
|
||||||
|
|
||||||
<div class="field-couple ${field.name}">
|
<div class="field-couple ${field.name}">
|
||||||
% for error in field.errors:
|
% for error in field.errors:
|
||||||
<div class="field-error">${error}</div>
|
<div class="field-error">${error}</div>
|
||||||
% endfor
|
% endfor
|
||||||
${field.label_tag()|n}
|
${field.label_tag()|n}
|
||||||
<div class="field">
|
<div class="field">
|
||||||
${field.render()|n}
|
${field.render()|n}
|
||||||
</div>
|
</div>
|
||||||
% if 'instructions' in field.metadata:
|
% if 'instructions' in field.metadata:
|
||||||
<span class="instructions">${field.metadata['instructions']}</span>
|
<span class="instructions">${field.metadata['instructions']}</span>
|
||||||
% endif
|
% endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
% if (fieldset.focus == field or fieldset.focus is True) and not _focus_rendered:
|
% if (fieldset.focus == field or fieldset.focus is True) and not _focus_rendered:
|
||||||
% if not field.is_readonly():
|
% if not field.is_readonly():
|
||||||
<script language="javascript" type="text/javascript">
|
<script language="javascript" type="text/javascript">
|
||||||
$(function() {
|
$(function() {
|
||||||
$('#${field.renderer.name}').focus();
|
$('#${field.renderer.name}').focus();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<% _focus_rendered = True %>
|
<% _focus_rendered = True %>
|
||||||
% endif
|
% endif
|
||||||
% endif
|
% endif
|
||||||
|
|
||||||
% endfor
|
% endfor
|
||||||
|
@ -43,9 +43,9 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script language="javascript" type="text/javascript">
|
<script language="javascript" type="text/javascript">
|
||||||
$(function() {
|
$(function() {
|
||||||
$('button.cancel').click(function() {
|
$('button.cancel').click(function() {
|
||||||
location.href = '${fieldset.url_cancel}';
|
location.href = '${fieldset.url_cancel}';
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue