Skip to content

Commit

Permalink
fixed form_rest() for embedded forms (refs #1051, #1115)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed May 27, 2011
1 parent 4de930b commit 923c234
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
@@ -1,4 +1,4 @@
<?php foreach ($form->getChildren() as $child): ?>
<?php foreach ($form as $child): ?>
<?php if (!$child->isRendered()): ?>
<?php echo $view['form']->row($child) ?>
<?php endif; ?>
Expand Down
@@ -1,6 +1,6 @@
<div<?php echo $view['form']->attributes() ?>>
<?php echo $view['form']->errors($form); ?>
<?php foreach ($form->getChildren() as $child): ?>
<?php foreach ($form as $child): ?>
<?php echo $view['form']->row($child); ?>
<?php endforeach; ?>
<?php echo $view['form']->rest($form) ?>
Expand Down
@@ -1,5 +1,5 @@
<?php echo $view['form']->errors($form) ?>

<?php foreach ($form->getChildren() as $child): ?>
<?php foreach ($form as $child): ?>
<?php echo $view['form']->row($child); ?>
<?php endforeach; ?>
@@ -1,7 +1,7 @@
{% block field_rows %}
{% spaceless %}
{{ form_errors(form) }}
{% for child in form.children %}
{% for child in form %}
{{ form_row(child) }}
{% endfor %}
{% endspaceless %}
Expand All @@ -27,7 +27,7 @@

{% block field_rest %}
{% spaceless %}
{% for child in form.children %}
{% for child in form %}
{% if not child.rendered %}
{{ form_row(child) }}
{% endif %}
Expand Down

0 comments on commit 923c234

Please sign in to comment.