<div id="content">
  <table cellspacing="0" cellpadding="0" width="100%">
  <tr>
    <td width="180" valign="top">
      <div id="left_nav">
        {{navigation}}
      </div>
    </td>
    <td valign="top">
      <div style="width:740px">
        <div class="title margin_bottom_large">{{$review_page_title}}</div>

        <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}}

          {{if $fields|@count > 0}}
            <div class="subtitle underline margin_bottom_large">
              {{$group.group_name|upper|default:"&nbsp;"}}
              <span class="edit_link">
                <a href="?page={{$group.custom_data}}#s{{$group.group_id}}">EDIT</a>
              </span>
            </div>

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

          {{foreach from=$fields item=curr_field name=i}}
            {{assign var=field_id value=$curr_field.field_id}}
            <tr>
              <td class="pad_left_small" width="200" valign="top">{{$curr_field.field_title}}</td>
              <td valign="top">
                {{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}}
 
        {{/foreach}}

        {{continue_block}}

      </form>

      </div>
    </td>
  </tr>
  </table>
</div>
