{{navigation}}

<div class="ts_page_content">

<h2>{{$review_page_title}}</h2>

<form action="{{$page_url}}" method="post" enctype="multipart/form-data">
{{foreach from=$grouped_fields item=curr_group}}
  {{assign var=group value=$curr_group.group}}
  {{assign var=fields value=$curr_group.fields}}

  <fieldset>
  {{if $fields|@count > 0}}
    <legend>{{$group.group_name}} <span class="edit_link">(<a 
      href="?page={{$group.custom_data}}#s{{$group.group_id}}">EDIT</a>)</span>
    </legend>

    <table class="table_1" cellpadding="1" cellspacing="1" border="0" width="668">
  {{/if}}

  {{foreach from=$fields item=curr_field name=i}}
    <tr>
      <td width="200" valign="top" 
        {{if $smarty.foreach.i.last}}class="rowN"{{/if}}>{{$curr_field.field_title}}</td>
      <td valign="top" {{if $smarty.foreach.i.last}}class="rowN"{{/if}}>
        {{edit_custom_field form_id=$form_id submission_id=$submission_id
          field_info=$curr_field field_types=$field_types settings=$settings}}
      </td>
    </tr>
  {{/foreach}}

  {{if $fields|@count > 0}}
    </table>    
  {{/if}}
  </fieldset>

{{/foreach}}

{{continue_block}}

</form>
  
</div>

